Julien Blanchon
commited on
Commit
·
548985d
1
Parent(s):
47c0895
Uppdate
Browse files- .gitignore +2 -1
- app.py +7 -1
.gitignore
CHANGED
@@ -180,4 +180,5 @@ cython_debug/
|
|
180 |
/datasets
|
181 |
/wandb
|
182 |
|
183 |
-
samples/
|
|
|
|
180 |
/datasets
|
181 |
/wandb
|
182 |
|
183 |
+
samples/
|
184 |
+
.gradio
|
app.py
CHANGED
@@ -44,7 +44,13 @@ def load_model_components(device: str = "cuda"):
|
|
44 |
try:
|
45 |
# Load configuration
|
46 |
config_path = "configs/t2i/tim_xl_p1_t2i.yaml"
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
if not Path(config_path).exists():
|
50 |
raise FileNotFoundError(f"Config file not found: {config_path}")
|
|
|
44 |
try:
|
45 |
# Load configuration
|
46 |
config_path = "configs/t2i/tim_xl_p1_t2i.yaml"
|
47 |
+
from huggingface_hub import hf_hub_download
|
48 |
+
|
49 |
+
ckpt_path = hf_hub_download(
|
50 |
+
repo_id="blanchon/TiM-checkpoints",
|
51 |
+
filename="t2i_model.bin",
|
52 |
+
local_dir=Path(__file__).parent,
|
53 |
+
)
|
54 |
|
55 |
if not Path(config_path).exists():
|
56 |
raise FileNotFoundError(f"Config file not found: {config_path}")
|