Skip to content

Commit

Permalink
Update detectron2 and other requirements (#352)
Browse files Browse the repository at this point in the history
* fix: pytorch version bug

* feat: update detectron2 version
  • Loading branch information
dgcnz authored Jul 9, 2024
1 parent 4f436ae commit 03e02cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion detectron2
Submodule detectron2 updated 250 files
11 changes: 6 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
cloudpickle
hydra-core
omegaconf==2.1.0
omegaconf
pybind11
flake8==3.8.1
isort==4.3.21
black==22.3.0
flake8
isort
black
autoflake
timm
pytest
scipy==1.7.3
scipy
psutil
opencv-python
wandb
submitit
einops
fairscale
5 changes: 2 additions & 3 deletions tests/utils/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
from torch.nn.modules.module import Module

if (
float(torch.__version__.split(".")[0]) == 0
or (float(torch.__version__.split(".")[0]) == 1 and float(torch.__version__.split(".")[1])) < 7
float(torch.__version__.split(".")[0]) == 0 or (float(torch.__version__.split(".")[0]) == 1 and float(torch.__version__.split(".")[1]) < 7)
):
from torch._overrides import has_torch_function, handle_torch_function
else:
Expand All @@ -47,7 +46,7 @@

if (
float(torch.__version__.split(".")[0]) == 0
or (float(torch.__version__.split(".")[0]) == 1 and float(torch.__version__.split(".")[1])) < 9
or (float(torch.__version__.split(".")[0]) == 1 and float(torch.__version__.split(".")[1]) < 9)
):
from torch.nn.modules.linear import _LinearWithBias
else:
Expand Down

0 comments on commit 03e02cb

Please sign in to comment.