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

OSError: cannot identify image file <_io.BufferedReader name='./data/LSUN_fix/LSUN_fix/._correct_resize_1.png'> #2

Closed
zwy1996 opened this issue Oct 21, 2021 · 10 comments

Comments

@zwy1996
Copy link

zwy1996 commented Oct 21, 2021

Hi, nice work!

When I ran experiments on cifar10, I got the error, it seemed like that the files of LSUN_fix. I was a freshman on the task, Would you please give me some advice?

Best wished to you!

@ksaito-ut
Copy link
Collaborator

Hi, thanks for your interest in our work.
It is probably because the directory contains hidden files, ._correct_resize_1.png, .correct_resize_2.png, ....
Can you just delete the images starting from .
in the LSUN directory?
If my memory is correct, I tried that way.

@zwy1996
Copy link
Author

zwy1996 commented Oct 23, 2021

Thank you very much!

Now, I ran the experiments normally!

Best wishes to you!

@zwy1996 zwy1996 closed this as completed Oct 23, 2021
@zwy1996
Copy link
Author

zwy1996 commented Oct 23, 2021

I was very sorry to bother you.

Now I got another error. I was a little confused abount it. Because, it happened suddenly

Traceback (most recent call last):
File "main.py", line 105, in
main()
File "main.py", line 96, in main
ood_loaders, model, optimizer, ema_model, scheduler)
File "/data1/aux_task/openset/OP_Match-main/trainer.py", line 96, in train
sampler = train_sampler(unlabeled_dataset),
File "/home/anaconda3/envs/openset/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 94, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
0%| | 0/1024 [00:20<?, ?it/s]

@ksaito-ut
Copy link
Collaborator

ksaito-ut commented Oct 23, 2021 via email

@zwy1996
Copy link
Author

zwy1996 commented Oct 24, 2021

Hi,

I did not change parameter, just used the default parameter.

@ksaito-ut
Copy link
Collaborator

ksaito-ut commented Oct 26, 2021 via email

@zwy1996
Copy link
Author

zwy1996 commented Oct 26, 2021

yes, cifar 10
The instruction was "sh run_cifar10.sh 50 output 1"

@ksaito-ut
Copy link
Collaborator

ksaito-ut commented Oct 28, 2021 via email

@zwy1996
Copy link
Author

zwy1996 commented Oct 29, 2021

ok, I will try again!

Thank you very much!

@zwy1996
Copy link
Author

zwy1996 commented Oct 30, 2021

Hi,

It was too strange,I ran the experiments normally now, I had not met the error anymore, maybe I had some incorrect manner.

I was very sorry to bother you! Thank you very much!

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

2 participants