Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ print("Torch version:", torch.__version__)
|
|
32 |
# # hf_hub_download('google/flan-t5-xl', cache_dir='./checkpoints/')
|
33 |
ckpt_folder = './checkpoints'
|
34 |
t5_folder = os.path.join(ckpt_folder, "flan-t5-xl/flan-t5-xl")
|
35 |
-
dinov2_folder = os.path.join(ckpt_folder, "dinov2-small")
|
36 |
dinov2_folder = os.path.join(ckpt_folder, "dinov2-base")
|
37 |
hf_hub_download(repo_id="google/flan-t5-xl", filename="config.json", local_dir=t5_folder)
|
38 |
hf_hub_download(repo_id="google/flan-t5-xl", filename="pytorch_model-00001-of-00002.bin", local_dir=t5_folder)
|
@@ -47,9 +47,9 @@ hf_hub_download(repo_id="lllyasviel/Annotators", filename="dpt_hybrid-midas-501f
|
|
47 |
hf_hub_download(repo_id="wondervictor/ControlAR", filename="edge_base.safetensors", local_dir=ckpt_folder)
|
48 |
hf_hub_download(repo_id="wondervictor/ControlAR", filename="depth_base.safetensors", local_dir=ckpt_folder)
|
49 |
|
50 |
-
hf_hub_download(repo_id="facebook/dinov2-
|
51 |
-
hf_hub_download(repo_id="facebook/dinov2-
|
52 |
-
hf_hub_download(repo_id="facebook/dinov2-
|
53 |
|
54 |
|
55 |
DESCRIPTION = "# [ControlAR: Controllable Image Generation with Autoregressive Models](https://arxiv.org/abs/2410.02705) \n ### The first image in outputs is the condition. The others are the images generated by ControlAR. \n ### You can run locally by following the instruction on our [Github Repo](https://github.com/hustvl/ControlAR)."
|
|
|
32 |
# # hf_hub_download('google/flan-t5-xl', cache_dir='./checkpoints/')
|
33 |
ckpt_folder = './checkpoints'
|
34 |
t5_folder = os.path.join(ckpt_folder, "flan-t5-xl/flan-t5-xl")
|
35 |
+
# dinov2_folder = os.path.join(ckpt_folder, "dinov2-small")
|
36 |
dinov2_folder = os.path.join(ckpt_folder, "dinov2-base")
|
37 |
hf_hub_download(repo_id="google/flan-t5-xl", filename="config.json", local_dir=t5_folder)
|
38 |
hf_hub_download(repo_id="google/flan-t5-xl", filename="pytorch_model-00001-of-00002.bin", local_dir=t5_folder)
|
|
|
47 |
hf_hub_download(repo_id="wondervictor/ControlAR", filename="edge_base.safetensors", local_dir=ckpt_folder)
|
48 |
hf_hub_download(repo_id="wondervictor/ControlAR", filename="depth_base.safetensors", local_dir=ckpt_folder)
|
49 |
|
50 |
+
hf_hub_download(repo_id="facebook/dinov2-base", filename="config.json", local_dir=dinov2_folder)
|
51 |
+
hf_hub_download(repo_id="facebook/dinov2-base", filename="preprocessor_config.json", local_dir=dinov2_folder)
|
52 |
+
hf_hub_download(repo_id="facebook/dinov2-base", filename="pytorch_model.bin", local_dir=dinov2_folder)
|
53 |
|
54 |
|
55 |
DESCRIPTION = "# [ControlAR: Controllable Image Generation with Autoregressive Models](https://arxiv.org/abs/2410.02705) \n ### The first image in outputs is the condition. The others are the images generated by ControlAR. \n ### You can run locally by following the instruction on our [Github Repo](https://github.com/hustvl/ControlAR)."
|