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

ValueError: prefetch_factor option could only be specified in multiprocessing. #356

Open
hknguyen20 opened this issue Feb 3, 2024 · 1 comment

Comments

@hknguyen20
Copy link

File "/Users/hknguyen20/Documents/GitHub/llm-agriculture/.venv/lib/python3.10/site-packages/clip_retrieval/clip_inference/reader.py", line 191, in dataset_to_dataloader
    data = DataLoader(
  File "/Users/hknguyen20/Documents/GitHub/llm-agriculture/.venv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 245, in __init__
    raise ValueError('prefetch_factor option could only be specified in multiprocessing.'
ValueError: prefetch_factor option could only be specified in multiprocessing.let num_workers > 0 to enable multiprocessing, otherwise set prefetch_factor to None.

torch version: 2.1.2
I attempt to resolve this in #354

@IF-chan
Copy link

IF-chan commented Apr 22, 2024

I can reslove it by editing reader.py manually.
And your pull check failed.

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