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

Add datasets to the requirements for Stable Diffusion training #1782

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

yafshar
Copy link
Contributor

@yafshar yafshar commented Feb 13, 2025

What does this PR do?

  • Add a missing datasets to the requirements for Stable Diffusion training

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@yafshar yafshar marked this pull request as ready for review February 13, 2025 15:08
@yafshar yafshar requested a review from regisss as a code owner February 13, 2025 15:08
@yafshar
Copy link
Contributor Author

yafshar commented Feb 13, 2025

@regisss this is a minor missing requirements

>>> ~/optimum-habana/examples/stable-diffusion/training# python train_dreambooth_lora_flux.py     --pretrained_model_name_or_path="black-forest-labs/FLUX.1-dev"     --dataset="dog"     --prompt="a photo of sks dog"     --output_dir="dog_lora_flux"     --mixed_precision="bf16"     --weighting_scheme="none"     --resolution=1024     --train_batch_size=1     --learning_rate=1e-4     --guidance_scale=1     --report_to="tensorboard"     --gradient_accumulation_steps=4     --gradient_checkpointing     --lr_scheduler="constant"     --lr_warmup_steps=0     --cache_latents     --rank=4     --max_train_steps=500     --seed="0"     --use_hpu_graphs_for_inference     --use_hpu_graphs_for_training     --gaudi_config_name="Habana/stable-diffusion"

Traceback (most recent call last):
  File "/root/optimum-habana/examples/stable-diffusion/training/train_dreambooth_lora_flux.py", line 39, in <module>
    from datasets import load_dataset
ModuleNotFoundError: No module named 'datasets'

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@regisss regisss merged commit b190783 into huggingface:main Feb 13, 2025
4 checks passed
@yafshar yafshar deleted the diffusion_req branch February 13, 2025 17:41
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

Successfully merging this pull request may close these issues.

3 participants