We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1769330 commit 0cc1b63Copy full SHA for 0cc1b63
app.py
@@ -25,7 +25,7 @@
25
import re
26
import requests
27
from download import download_model
28
-from precision import revision
+from precision import revision, torch_dtype
29
30
RUNTIME_DOWNLOADS = os.getenv("RUNTIME_DOWNLOADS") == "1"
31
USE_DREAMBOOTH = os.getenv("USE_DREAMBOOTH") == "1"
@@ -74,6 +74,7 @@ def createPipelinesFromModel(model, model_id):
74
pipelines[pipeline] = DiffusionPipeline.from_pretrained(
75
model_id,
76
revision=revision,
77
+ torch_dtype=torch_dtype,
78
custom_pipeline="./diffusers/examples/community/" + pipeline + ".py",
79
local_files_only=True,
80
**model.components,
0 commit comments