Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jlbmorales
Copy link
Contributor

Summary:
SAM2 issues

  • Whenever clear_old_points was enabled SAM2 would crash
    AAS Track mult issues
  • Enables multimask flags

Rootcaused issues to failed assertion in the following lines in sam2_base.py::_track_step:L788:

            if prev_sam_mask_logits is not None:
                assert point_inputs is not None and mask_inputs is None
                mask_inputs = prev_sam_mask_logits
            multimask_output = self._use_multimask(is_init_cond_frame, point_inputs)
            assert mask_inputs is None

Whenever prev_sam_mask_logits has a value it results in a crash. There are several situations where this is expected to be the case including during streamed runs, or when clearing points.

Differential Revision: D73460163

Pulled By: jlbmorales

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 22, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2109

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 6 Unrelated Failures

As of commit b57f40e with merge base d06b3e3 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73460163

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73460163

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73460163

jlbmorales added a commit to jlbmorales/ao that referenced this pull request Apr 22, 2025
Summary:
Pull Request resolved: pytorch#2109

SAM2 issues
- Whenever ```clear_old_points``` was enabled SAM2 would crash
AAS Track mult issues
- Enables ```multimask``` flags

Rootcaused issues to failed assertion in the following lines in ```sam2_base.py::_track_step:L788```:

```
            if prev_sam_mask_logits is not None:
                assert point_inputs is not None and mask_inputs is None
                mask_inputs = prev_sam_mask_logits
            multimask_output = self._use_multimask(is_init_cond_frame, point_inputs)
            assert mask_inputs is None
```
Whenever ```prev_sam_mask_logits``` has a value it results in a crash. There are several situations where this is expected to be the case including during streamed runs, or when clearing points.

Test Plan:
aistudio test local aas_track_mult

```
Retrieving package values for `fbcode//ai_demos/server_model_zoo/models/aas_track_mult`:
 buck2 audit package-values --reuse-current-config fbcode//ai_demos/server_model_zoo/models/aas_track_mult
Buck command to find test owners:
 buck2 uquery --reuse-current-config owner(/data/sandcastle/boxes/fbsource/fbcode/ai_demos/server_model_zoo/models/aas_track_mult/test_aas_track_mult_model.py) -a labels
Buck command to invoke a test:
 buck2 test --reuse-current-config --write-build-id /tmp/.tmpS35tJk --client-metadata language=python --client-metadata id=testify.codelens --client-metadata session_id=d0229502-10cc-45e7-a6f6-6c5c276c2e17 fbcode//ai_demos/server_model_zoo/models/aas_track_mult:tests -- --regex ai_demos/server_model_zoo/models/aas_track_mult:tests \- .*(?:\(.*TestAasTrackMultModel\)$|TestAasTrackMultModel: .*) --run-disabled
Buck UI: https://www.internalfb.com/buck2/bf9cbfaa-ae6a-4568-876c-0b128dd474bd
Test UI: https://www.internalfb.com/intern/testinfra/testrun/6473924727918606
Network: Up: 0B  Down: 0B  (reSessionID-8b7877b7-4cf8-4850-ac7b-ee84571b005d)
Command: test.
Time elapsed: 1:07.6s
Tests finished: Pass 4. Fail 0. Fatal 0. Skip 0. Build failure 0
```

Differential Revision: D73460163

Pulled By: jlbmorales
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73460163

jlbmorales added a commit to jlbmorales/ao that referenced this pull request Apr 22, 2025
Summary:
Pull Request resolved: pytorch#2109

SAM2 issues
- Whenever ```clear_old_points``` was enabled SAM2 would crash
AAS Track mult issues
- Enables ```multimask``` flags

Rootcaused issues to failed assertion in the following lines in ```sam2_base.py::_track_step:L788```:

```
            if prev_sam_mask_logits is not None:
                assert point_inputs is not None and mask_inputs is None
                mask_inputs = prev_sam_mask_logits
            multimask_output = self._use_multimask(is_init_cond_frame, point_inputs)
            assert mask_inputs is None
```
Whenever ```prev_sam_mask_logits``` has a value it results in a crash. There are several situations where this is expected to be the case including during streamed runs, or when clearing points.

Test Plan:
aistudio test local aas_track_mult

```
Retrieving package values for `fbcode//ai_demos/server_model_zoo/models/aas_track_mult`:
 buck2 audit package-values --reuse-current-config fbcode//ai_demos/server_model_zoo/models/aas_track_mult
Buck command to find test owners:
 buck2 uquery --reuse-current-config owner(/data/sandcastle/boxes/fbsource/fbcode/ai_demos/server_model_zoo/models/aas_track_mult/test_aas_track_mult_model.py) -a labels
Buck command to invoke a test:
 buck2 test --reuse-current-config --write-build-id /tmp/.tmpS35tJk --client-metadata language=python --client-metadata id=testify.codelens --client-metadata session_id=d0229502-10cc-45e7-a6f6-6c5c276c2e17 fbcode//ai_demos/server_model_zoo/models/aas_track_mult:tests -- --regex ai_demos/server_model_zoo/models/aas_track_mult:tests \- .*(?:\(.*TestAasTrackMultModel\)$|TestAasTrackMultModel: .*) --run-disabled
