Skip to content

Fix SyncNet API call in train.py: get_vision_embed -> get_image_embed#406

Open
Mr-Neutr0n wants to merge 1 commit intoTMElyralab:mainfrom
Mr-Neutr0n:fix/syncnet-method-name
Open

Fix SyncNet API call in train.py: get_vision_embed -> get_image_embed#406
Mr-Neutr0n wants to merge 1 commit intoTMElyralab:mainfrom
Mr-Neutr0n:fix/syncnet-method-name

Conversation

@Mr-Neutr0n
Copy link

Summary

  • Bug: train.py calls syncnet.get_vision_embed() (line 232), but the SyncNet model (musetalk/models/syncnet.py) defines the method as get_image_embed(). This causes an AttributeError at runtime when use_adapted_weight is enabled during training.
  • Fix: Renamed the method call from get_vision_embed to get_image_embed to match the actual SyncNet API.
  • The loss module (musetalk/loss/syncnet.py) already uses the correct get_image_embed() name, confirming this is a typo in train.py.

Test plan

  • Verify train.py runs without AttributeError when use_adapted_weight is enabled
  • Grep codebase to confirm no other references to the non-existent get_vision_embed remain

The SyncNet model defines `get_image_embed()` in
musetalk/models/syncnet.py, but train.py incorrectly calls
`get_vision_embed()`, which does not exist. This causes an
AttributeError at runtime when `use_adapted_weight` is enabled.

The loss module (musetalk/loss/syncnet.py) already uses the correct
method name.
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