Skip to content

Commit 1f12d3a

Browse files
committed
Update some requirements, depend on yet to be released timm v0.2.2, update pycocotools dep to 2.0.2
1 parent e18ad8e commit 1f12d3a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

effdet/data/parsers/parser_open_images.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Copyright 2020 Ross Wightman
44
"""
55
import numpy as np
6-
import pandas as pd
76
import os
87
import logging
98

@@ -44,6 +43,8 @@ def _load_annotations(
4443
masks_filename: str,
4544
bbox_filename: str,
4645
):
46+
import pandas as pd # For now, blow up on pandas req only when trying to load open images anno
47+
4748
_logger.info('Loading categories...')
4849
classes_df = pd.read_csv(categories_filename, header=None)
4950
self.cat_ids = classes_df[0].tolist()

requirements.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
torch>=1.4.0
2-
timm>=0.1.28
2+
timm>=0.2.2
33
torchvision
4-
pycocotools
54
pyyaml
5+
numpy
6+
7+
# an update version that fixes some bugs, incl issues with numpy >= 1.18
8+
pycocotools>=2.0.2
69

710
# better to manually install pillow-simd
811
Pillow
912

10-
# conflict between pycocotools and numpy 1.18.+
11-
numpy<=1.17.5
12-
1313
# pycocotools needs this but doesn't have dep
1414
matplotlib
1515

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
# Note that this is a string of words separated by whitespace, not a list.
4343
keywords='pytorch pretrained efficientdet efficientnet bifpn object detection',
4444
packages=find_packages(exclude=['data']),
45-
install_requires=['torch >= 1.4', 'torchvision', 'timm >= 0.1.28'],
45+
install_requires=['torch >= 1.4', 'torchvision', 'timm >= 0.2.2'],
4646
python_requires='>=3.6',
4747
)

0 commit comments

Comments
 (0)