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

PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x00000169BDDD2E00> #41

Open
WestbrookZero opened this issue May 15, 2024 · 0 comments

Comments

@WestbrookZero
Copy link

(ggPy3.8) G:\Project\Main\CV\CG4\gangealing>python applications/vis_correspondence.py --ckpt cat --real_data_path data/lsun_cats --vis_in_stages --real_size 512 --output_resolution 512 --resolution 256 --label_path assets/masks/cat_mask.png --dset_indices 2363 9750 7432 1946
Traceback (most recent call last):
File "applications/vis_correspondence.py", line 499, in
smoothly_congeal_and_propagate(args, t_ema, classifier)
File "D:\InstallPath\Develop\Anaconda3\2020.07\envs\ggPy3.8\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "applications/vis_correspondence.py", line 223, in smoothly_congeal_and_propagate
sample_images_and_points(args, t, classifier, device)
File "D:\InstallPath\Develop\Anaconda3\2020.07\envs\ggPy3.8\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "applications/vis_correspondence.py", line 54, in sample_images_and_points
data = torch.stack([dset[i] for i in args.dset_indices], 0).to(device)
File "applications/vis_correspondence.py", line 54, in
data = torch.stack([dset[i] for i in args.dset_indices], 0).to(device)
File "G:\Project\Main\CV\CG4\gangealing.\datasets\dataset.py", line 45, in getitem
img = Image.open(buffer)
File "D:\InstallPath\Develop\Anaconda3\2020.07\envs\ggPy3.8\lib\site-packages\PIL\Image.py", line 3339, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x00000169BDDD2E00>

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