-
Notifications
You must be signed in to change notification settings - Fork 529
Add pip install command to diffusers snippets #1805
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
I'm not a big fan of adding If one copy-paste the snippet on their machine or in a script, the |
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.
Make them comments so they don't break.
This is a rare occasion when I disagree with @Wauplin - I think there's value in complete self contained snippets.
|
||
const diffusers_default = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_image_to_image = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_image_to_video = (model: ModelData) => [ | ||
`import torch | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_controlnet = (model: ModelData) => [ | ||
`from diffusers import ControlNetModel, StableDiffusionControlNetPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_lora = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_lora_text_to_video = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_lora_image_to_video = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_textual_inversion = (model: ModelData) => [ | ||
`from diffusers import DiffusionPipeline | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_flux_fill = (model: ModelData) => [ | ||
`import torch | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
|
||
const diffusers_inpainting = (model: ModelData) => [ | ||
`import torch | ||
`!pip install -U transformers diffusers |
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.
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
@Wauplin were you suggesting the above changes? Apologies if I have made a mistake, I would love to know more. |
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 for the suggestion @Wauplin ! I have updated accordingly. (I have not ever looked at TS, so if there are any core logical changes let me know) |
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 for the update!
No description provided.