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

Dataloader does not function? #1

Open
luccachiang opened this issue Oct 14, 2022 · 3 comments
Open

Dataloader does not function? #1

luccachiang opened this issue Oct 14, 2022 · 3 comments

Comments

@luccachiang
Copy link

Hello, I am trying to run your code. However, I met some bugs. It seems that the main problem lies in get_kather2016_datasets in kather2016.py, namely the loader ia not able to load data images. The data is in t3po/data/kather2016. Did you meet this problem or would you please give some advice?

@agaldran
Copy link
Owner

Hey Lucca, did you solve this? I am sorry, I am moving from Spain to Australia this week and everything is a bit crazy. If this is still a problem, I will have a look at it next week, if you don't mind.

@luccachiang
Copy link
Author

Hey, Agaldran. Hope everything is fine with you! With regard to this issue, I have not solved it. When I try to run train_baseline.py, after printing "==> Epoch 1/200", the model stops running. I guess the problem is in m1, m2, m3 = train_one_epoch(net, criterion, optimizer, train_loader) and specifically there is something wrong with the train_loader or maybe the hyperparameters are wrong. That's why I said that the problem lied in datasets. I do not if it is because I am using Windows 10 instead of Linux, and CPU instead of CUDA. When I debug, the last instruction PyCharm executes is n, err = decoder.decode(b"fpfp") in TiffImagePlugin.py which belongs to package PIL.

The last information it prints is the following:
Creating model: mobilenet
==> Epoch 1/200
0%| | 0/3750 [00:00<?, ?it/s]
return -1073740791 (0xC0000409)

I'd appreciate it if you can help me solve the trouble. It's too frustrating.

@luccachiang
Copy link
Author

luccachiang commented Oct 19, 2022

Oh, after I upgrade my Pillow package everything seems to work fine. Is this the correct running result?
image
Why does it print the index and tensor[0]? Can I turn off the output?

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