Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
·
482061c
1
Parent(s):
991c987
update
Browse files- DPT/requirements.txt +2 -2
- demo_gradio.py +4 -2
- requirements.txt +2 -2
DPT/requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
torch==1.8.1
|
2 |
-
torchvision==0.9.1
|
3 |
opencv-python==4.5.2.54
|
4 |
timm==0.4.5
|
|
|
1 |
+
#torch==1.8.1
|
2 |
+
#torchvision==0.9.1
|
3 |
opencv-python==4.5.2.54
|
4 |
timm==0.4.5
|
demo_gradio.py
CHANGED
@@ -42,8 +42,10 @@ base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
|
42 |
image_encoder_path = "models/image_encoder"
|
43 |
ip_ckpt = "sdxl_models/ip-adapter_sdxl_vit-h.bin"
|
44 |
controlnet_path = "diffusers/controlnet-depth-sdxl-1.0"
|
45 |
-
device = "cuda"
|
46 |
-
torch.cuda.empty_cache()
|
|
|
|
|
47 |
|
48 |
# load SDXL pipeline
|
49 |
controlnet = ControlNetModel.from_pretrained(controlnet_path, variant="fp16", use_safetensors=True, torch_dtype=torch.float16).to(device)
|
|
|
42 |
image_encoder_path = "models/image_encoder"
|
43 |
ip_ckpt = "sdxl_models/ip-adapter_sdxl_vit-h.bin"
|
44 |
controlnet_path = "diffusers/controlnet-depth-sdxl-1.0"
|
45 |
+
#device = "cuda"
|
46 |
+
#torch.cuda.empty_cache()
|
47 |
+
device = devicetorch.device(torch)
|
48 |
+
devicetorch.empty_cache(torch)
|
49 |
|
50 |
# load SDXL pipeline
|
51 |
controlnet = ControlNetModel.from_pretrained(controlnet_path, variant="fp16", use_safetensors=True, torch_dtype=torch.float16).to(device)
|
requirements.txt
CHANGED
@@ -7,5 +7,5 @@ opencv-python==4.7.0.68
|
|
7 |
gradio==4.15.0
|
8 |
accelerate==0.26.1
|
9 |
git+https://github.com/fffiloni/pytorch-image-models.git
|
10 |
-
torch==2.0.1
|
11 |
-
torchvision==0.15.2
|
|
|
7 |
gradio==4.15.0
|
8 |
accelerate==0.26.1
|
9 |
git+https://github.com/fffiloni/pytorch-image-models.git
|
10 |
+
#torch==2.0.1
|
11 |
+
#torchvision==0.15.2
|