fbnnb commited on
Commit
784412d
·
verified ·
1 Parent(s): 25cf627

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. 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 = (int(resolution.split('_')[0]), int(resolution.split('_')[1])) #hw
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/tooncrafter_'+resolution.split('_')[1]+'_interp_v1/model.ckpt'
98
- config_file='configs/inference_'+resolution.split('_')[1]+'_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
 
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