diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

from datasets import load_dataset ModuleNotFoundError: No module named 'datasets'

Open krishnaadithya opened this issue 3 years ago • 2 comments

Traceback (most recent call last): File "train_text_to_image.py", line 17, in from datasets import load_dataset ModuleNotFoundError: No module named 'datasets' Traceback (most recent call last): File "/usr/local/bin/accelerate", line 8, in sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/accelerate_cli.py", line 45, in main args.func(args) File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 1069, in launch_command simple_launcher(args) File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 551, in simple_launcher raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', 'train_text_to_image.py', '--pretrained_model_name_or_path=', '--dataset_name=', '--use_ema', '--resolution=512', '--center_crop', '--random_flip', '--train_batch_size=1', '--gradient_accumulation_steps=4', '--gradient_checkpointing', '--mixed_precision=fp16', '--max_train_steps=15000', '--learning_rate=1e-05', '--max_grad_norm=1', '--lr_scheduler=constant', '--lr_warmup_steps=0', '--output_dir=sd-pokemon-model']' returned non-zero exit status 1.

krishnaadithya avatar Nov 29 '22 04:11 krishnaadithya

Are you referring to the following code?

https://huggingface.co/docs/diffusers/training/text2image#finetuning-example

averad avatar Nov 29 '22 06:11 averad

Yes, pip install dataset fixed it, but why is it not part of the main instruction?

krishnaadithya avatar Nov 29 '22 06:11 krishnaadithya

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Dec 29 '22 15:12 github-actions[bot]