Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
0d1fec4
1
Parent(s):
37b79a6
fix requirement.txt
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -183,7 +183,7 @@ else:
|
|
183 |
device = 'cpu'
|
184 |
extra_device = 'cpu'
|
185 |
|
186 |
-
vae_ckpt = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="
|
187 |
synchformer_ckpt = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="synchformer_state_dict.pth",repo_type="model")
|
188 |
feature_extractor = FeaturesUtils(
|
189 |
vae_ckpt=vae_ckpt,
|
@@ -225,7 +225,7 @@ model.pretransform.load_state_dict(load_vae_state)
|
|
225 |
# Remove weight_norm from the pretransform if specified
|
226 |
if args.remove_pretransform_weight_norm == "post_load":
|
227 |
remove_weight_norm_from_model(model.pretransform)
|
228 |
-
ckpt_path = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="
|
229 |
training_wrapper = create_training_wrapper_from_config(model_config, model)
|
230 |
# 加载模型权重时根据设备选择map_location
|
231 |
if device == 'cuda':
|
|
|
183 |
device = 'cpu'
|
184 |
extra_device = 'cpu'
|
185 |
|
186 |
+
vae_ckpt = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="vae.ckpt",repo_type="model")
|
187 |
synchformer_ckpt = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="synchformer_state_dict.pth",repo_type="model")
|
188 |
feature_extractor = FeaturesUtils(
|
189 |
vae_ckpt=vae_ckpt,
|
|
|
225 |
# Remove weight_norm from the pretransform if specified
|
226 |
if args.remove_pretransform_weight_norm == "post_load":
|
227 |
remove_weight_norm_from_model(model.pretransform)
|
228 |
+
ckpt_path = hf_hub_download(repo_id="liuhuadai/ThinkSound", filename="thinksound.ckpt",repo_type="model")
|
229 |
training_wrapper = create_training_wrapper_from_config(model_config, model)
|
230 |
# 加载模型权重时根据设备选择map_location
|
231 |
if device == 'cuda':
|
requirements.txt
CHANGED
@@ -38,7 +38,7 @@ contourpy==1.3.2
|
|
38 |
cycler==0.12.1
|
39 |
Cython==3.1.1
|
40 |
dctorch==0.1.2
|
41 |
-
decorator==
|
42 |
decord==0.6.0
|
43 |
descript-audio-codec==1.0.0
|
44 |
descript-audiotools==0.7.2
|
|
|
38 |
cycler==0.12.1
|
39 |
Cython==3.1.1
|
40 |
dctorch==0.1.2
|
41 |
+
decorator==4.4.2
|
42 |
decord==0.6.0
|
43 |
descript-audio-codec==1.0.0
|
44 |
descript-audiotools==0.7.2
|