Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
mzr1996 committed Jan 4, 2024
1 parent 18c865a commit eb49589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/optional.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
albumentations>=0.3.2 --no-binary qudida,albumentations # For Albumentations data transform
grad-cam >= 1.3.7 # For CAM visualization
grad-cam >= 1.3.7,<1.5.0 # For CAM visualization
requests # For torchserve
scikit-learn # For t-SNE visualization and unit tests.
3 changes: 2 additions & 1 deletion tests/test_models/test_backbones/test_repmlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@ def test_deploy_(self):

assert len(feats_) == len(feats__)
for i in range(len(feats)):
self.assertTrue(torch.allclose(feats__[i], feats_[i]))
self.assertTrue(
torch.allclose(feats__[i], feats_[i], rtol=0.01, atol=0.01))

0 comments on commit eb49589

Please sign in to comment.