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

img_buffer = self.txn.get(key) in dataset.py ,this line #30

Open
cymisyourdad opened this issue Aug 8, 2019 · 3 comments
Open

img_buffer = self.txn.get(key) in dataset.py ,this line #30

cymisyourdad opened this issue Aug 8, 2019 · 3 comments

Comments

@cymisyourdad
Copy link

the img_buffer get none, I dont know why it cant get the value of the img_buffer

@cymisyourdad
Copy link
Author

I print the result of the img_buffer, it shows None

@zj717754140
Copy link

I also meet this problem "the img_buffer get none",the sub-function "imread" in dataset.py,the img_buffer get key but whit None

@ihciah
Copy link

ihciah commented Oct 14, 2019

Just ignore lmdb. Replace imread function of dataset.py with

    def imread(self, path):
        # key = hashlib.md5(path.encode()).digest()
        # img_buffer = self.txn.get(key)
        # img_buffer = np.frombuffer(img_buffer, np.uint8)
        # img = cv2.imdecode(img_buffer, cv2.IMREAD_COLOR)
        img = cv2.imread(path, cv2.IMREAD_COLOR)
        return img

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