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

Something wrong in using ToTensor() #20

Open
JennieZ98 opened this issue Sep 4, 2024 · 0 comments
Open

Something wrong in using ToTensor() #20

JennieZ98 opened this issue Sep 4, 2024 · 0 comments

Comments

@JennieZ98
Copy link

JennieZ98 commented Sep 4, 2024

During the process of dataloader(num_workers = 4), the program has no response when using ToTensor() to transform an image into a tensor.
Even after waiting a long time, there is still no response.

The image is in 'TIFF' format and converted to 'RGB'. The code is as follows:
feed_dict.image = Image.open(osp.join(self.image_root, feed_dict.image_filename)).convert('RGB')

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

1 participant