Haoxin Chen commited on
Commit
8fa6380
1 Parent(s): 32619a4

update model rm wtm

Browse files
Files changed (2) hide show
  1. videocontrol_test.py +6 -6
  2. videocrafter_test.py +4 -4
videocontrol_test.py CHANGED
@@ -48,10 +48,10 @@ class VideoControl:
48
  self.savedir = result_dir
49
  self.download_model()
50
  config_path = "models/adapter_t2v_depth/model_config.yaml"
51
- ckpt_path = "models/base_t2v/model.ckpt"
52
- adapter_ckpt = "models/adapter_t2v_depth/adapter.pth"
53
- if os.path.exists('/dev/shm/model.ckpt'):
54
- ckpt_path='/dev/shm/model.ckpt'
55
  config = OmegaConf.load(config_path)
56
  model_config = config.pop("model", OmegaConf.create())
57
  model = instantiate_from_config(model_config)
@@ -144,8 +144,8 @@ class VideoControl:
144
  return info_str, origin_path, depth_path, video_path
145
  def download_model(self):
146
  REPO_ID = 'VideoCrafter/t2v-version-1-1'
147
- filename_list = ['models/base_t2v/model.ckpt',
148
- "models/adapter_t2v_depth/adapter.pth",
149
  "models/adapter_t2v_depth/dpt_hybrid-midas.pt"
150
  ]
151
  for filename in filename_list:
 
48
  self.savedir = result_dir
49
  self.download_model()
50
  config_path = "models/adapter_t2v_depth/model_config.yaml"
51
+ ckpt_path = "models/base_t2v/model_rm_wtm.ckpt"
52
+ adapter_ckpt = "models/adapter_t2v_depth/adapter_t2v_depth_rm_wtm.pth"
53
+ if os.path.exists('/dev/shm/model_rm_wtm.ckpt'):
54
+ ckpt_path='/dev/shm/model_rm_wtm.ckpt'
55
  config = OmegaConf.load(config_path)
56
  model_config = config.pop("model", OmegaConf.create())
57
  model = instantiate_from_config(model_config)
 
144
  return info_str, origin_path, depth_path, video_path
145
  def download_model(self):
146
  REPO_ID = 'VideoCrafter/t2v-version-1-1'
147
+ filename_list = ['models/base_t2v/model_rm_wtm.ckpt',
148
+ "models/adapter_t2v_depth/adapter_t2v_depth_rm_wtm.pth",
149
  "models/adapter_t2v_depth/dpt_hybrid-midas.pt"
150
  ]
151
  for filename in filename_list:
videocrafter_test.py CHANGED
@@ -29,9 +29,9 @@ class Text2Video():
29
  def __init__(self,result_dir='./tmp/') -> None:
30
  self.download_model()
31
  config_file = 'models/base_t2v/model_config.yaml'
32
- ckpt_path = 'models/base_t2v/model.ckpt'
33
- if os.path.exists('/dev/shm/model.ckpt'):
34
- ckpt_path='/dev/shm/model.ckpt'
35
  config = OmegaConf.load(config_file)
36
  self.lora_path_list = ['','models/videolora/lora_001_Loving_Vincent_style.ckpt',
37
  'models/videolora/lora_002_frozenmovie_style.ckpt',
@@ -72,7 +72,7 @@ class Text2Video():
72
 
73
  def download_model(self):
74
  REPO_ID = 'VideoCrafter/t2v-version-1-1'
75
- filename_list = ['models/base_t2v/model.ckpt',
76
  'models/videolora/lora_001_Loving_Vincent_style.ckpt',
77
  'models/videolora/lora_002_frozenmovie_style.ckpt',
78
  'models/videolora/lora_003_MakotoShinkaiYourName_style.ckpt',
 
29
  def __init__(self,result_dir='./tmp/') -> None:
30
  self.download_model()
31
  config_file = 'models/base_t2v/model_config.yaml'
32
+ ckpt_path = 'models/base_t2v/model_rm_wtm.ckpt'
33
+ if os.path.exists('/dev/shm/model_rm_wtm.ckpt'):
34
+ ckpt_path='/dev/shm/model_rm_wtm.ckpt'
35
  config = OmegaConf.load(config_file)
36
  self.lora_path_list = ['','models/videolora/lora_001_Loving_Vincent_style.ckpt',
37
  'models/videolora/lora_002_frozenmovie_style.ckpt',
 
72
 
73
  def download_model(self):
74
  REPO_ID = 'VideoCrafter/t2v-version-1-1'
75
+ filename_list = ['models/base_t2v/model_rm_wtm.ckpt',
76
  'models/videolora/lora_001_Loving_Vincent_style.ckpt',
77
  'models/videolora/lora_002_frozenmovie_style.ckpt',
78
  'models/videolora/lora_003_MakotoShinkaiYourName_style.ckpt',