Conversation
| assert model.intrinsic == new_intrinsics | ||
|
|
||
|
|
||
| @pytest.mark.gpu |
There was a problem hiding this comment.
NOTE: this one doesnt require cuda, even though its still metric3d (only some of the metric3d tests need cuda)
Greptile OverviewGreptile SummaryThis PR introduces a new Key changes:
Issues found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Pytest
participant conftest
participant torch
participant Test
Note over Pytest: Test Collection Phase
Pytest->>conftest: pytest_collection_modifyitems(config, items)
conftest->>conftest: _has_cuda()
conftest->>torch: import torch
conftest->>torch: torch.cuda.is_available()
torch-->>conftest: True/False
alt CUDA not available
conftest->>conftest: Create skip marker
loop For each test item
conftest->>Test: item.get_closest_marker("cuda")
alt Has cuda marker
conftest->>Test: item.add_marker(skip_marker)
Note over Test: Test will be skipped
end
end
else CUDA available
Note over conftest: No action, tests run normally
end
Note over Pytest: Test Execution Phase
Pytest->>Test: Run test_metric3d_init()
Note over Test: @pytest.mark.cuda<br/>@pytest.mark.gpu
alt CUDA available
Test->>Test: Execute test
else CUDA not available
Note over Test: Skipped: CUDA is not available
end
|
| assert model.intrinsic == new_intrinsics | ||
|
|
||
|
|
||
| @pytest.mark.gpu |
There was a problem hiding this comment.
Missing @pytest.mark.cuda - this test instantiates Metric3D which defaults to device="cuda" (metric3d.py:35), so it requires CUDA to run.
| @pytest.mark.gpu | |
| @pytest.mark.cuda | |
| @pytest.mark.gpu |
Additional Comments (1)
|
GPU tests are different than cuda tests (most GPU tests run on MacOS, its only the cuda ones that dont)