Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,18 @@ MAX_IMAGE_SIZE = 2048
|
|
30 |
|
31 |
# DynamiCrafter 氇嵏 靹れ爼
|
32 |
def download_model():
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
download_model()
|
|
|
36 |
ckpt_path='checkpoints/dynamicrafter_1024_v1/model.ckpt'
|
37 |
config_file='configs/inference_1024_v1.0.yaml'
|
38 |
config = OmegaConf.load(config_file)
|
|
|
30 |
|
31 |
# DynamiCrafter 氇嵏 靹れ爼
|
32 |
def download_model():
|
33 |
+
REPO_ID = 'Doubiiu/DynamiCrafter_1024'
|
34 |
+
filename_list = ['model.ckpt']
|
35 |
+
if not os.path.exists('./checkpoints/dynamicrafter_1024_v1/'):
|
36 |
+
os.makedirs('./checkpoints/dynamicrafter_1024_v1/')
|
37 |
+
for filename in filename_list:
|
38 |
+
local_file = os.path.join('./checkpoints/dynamicrafter_1024_v1/', filename)
|
39 |
+
if not os.path.exists(local_file):
|
40 |
+
hf_hub_download(repo_id=REPO_ID, filename=filename, local_dir='./checkpoints/dynamicrafter_1024_v1/', force_download=True)
|
41 |
+
|
42 |
+
# 氇嵏 雼れ毚搿滊摐 鞁ろ枆
|
43 |
download_model()
|
44 |
+
|
45 |
ckpt_path='checkpoints/dynamicrafter_1024_v1/model.ckpt'
|
46 |
config_file='configs/inference_1024_v1.0.yaml'
|
47 |
config = OmegaConf.load(config_file)
|