Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -86,7 +86,7 @@ def extract_frames(video_path):
|
|
86 |
# def __init__(self,result_dir='./tmp/',gpu_num=1,resolution='256_256') -> None:
|
87 |
|
88 |
resolution = '320_512'
|
89 |
-
resolution = (
|
90 |
download_model()
|
91 |
print("after download model")
|
92 |
result_dir = "./results/"
|
@@ -94,8 +94,8 @@ if not os.path.exists(result_dir):
|
|
94 |
os.mkdir(result_dir)
|
95 |
|
96 |
#ToonCrafterModel
|
97 |
-
ckpt_path='checkpoints/
|
98 |
-
config_file='configs/
|
99 |
config = OmegaConf.load(config_file)
|
100 |
model_config = config.pop("model", OmegaConf.create())
|
101 |
model_config['params']['unet_config']['params']['use_checkpoint']=False
|
|
|
86 |
# def __init__(self,result_dir='./tmp/',gpu_num=1,resolution='256_256') -> None:
|
87 |
|
88 |
resolution = '320_512'
|
89 |
+
resolution = (320, 512)
|
90 |
download_model()
|
91 |
print("after download model")
|
92 |
result_dir = "./results/"
|
|
|
94 |
os.mkdir(result_dir)
|
95 |
|
96 |
#ToonCrafterModel
|
97 |
+
ckpt_path='checkpoints/tooncrafter_512_interp_v1/model.ckpt'
|
98 |
+
config_file='configs/inference_512_v1.0.yaml'
|
99 |
config = OmegaConf.load(config_file)
|
100 |
model_config = config.pop("model", OmegaConf.create())
|
101 |
model_config['params']['unet_config']['params']['use_checkpoint']=False
|