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

What does the map_size mean in lmdb.open in prepare_data.py? If I want to change the max resolution to 128, should I change map_size = 1024 ** 4 to map_size = 128 ** 4? #110

Open
code-roamer opened this issue Dec 23, 2020 · 3 comments

Comments

@code-roamer
Copy link

No description provided.

@rosinality
Copy link
Owner

It is memory map sizes for LMDB. Generally you don't need to change it.

@gabrieloks
Copy link

Hello,

Thank you very much for the code. I have a question regarding database prep. I don't have enough memory (I get allocation error for map_size = 1024 ** 4 but works for map_size = 256 ** 4) and I have to reduce img size to 256. What should be changed in this case?

Thanks

@rosinality
Copy link
Owner

It is hard to know actual image sizes as images are saved as a jpeg. But bounds will be 256 * 256 * 3 * number of images bytes.

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

No branches or pull requests

3 participants