Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
•
da30812
1
Parent(s):
c5c2302
update
Browse files- app.py +2 -2
- requirements.txt +2 -2
app.py
CHANGED
@@ -39,8 +39,8 @@ else:
|
|
39 |
print(f"device={device}")
|
40 |
#if torch.cuda.is_available():
|
41 |
if device != "cpu":
|
42 |
-
prior_pipeline = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=dtype)#.to(device)
|
43 |
-
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=dtype)#.to(device)
|
44 |
|
45 |
if ENABLE_CPU_OFFLOAD:
|
46 |
prior_pipeline.enable_model_cpu_offload()
|
|
|
39 |
print(f"device={device}")
|
40 |
#if torch.cuda.is_available():
|
41 |
if device != "cpu":
|
42 |
+
prior_pipeline = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=dtype, revision="refs/pr/2")#.to(device)
|
43 |
+
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=dtype, revision="refs/pr/44")#.to(device)
|
44 |
|
45 |
if ENABLE_CPU_OFFLOAD:
|
46 |
prior_pipeline.enable_model_cpu_offload()
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
#git+https://github.com/kashif/diffusers.git@diffusers-yield-callback
|
2 |
-
git+https://github.com/kashif/diffusers.git@a3dc21385b7386beb3dab3a9845962ede6765887
|
3 |
-
|
4 |
accelerate
|
5 |
safetensors
|
6 |
transformers
|
|
|
1 |
#git+https://github.com/kashif/diffusers.git@diffusers-yield-callback
|
2 |
+
#git+https://github.com/kashif/diffusers.git@a3dc21385b7386beb3dab3a9845962ede6765887
|
3 |
+
diffusers
|
4 |
accelerate
|
5 |
safetensors
|
6 |
transformers
|