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

After training diffusion model with human preference dataset. #18

Open
giovanlee opened this issue Oct 2, 2024 · 3 comments
Open

After training diffusion model with human preference dataset. #18

giovanlee opened this issue Oct 2, 2024 · 3 comments

Comments

@giovanlee
Copy link

Thanks for your research.

I have question with training d3po with my diffusion model.

I trained my diffusion model with scripts/train.py, and I see output files are at logs/checkpoint_0. There are optimizer.bin, pytorch_lora_weights.bin, random_states_0.pkl, scaler.pt files. After training model, how can I sample images from trained model?

Regrads,

@yk7333
Copy link
Owner

yk7333 commented Oct 8, 2024

To load the training model, you can modify config.resume_from in the config file to point to your output files.

@hdeng26
Copy link

hdeng26 commented Nov 12, 2024

I opened a pr for fixing the model load checkpoint from local dir but only pytorch_lora_weights.bin saved in training script

@giovanlee
Copy link
Author

Thanks for reply. I used ur fixed scripts/sample.py code to sample images from my local checkpoint files, such as logs/run_name/checkpoints/checkpoint_165 in config.resume_from. However, I have an error with AttributeError: 'AttnProcsLayers' object has no attribute 'load_attn_procs'. Do you have any idea about this error?

Regards,

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

3 participants