Spaces:
Running on Zero
Running on Zero
Commit ·
21ece0c
1
Parent(s): 1d1ce31
Add try/except traceback logging to _hunyuan_gpu_infer to surface AttributeError
Browse files
app.py
CHANGED
|
@@ -1215,6 +1215,23 @@ def _hunyuan_gpu_infer(video_file, prompt, negative_prompt, seed_val,
|
|
| 1215 |
All paths passed explicitly as positional args to survive ZeroGPU isolation.
|
| 1216 |
When *clip_dur_s* is set, the clip is extracted inside the GPU window.
|
| 1217 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1218 |
_ensure_syspath("HunyuanVideo-Foley")
|
| 1219 |
from hunyuanvideo_foley.utils.model_utils import denoise_process
|
| 1220 |
from hunyuanvideo_foley.utils.feature_utils import feature_process
|
|
|
|
| 1215 |
All paths passed explicitly as positional args to survive ZeroGPU isolation.
|
| 1216 |
When *clip_dur_s* is set, the clip is extracted inside the GPU window.
|
| 1217 |
"""
|
| 1218 |
+
import traceback as _tb
|
| 1219 |
+
print(f"[_hunyuan_gpu_infer] START video={video_file!r} model_size={model_size!r} num_steps={num_steps!r} clip_start={clip_start_s} clip_dur={clip_dur_s}")
|
| 1220 |
+
try:
|
| 1221 |
+
return _hunyuan_gpu_infer_impl(
|
| 1222 |
+
video_file, prompt, negative_prompt, seed_val,
|
| 1223 |
+
guidance_scale, num_steps, model_size, crossfade_s, crossfade_db,
|
| 1224 |
+
num_samples, silent_video, segments_json, total_dur_s,
|
| 1225 |
+
clip_start_s, clip_dur_s)
|
| 1226 |
+
except Exception as _e:
|
| 1227 |
+
print(f"[_hunyuan_gpu_infer] EXCEPTION: {_e}")
|
| 1228 |
+
_tb.print_exc()
|
| 1229 |
+
raise
|
| 1230 |
+
|
| 1231 |
+
def _hunyuan_gpu_infer_impl(video_file, prompt, negative_prompt, seed_val,
|
| 1232 |
+
guidance_scale, num_steps, model_size, crossfade_s, crossfade_db,
|
| 1233 |
+
num_samples, silent_video, segments_json, total_dur_s,
|
| 1234 |
+
clip_start_s=0.0, clip_dur_s=None):
|
| 1235 |
_ensure_syspath("HunyuanVideo-Foley")
|
| 1236 |
from hunyuanvideo_foley.utils.model_utils import denoise_process
|
| 1237 |
from hunyuanvideo_foley.utils.feature_utils import feature_process
|