Skip to content

Commit c81ed7e

Browse files
committed
Deal with package version rot
1 parent d07a341 commit c81ed7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

multic/segmentationschool/Codes/IterativeTraining_1X.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os, sys, cv2, time, random, warnings, multiprocessing#json,# detectron2
22
import numpy as np
3+
np.bool = np.bool_ # to avoid AttributeError: module 'numpy' has no attribute 'bool'.
34
import matplotlib.pyplot as plt
45
import lxml.etree as ET
56
from matplotlib import path

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ def prerelease_local_scheme(version):
4646
# scientific packages
4747
'nimfa>=1.3.2',
4848
'numpy>=1.21.1,<2.0',
49+
# 'numpy==1.23.1', # last version before np.bool was deprecated (needed by imgaug)
4950
'scipy>=0.19.0',
5051
'Pillow==9.5.0',
5152
'pandas>=0.19.2',
5253
'imageio>=2.3.0',
5354
'shapely[vectorized]==2.0.7',
5455
'opencv-python-headless<4.7',
55-
'imgaug==0.4.0',
56+
# 'imgaug==0.4.0',
57+
'imgaug @ git+https://github.com/aleju/imgaug@0101108d4fed06bc5056c4a03e2bcb0216dac326', # 0.4.0+patches
5658
#'sqlalchemy',
5759
# 'matplotlib',
5860
'pyvips',

0 commit comments

Comments
 (0)