Spaces:
Running
Running
Ming Li
commited on
Commit
•
2e8f4d7
1
Parent(s):
b4ce7df
reset requirements
Browse files- model.py +1 -2
- requirements.txt +3 -2
model.py
CHANGED
@@ -61,8 +61,7 @@ class Model:
|
|
61 |
if self.device.type == "cuda":
|
62 |
pipe.disable_xformers_memory_efficient_attention()
|
63 |
pipe.to(self.device)
|
64 |
-
|
65 |
-
pipe.enable_vae_slicing()
|
66 |
torch.cuda.empty_cache()
|
67 |
gc.collect()
|
68 |
self.base_model_id = base_model_id
|
|
|
61 |
if self.device.type == "cuda":
|
62 |
pipe.disable_xformers_memory_efficient_attention()
|
63 |
pipe.to(self.device)
|
64 |
+
|
|
|
65 |
torch.cuda.empty_cache()
|
66 |
gc.collect()
|
67 |
self.base_model_id = base_model_id
|
requirements.txt
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
controlnet-aux
|
2 |
-
torch
|
|
|
3 |
diffusers
|
4 |
transformers
|
5 |
safetensors
|
@@ -7,5 +8,5 @@ accelerate
|
|
7 |
kornia
|
8 |
huggingface_hub
|
9 |
gradio==4.26.0
|
10 |
-
xformers
|
11 |
mediapipe
|
|
|
|
1 |
controlnet-aux
|
2 |
+
torch==2.0.1
|
3 |
+
torchvision==0.15.2
|
4 |
diffusers
|
5 |
transformers
|
6 |
safetensors
|
|
|
8 |
kornia
|
9 |
huggingface_hub
|
10 |
gradio==4.26.0
|
|
|
11 |
mediapipe
|
12 |
+
spaces
|