-
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -331,7 +331,9 @@ const diffusersImg2ImgDefaultPrompt = "Turn this cat into a dog"; | |||||
const diffusersVideoDefaultPrompt = "A man with short gray hair plays a red electric guitar."; | ||||||
|
||||||
const diffusers_default = (model: ModelData) => [ | ||||||
`from diffusers import DiffusionPipeline | ||||||
`!pip install -U transformers diffusers | ||||||
|
||||||
from diffusers import DiffusionPipeline | ||||||
|
||||||
pipe = DiffusionPipeline.from_pretrained("${model.id}") | ||||||
|
||||||
|
@@ -340,7 +342,9 @@ image = pipe(prompt).images[0]`, | |||||
]; | ||||||
|
||||||
const diffusers_image_to_image = (model: ModelData) => [ | ||||||
`from diffusers import DiffusionPipeline | ||||||
`!pip install -U transformers diffusers | ||||||
|
`!pip install -U transformers diffusers | |
`# !pip install -U transformers diffusers |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
Outdated
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 |
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.