Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Commit
·
d8de5a4
1
Parent(s):
a49d0a8
add requirements
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ import os
|
|
9 |
|
10 |
hf_hub_download('wondervictor/ControlAR', filename='canny_MR.safetensors', cache_dir='./checkpoints/')
|
11 |
hf_hub_download('wondervictor/ControlAR', filename='depth_MR.safetensors', cache_dir='./checkpoints/')
|
|
|
12 |
|
13 |
|
14 |
DESCRIPTION = "# [ControlAR: Controllable Image Generation with Autoregressive Models](https://arxiv.org/abs/2410.02705) \n ### The first row in outputs is the input image and condition. The second row is the images generated by ControlAR. \n ### You can run locally by following the instruction on our [Github Repo](https://github.com/hustvl/ControlAR)."
|
|
|
9 |
|
10 |
hf_hub_download('wondervictor/ControlAR', filename='canny_MR.safetensors', cache_dir='./checkpoints/')
|
11 |
hf_hub_download('wondervictor/ControlAR', filename='depth_MR.safetensors', cache_dir='./checkpoints/')
|
12 |
+
hf_hub_download('google/flan-t5-xl', cache_dir='./checkpoints/')
|
13 |
|
14 |
|
15 |
DESCRIPTION = "# [ControlAR: Controllable Image Generation with Autoregressive Models](https://arxiv.org/abs/2410.02705) \n ### The first row in outputs is the input image and condition. The second row is the images generated by ControlAR. \n ### You can run locally by following the instruction on our [Github Repo](https://github.com/hustvl/ControlAR)."
|
model.py
CHANGED
@@ -84,8 +84,8 @@ class Model:
|
|
84 |
t5_model = T5Embedder(
|
85 |
device=self.device,
|
86 |
local_cache=True,
|
87 |
-
cache_dir='checkpoints/t5-
|
88 |
-
dir_or_name='
|
89 |
torch_dtype=precision,
|
90 |
model_max_length=120,
|
91 |
)
|
|
|
84 |
t5_model = T5Embedder(
|
85 |
device=self.device,
|
86 |
local_cache=True,
|
87 |
+
cache_dir='checkpoints/flan-t5-xl',
|
88 |
+
dir_or_name='flan-t5-xl',
|
89 |
torch_dtype=precision,
|
90 |
model_max_length=120,
|
91 |
)
|