Buck UI: https://www.internalfb.com/buck2/bf9cbfaa-ae6a-4568-876c-0b128dd474bd
Test UI: https://www.internalfb.com/intern/testinfra/testrun/6473924727918606
Network: Up: 0B  Down: 0B  (reSessionID-8b7877b7-4cf8-4850-ac7b-ee84571b005d)
Command: test.
Time elapsed: 1:07.6s
Tests finished: Pass 4. Fail 0. Fatal 0. Skip 0. Build failure 0
```

Differential Revision: D73460163

Pulled By: jlbmorales
Summary:
Pull Request resolved: pytorch#2109

SAM2 issues
- Whenever ```clear_old_points``` was enabled SAM2 would crash
AAS Track mult issues
- Enables ```multimask``` flags

Rootcaused issues to failed assertion in the following lines in ```sam2_base.py::_track_step:L788```:

```
            if prev_sam_mask_logits is not None:
                assert point_inputs is not None and mask_inputs is None
                mask_inputs = prev_sam_mask_logits
            multimask_output = self._use_multimask(is_init_cond_frame, point_inputs)
            assert mask_inputs is None
```
Whenever ```prev_sam_mask_logits``` has a value it results in a crash. There are several situations where this is expected to be the case including during streamed runs, or when clearing points.

Test Plan:
aistudio test local aas_track_mult

```
Retrieving package values for `fbcode//ai_demos/server_model_zoo/models/aas_track_mult`:
 buck2 audit package-values --reuse-current-config fbcode//ai_demos/server_model_zoo/models/aas_track_mult
Buck command to find test owners:
 buck2 uquery --reuse-current-config owner(/data/sandcastle/boxes/fbsource/fbcode/ai_demos/server_model_zoo/models/aas_track_mult/test_aas_track_mult_model.py) -a labels
Buck command to invoke a test:
 buck2 test --reuse-current-config --write-build-id /tmp/.tmpS35tJk --client-metadata language=python --client-metadata id=testify.codelens --client-metadata session_id=d0229502-10cc-45e7-a6f6-6c5c276c2e17 fbcode//ai_demos/server_model_zoo/models/aas_track_mult:tests -- --regex ai_demos/server_model_zoo/models/aas_track_mult:tests \- .*(?:\(.*TestAasTrackMultModel\)$|TestAasTrackMultModel: .*) --run-disabled
Buck UI: https://www.internalfb.com/buck2/bf9cbfaa-ae6a-4568-876c-0b128dd474bd
Test UI: https://www.internalfb.com/intern/testinfra/testrun/6473924727918606
Network: Up: 0B  Down: 0B  (reSessionID-8b7877b7-4cf8-4850-ac7b-ee84571b005d)
Command: test.
Time elapsed: 1:07.6s
Tests finished: Pass 4. Fail 0. Fatal 0. Skip 0. Build failure 0
```

Differential Revision: D73460163

Pulled By: jlbmorales
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73460163

@facebook-github-bot
Copy link
Contributor

@jlbmorales has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@jlbmorales jlbmorales merged commit dd5c7b0 into pytorch:main Apr 23, 2025
11 of 20 checks passed
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
Fix AO SAM2 issues (#2109)

Summary:
Pull Request resolved: #2109

SAM2 issues
- Whenever ```clear_old_points``` was enabled SAM2 would crash
AAS Track mult issues
- Enables ```multimask``` flags

Rootcaused issues to failed assertion in the following lines in ```sam2_base.py::_track_step:L788```:

```
            if prev_sam_mask_logits is not None:
                assert point_inputs is not None and mask_inputs is None
                mask_inputs = prev_sam_mask_logits
            multimask_output = self._use_multimask(is_init_cond_frame, point_inputs)
            assert mask_inputs is None
```
Whenever ```prev_sam_mask_logits``` has a value it results in a crash. There are several situations where this is expected to be the case including during streamed runs, or when clearing points.

Test Plan:
aistudio test local aas_track_mult

```
Retrieving package values for `fbcode//ai_demos/server_model_zoo/models/aas_track_mult`:
 buck2 audit package-values --reuse-current-config fbcode//ai_demos/server_model_zoo/models/aas_track_mult
Buck command to find test owners:
 buck2 uquery --reuse-current-config owner(/data/sandcastle/boxes/fbsource/fbcode/ai_demos/server_model_zoo/models/aas_track_mult/test_aas_track_mult_model.py) -a labels
Buck command to invoke a test:
 buck2 test --reuse-current-config --write-build-id /tmp/.tmpS35tJk --client-metadata language=python --client-metadata id=testify.codelens --client-metadata session_id=d0229502-10cc-45e7-a6f6-6c5c276c2e17 fbcode//ai_demos/server_model_zoo/models/aas_track_mult:tests -- --regex ai_demos/server_model_zoo/models/aas_track_mult:tests \- .*(?:\(.*TestAasTrackMultModel\)$|TestAasTrackMultModel: .*) --run-disabled
Buck UI: https://www.internalfb.com/buck2/bf9cbfaa-ae6a-4568-876c-0b128dd474bd
Test UI: https://www.internalfb.com/intern/testinfra/testrun/6473924727918606
Network: Up: 0B  Down: 0B  (reSessionID-8b7877b7-4cf8-4850-ac7b-ee84571b005d)
Command: test.
Time elapsed: 1:07.6s
Tests finished: Pass 4. Fail 0. Fatal 0. Skip 0. Build failure 0
```

Differential Revision: D73460163

Pulled By: jlbmorales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants