Skip to content

fix: remove debug print crashing on None audio_emb_slice#2040

Open
hasankaantan wants to merge 1 commit into
kijai:longcat_avatarfrom
hasankaantan:fix-audio-emb-slice-debug-print
Open

fix: remove debug print crashing on None audio_emb_slice#2040
hasankaantan wants to merge 1 commit into
kijai:longcat_avatarfrom
hasankaantan:fix-audio-emb-slice-debug-print

Conversation

@hasankaantan

Copy link
Copy Markdown

Running any InfiniteTalk / MultiTalk audio-driven workflow on the longcat_avatar branch crashes in WanVideoSampler:

'NoneType' object has no attribute 'shape'
  File ".../nodes_sampler.py", line 641, in process
    print("audio_emb_slice:", audio_emb_slice.shape)

A leftover debug print calls .shape on audio_emb_slice immediately after it is set to multitalk_embeds.get("audio_emb_slice", None). None is the normal path — multitalk_embeds carries audio_features and the slice is computed downstream — so the print throws on every run.

Fix: remove the debug line. The existing if audio_emb_slice is None: block already handles that case.

Verified on longcat_avatar with an image+audio InfiniteTalk workflow: the sampler proceeds past this point after removing the line.

- the leftover print('audio_emb_slice:', audio_emb_slice.shape) raised
  AttributeError: 'NoneType' object has no attribute 'shape' whenever
  audio_emb_slice is None
- None is the normal path: multitalk_embeds carries audio_features and the
  slice is computed downstream, so this crashed every InfiniteTalk/MultiTalk
  audio-driven run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant