Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,25 +71,24 @@ def change_model(choice):
|
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
gr.Markdown(
|
| 73 |
"""
|
| 74 |
-
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
Much of the motivation of this project was to compare open-source text-to-image models (I'd like to expand this beyond open-source as well).
|
| 79 |
-
|
| 80 |
-
There's some assumptions that all models have these biases, so I wanted to investigate this myself so I built this comparisson tool.
|
| 81 |
-
|
| 82 |
-
In the process of building this, I thought of the use case where a developer is developing there own model -- or maybe fine-tuning an existing one -- and wants to compare the output of said model against a published one. This tool can help too!
|
| 83 |
|
| 84 |
I see this space evolving in the future to include a comprehensive list of popular text-to-image model, saving the user from going into Hugging Face and liking models to see them in this app. (Anything but providing models by free text was my goal).
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
|
| 89 |
This app uses a [DiffusionPipeline](https://huggingface.co/docs/diffusers/main/en/api/diffusion_pipeline) to generate images.
|
| 90 |
|
| 91 |
In the dropdown you will see models that you have liked on HuggingFace. Only models that you've likes and fit the criteria for this app will display in the dropdown. You can navigate [here](https://huggingface.co/models?pipeline_tag=text-to-image&library=diffusers,safetensors&sort=trending) to get models that will work with this app. Go to the model card and like it; then upon refreshing this app you will see this model in the dropdown.
|
| 92 |
|
|
|
|
| 93 |
|
| 94 |
For faster inference, you can duplicate the space and upgrade the hardware resources!
|
| 95 |
""")
|
|
|
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
gr.Markdown(
|
| 73 |
"""
|
| 74 |
+
# Comparing Stable Diffusion Models
|
| 75 |
|
| 76 |
+
## Motivation
|
| 77 |
|
| 78 |
Much of the motivation of this project was to compare open-source text-to-image models (I'd like to expand this beyond open-source as well).
|
| 79 |
+
In the process of building this, I thought of the use case where a developer is developing there own model -- or maybe fine-tuning an existing one -- and wants to compare the output of said model against a published one. A side-by-side tool can be adapted to that!
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
I see this space evolving in the future to include a comprehensive list of popular text-to-image model, saving the user from going into Hugging Face and liking models to see them in this app. (Anything but providing models by free text was my goal).
|
| 82 |
+
|
| 83 |
+
I'd love to hear your feedback!
|
| 84 |
|
| 85 |
+
## How to use this app
|
| 86 |
|
| 87 |
This app uses a [DiffusionPipeline](https://huggingface.co/docs/diffusers/main/en/api/diffusion_pipeline) to generate images.
|
| 88 |
|
| 89 |
In the dropdown you will see models that you have liked on HuggingFace. Only models that you've likes and fit the criteria for this app will display in the dropdown. You can navigate [here](https://huggingface.co/models?pipeline_tag=text-to-image&library=diffusers,safetensors&sort=trending) to get models that will work with this app. Go to the model card and like it; then upon refreshing this app you will see this model in the dropdown.
|
| 90 |
|
| 91 |
+
## Speed up Inference
|
| 92 |
|
| 93 |
For faster inference, you can duplicate the space and upgrade the hardware resources!
|
| 94 |
""")
|