Skip to content

Commit cb9dd45

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aaca097 commit cb9dd45

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

setup.cfg

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url = https://github.com/Hekstra-Lab/yeast-mcrnn
77
author = Ian Hunt-Isaak, John Russell
88
99
license = MIT
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
platforms = Linux, Mac OS X, Windows
1212
classifiers =
1313
Intended Audience :: Developers
@@ -16,10 +16,6 @@ classifiers =
1616
Programming Language :: Python
1717
Programming Language :: Python :: 3
1818
Programming Language :: Python :: 3 :: Only
19-
Programming Language :: Python :: 3.6
20-
Programming Language :: Python :: 3.7
21-
Programming Language :: Python :: 3.8
22-
Programming Language :: Python :: 3.9
2319
Programming Language :: Python :: Implementation :: CPython
2420

2521
[options]
@@ -29,10 +25,10 @@ install_requires =
2925
fast-overlap
3026
numpy
3127
pandas
32-
read_roi
28+
read-roi
3329
tifffile
3430
torch
35-
python_requires = >=3.6
31+
python_requires = >=3.8
3632

3733
[options.extras_require]
3834
test =

yeast_mrcnn/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def mrcnn():
3333
)
3434

3535
# Make anchor generator with 3 sizes per feature map and 5 aspect ratios
36-
sizes = tuple(2.0 ** x for x in range(5, 12))
36+
sizes = tuple(2.0**x for x in range(5, 12))
3737
aspects = tuple(0.5 * x for x in range(1, 5))
3838
n_feature_maps = 5 # true for resnet50 with FPN
3939
ag_sizes = tuple(tuple(sizes[i : i + 3]) for i in range(n_feature_maps))

yeast_mrcnn/train.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
def train_one_epoch(model, dataloader, optimizer, epoch, device):
18-
1918
loss_df = pd.DataFrame()
2019

2120
lr_scheduler = None
@@ -70,7 +69,6 @@ def train(
7069
model.train()
7170

7271
for e in range(epochs):
73-
7472
loss_df = train_one_epoch(model, train_dataloader, optimizer, e, device)
7573

7674
loss_df = loss_df.join(evaluate_test(model, val_dataloader, device))

0 commit comments

Comments
 (0)