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

Face bug on tutorial code #60

Closed
JY132 opened this issue Jun 26, 2024 · 2 comments
Closed

Face bug on tutorial code #60

JY132 opened this issue Jun 26, 2024 · 2 comments

Comments

@JY132
Copy link

JY132 commented Jun 26, 2024

Hi, Good day.

I was running the code from https://docs.libauc.org/examples/auroc.html

And I face this error when I try to load the data

for data, targets in trainloader:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Admin\anaconda3\envs\dino\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\Admin\anaconda3\envs\dino\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
AttributeError: Can't get attribute 'ImageDataset' on <module 'main' (built-in)>

I am using Jupyter Notebook to run the code with Python 3.10.14

@JY132
Copy link
Author

JY132 commented Jun 26, 2024

Figured out how to debug it.

Just removing workers (num_workers argument) worked as a quick fix for me

@optmai
Copy link
Collaborator

optmai commented Jul 7, 2024

Thanks!

@optmai optmai closed this as completed Jul 7, 2024
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