Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented low memory option for fid.py #15

Merged
merged 1 commit into from
Oct 27, 2018
Merged

implemented low memory option for fid.py #15

merged 1 commit into from
Oct 27, 2018

Conversation

Pyrestone
Copy link
Contributor

See #14

I implemented behaviour to load and un-load each batch of images during evaluation of the activations instead of loading all images to RAM at the beginning of evaluation.
This reduces memory requirements by a significant amount.
Specifically, it reduced the memory footprint from >16GB to <4GB when using 10.000 images of size 256x256.

The new behaviour is triggered by enabling the --lowprofile flag in the command line args of fid.py

I made this the non-default behaviour since it might increase execution time slightly in non-memory-constrained environments.

The results should be near-identical.
I have observed small differences between scores, at non-significant digits (5th place after comma), but those are probably explained by floating-point rounding errors.

@untom
Copy link
Member

untom commented Oct 27, 2018

LGTM, thanks for the contribution 👍 :)

@untom untom closed this Oct 27, 2018
@untom untom reopened this Oct 27, 2018
@untom untom merged commit dc4e5b5 into bioinf-jku:master Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants