Skip to content

Conversation

@sywangyi
Copy link
Contributor

and tests/models/sam2_video/test_modeling_sam2_video.py crash

fix crash like
FAILED tests/models/edgetam_video/test_modeling_edgetam_video.py::EdgeTamVideoModelIntegrationTest::test_inference_mask_generation_video_multi_objects_multi_points - AttributeError: positional_embedding is not an nn.Parameter

and tests/models/sam2_video/test_modeling_sam2_video.py crash

Signed-off-by: Wang, Yi <[email protected]>
@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: edgetam_video, sam2_video

@sywangyi
Copy link
Contributor Author

@SunMarc please help review.
wo the fix the tests/models/sam2_video/test_modeling_sam2_video.py and tests/models/edgetam_video/test_modeling_edgetam_video.py all fail

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking, while this might fix the tests, I'm sure this will probably lead to another issues as . cc @molbap @ArthurZucker

The comment below is probably connected to this issue:

# need to be ignored, as it's a buffer and will not be correctly detected as tied weight
_keys_to_ignore_on_load_missing = ["prompt_encoder.shared_embedding.positional_embedding"]

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.

2 participants