Skip to content

Commit 2788e44

Browse files
mmarcinkiewicznv-kkudrynski
authored andcommitted
[UNET2D/TF2] Fix numpy API deprecation
1 parent 38934f9 commit 2788e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TensorFlow2/Segmentation/UNet_Medical/data_loading/data_loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _load_multipage_tiff(self, path):
6868
def _get_val_train_indices(self, length, fold, ratio=0.8):
6969
assert 0 < ratio <= 1, "Train/total data ratio must be in range (0.0, 1.0]"
7070
np.random.seed(self._seed)
71-
indices = np.arange(0, length, 1, dtype=np.int)
71+
indices = np.arange(0, length, 1, dtype=np.int32)
7272
np.random.shuffle(indices)
7373
if fold is not None:
7474
indices = deque(indices)

0 commit comments

Comments
 (0)