-
Notifications
You must be signed in to change notification settings - Fork 6k
Make InstructPix2Pix Training Script torch.compile compatible #6558
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
Conversation
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. |
@@ -965,14 +971,14 @@ def collate_fn(examples): | |||
# Create the pipeline using the trained modules and save it. | |||
accelerator.wait_for_everyone() | |||
if accelerator.is_main_process: | |||
unet = accelerator.unwrap_model(unet) | |||
unet = unet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this? :D
Why can't we do unet = unwrap_model(unet)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, changing.
text_encoder=accelerator.unwrap_model(text_encoder), | ||
vae=accelerator.unwrap_model(vae), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was testing output forgot the change. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Left a couple of comments.
Thank you, fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
…gface#6558) * added torch.compile for pix2pix * required changes
What does this PR do?
Part of #6503 for
instruct pix2pix
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@sayakpaul 🔢