Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Apr 20, 2024
1 parent 36b3424 commit 51d593a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ requirements:
- scipy~=1.11.0
- jinja2~=3.0
- torchvision
- pytorch~=2.2.0
- pytorch~=2.1.0
- cudatoolkit
- jsonschema
- scikit-image~=0.21.0
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- scipy~=1.10.0
- jinja2~=3.0
- conda-forge::torchvision-cpu>=0.5.0
- conda-forge::pytorch-cpu~=2.2.0
- conda-forge::pytorch-cpu~=2.1.0
- jsonschema
- scikit-learn~=1.2.1
- scikit-image~=0.21.0
Expand Down
2 changes: 1 addition & 1 deletion environment_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- scipy~=1.10.0
- jinja2~=3.0
- conda-forge::torchvision>=0.5.0
- conda-forge::pytorch~=2.2.0
- conda-forge::pytorch~=2.1.0
- cudatoolkit>=9.2
- jsonschema
- scikit-learn~=1.2.1
Expand Down
8 changes: 4 additions & 4 deletions kraken/lib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self,
min_epochs: int = 5,
max_epochs: int = 100,
freeze_backbone=-1,
pl_logger: Union[L.loggers.logger.Logger, str, None] = None,
pl_logger: Union[L.pytorch.loggers.logger.Logger, str, None] = None,
log_dir: Optional['PathLike'] = None,
*args,
**kwargs):
Expand All @@ -93,14 +93,14 @@ def __init__(self,
kwargs['callbacks'] = [kwargs['callbacks']]

if pl_logger:
if 'logger' in kwargs and isinstance(kwargs['logger'], L.loggers.logger.Logger):
if 'logger' in kwargs and isinstance(kwargs['logger'], L.pytorch.loggers.logger.Logger):
logger.debug('Experiment logger has been provided outside KrakenTrainer as `logger`')
elif isinstance(pl_logger, L.loggers.logger.Logger):
elif isinstance(pl_logger, L.pytorch.loggers.logger.Logger):
logger.debug('Experiment logger has been provided outside KrakenTrainer as `pl_logger`')
kwargs['logger'] = pl_logger
elif pl_logger == 'tensorboard':
logger.debug('Creating default experiment logger')
kwargs['logger'] = L.loggers.TensorBoardLogger(log_dir)
kwargs['logger'] = L.pytorch.loggers.TensorBoardLogger(log_dir)
else:
logger.error('`pl_logger` was set, but %s is not an accepted value', pl_logger)
raise ValueError(f'{pl_logger} is not acceptable as logger')
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install_requires =
jinja2~=3.0
python-bidi
torchvision>=0.5.0
torch~=2.2.0
torch~=2.1.0
scikit-learn~=1.2.1
scikit-image~=0.21.0
shapely~=1.8.5
Expand Down

0 comments on commit 51d593a

Please sign in to comment.