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
Correct usage of lmdb #37
Comments
Hello! Technically you only need to point the dataroot_HR and dataroot_LR to the correct directories ending in '.lmdb' and they should be loaded correctly. I haven't used lmdb in a while, so let me know how it goes! |
The directories should look like: |
Hi victorca25, I receive this error when loading images from my lmdb directory. My Log File My Config File: 21-02-12 17:31:47.474 - INFO: Random seed: 0 |
Can you try adding in line 100 here: https://github.com/victorca25/BasicSR/blob/master/codes/dataops/common.py
And let me know what it prints in the console? |
21-02-13 13:08:32.573 - INFO: Random seed: 0 (main) [n0man@fedora-desktop-n0man codes]$ |
Ok, so the problem is that for some reason the enviroment variables for lmdb are not being correctly passed to the read function:
|
I may have found a solution, but it will take a while to commit, since I have been modifying the dataloaders and they are not in a state I can commit at the moment |
Okay, I’m working on a project right now that doesn’t require lmdb support,
so feel free to put this bug on hold.
Thank you for your help.
N0man
…On Mon, Feb 15, 2021 at 12:46 PM victorca25 ***@***.***> wrote:
I may have found a solution, but it will take a while to commit, since I
have been modifying the dataloaders and they are not in a state I can
commit at the moment
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASTRQRNXCM45L42WP23YZCTS7FMYJANCNFSM4XPLDDAQ>
.
|
Awesome! It won't be on hold, I just need one or two more days to finish testing it and modifying the dataloaders to a state that can be committed, I'll let you know when it's up |
@N0manDemo the updated datasets and lmdb codes have now been commited. Please refer to the wiki for more details about the updated lmdb, you will have to recreate the database with the script, but it should work much better now |
Thank you. lmdb is working now. |
I used create_lmdb.py to create both my LR and HR datasets, and I was wondering how I should configure my options file.
Do the settings differ from using HR/LR image folders?
The text was updated successfully, but these errors were encountered: