Skip to content

Commit

Permalink
remove unnecessary dep
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertDominguez committed Jun 17, 2024
1 parent 84e9d74 commit dbeb880
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ install_requires =
csbdeep
lightning
networkx
numerize
numpy<2.0.0
pandas
Pillow
Expand Down
3 changes: 1 addition & 2 deletions tests/test_training.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from spotiflow.data import SpotsDataset
from spotiflow.model import SpotiflowModelConfig, SpotiflowTrainingConfig, Spotiflow
import lightning.pytorch as pl
from numerize.numerize import numerize
import torch
from utils import example_data

Expand Down Expand Up @@ -54,7 +53,7 @@

model = Spotiflow(config)

print(f"Total params: {numerize(sum(p.numel() for p in model.parameters()))}")
print(f"Total params: {sum(p.numel() for p in model.parameters())}")

logger = pl.loggers.TensorBoardLogger(
save_dir="foo",
Expand Down
3 changes: 1 addition & 2 deletions tests/test_training_simple.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from spotiflow.model import SpotiflowModelConfig, Spotiflow
from numerize.numerize import numerize
import torch
from utils import example_data

Expand All @@ -15,6 +14,6 @@

model = Spotiflow(config)

print(f"Total params: {numerize(sum(p.numel() for p in model.parameters()))}")
print(f"Total params: {sum(p.numel() for p in model.parameters())}")

model.fit(X, P, Xv, Pv, save_dir="tmp", train_config={"num_epochs": 10})

0 comments on commit dbeb880

Please sign in to comment.