Skip to content

Commit

Permalink
Update CI Dependency Upper Bounds (#21)
Browse files Browse the repository at this point in the history
* update upper bounds of all deps

* format
  • Loading branch information
isaaccorley authored Apr 9, 2024
1 parent 933b965 commit 593f0b0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions requirements/required.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# setup
setuptools==69.0.0
setuptools==69.2.0

# install
einops==0.7.0
timm==0.9.12
torch==2.1.2
timm==0.9.16
torch==2.2.2
4 changes: 2 additions & 2 deletions requirements/style.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# style
black[jupyter]==23.12.1
black[jupyter]==24.3.0
flake8==7.0.0
isort[colors]==5.13.2
pyupgrade==3.15.0
pyupgrade==3.15.2
4 changes: 2 additions & 2 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# tests
pytest==7.4.4
pytest-cov==4.1.0
pytest==8.1.1
pytest-cov==5.0.0
8 changes: 5 additions & 3 deletions torchseg/decoders/manet/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ def __init__(
# combine decoder keyword arguments
kwargs = dict(use_batchnorm=use_batchnorm) # no attention type here
blocks = [
MFAB(in_ch, skip_ch, out_ch, reduction=reduction, **kwargs)
if skip_ch > 0
else DecoderBlock(in_ch, skip_ch, out_ch, **kwargs)
(
MFAB(in_ch, skip_ch, out_ch, reduction=reduction, **kwargs)
if skip_ch > 0
else DecoderBlock(in_ch, skip_ch, out_ch, **kwargs)
)
for in_ch, skip_ch, out_ch in zip(in_channels, skip_channels, out_channels)
]
# for the last we dont have skip connection -> use simple decoder block
Expand Down
1 change: 1 addition & 0 deletions torchseg/losses/lovasz.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Lovasz-Softmax and Jaccard hinge loss in PyTorch
Maxim Berman 2018 ESAT-PSI KU Leuven (MIT License)
"""

from typing import Optional

import torch
Expand Down

0 comments on commit 593f0b0

Please sign in to comment.