Skip to content

Commit 0cc1b63

Browse files
committed
fix(pipelines): community pipelines, set torch_dtype too
1 parent 1769330 commit 0cc1b63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import re
2626
import requests
2727
from download import download_model
28-
from precision import revision
28+
from precision import revision, torch_dtype
2929

3030
RUNTIME_DOWNLOADS = os.getenv("RUNTIME_DOWNLOADS") == "1"
3131
USE_DREAMBOOTH = os.getenv("USE_DREAMBOOTH") == "1"
@@ -74,6 +74,7 @@ def createPipelinesFromModel(model, model_id):
7474
pipelines[pipeline] = DiffusionPipeline.from_pretrained(
7575
model_id,
7676
revision=revision,
77+
torch_dtype=torch_dtype,
7778
custom_pipeline="./diffusers/examples/community/" + pipeline + ".py",
7879
local_files_only=True,
7980
**model.components,

0 commit comments

Comments
 (0)