From 03e02cb3182112569724092fc1c6935b61d54141 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 9 Jul 2024 15:05:05 +0200 Subject: [PATCH] Update detectron2 and other requirements (#352) * fix: pytorch version bug * feat: update detectron2 version --- detectron2 | 2 +- requirements.txt | 11 ++++++----- tests/utils/attention.py | 5 ++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/detectron2 b/detectron2 index 717ab9f0..70f45430 160000 --- a/detectron2 +++ b/detectron2 @@ -1 +1 @@ -Subproject commit 717ab9f0aeca216a2f800e43d705766251ba3a55 +Subproject commit 70f454304e1a38378200459dd2dbca0f0f4a5ab4 diff --git a/requirements.txt b/requirements.txt index 628d0964..bb6a7503 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file diff --git a/tests/utils/attention.py b/tests/utils/attention.py index 2d457f1b..da2dda2b 100644 --- a/tests/utils/attention.py +++ b/tests/utils/attention.py @@ -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: @@ -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: