Skip to content

Commit 0e19eea

Browse files
authored
Add files via upload
1 parent 1e2f220 commit 0e19eea

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

maskrcnn_predict_directed.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515

1616
REGION_PROPOSALS = numpy.zeros(shape=(1, POST_NMS_ROIS_INFERENCE, 4), dtype=numpy.float32)
1717

18-
REGION_PROPOSALS[0, 0, :] = [0.0, 0.0 , 0.2, 0.3]
19-
REGION_PROPOSALS[0, 1, :] = [0.42, 0.02, 0.8, 0.267]
20-
REGION_PROPOSALS[0, 2, :] = [0.12, 0.52, 0.55, 0.84]
21-
REGION_PROPOSALS[0, 3, :] = [0.61, 0.71, 0.87, 0.21]
22-
REGION_PROPOSALS[0, 4, :] = [0.074, 0.83, 0.212, 0.94]
18+
# REGION_PROPOSALS[0, 0, :] = [0.0, 0.0 , 0.2, 0.3]
19+
# REGION_PROPOSALS[0, 1, :] = [0.42, 0.02, 0.8, 0.267]
20+
# REGION_PROPOSALS[0, 2, :] = [0.12, 0.52, 0.55, 0.84]
21+
# REGION_PROPOSALS[0, 3, :] = [0.61, 0.71, 0.87, 0.21]
22+
# REGION_PROPOSALS[0, 4, :] = [0.074, 0.83, 0.212, 0.94]
2323

24-
# REGION_PROPOSALS[0, 0, :] = [0.49552074, 0. , 0.53763664, 0.09105143]
25-
# REGION_PROPOSALS[0, 1, :] = [0.5294977 , 0.39210293, 0.63644147, 0.44242138]
26-
# REGION_PROPOSALS[0, 2, :] = [0.36204672, 0.40500385, 0.6706183 , 0.54514766]
27-
# REGION_PROPOSALS[0, 3, :] = [0.48107424, 0.08110721, 0.51513755, 0.17086479]
28-
# REGION_PROPOSALS[0, 4, :] = [0.45803332, 0.15717855, 0.4798005 , 0.20352092]
24+
REGION_PROPOSALS[0, 0, :] = [0.49552074, 0. , 0.53763664, 0.09105143]
25+
REGION_PROPOSALS[0, 1, :] = [0.5294977 , 0.39210293, 0.63644147, 0.44242138]
26+
REGION_PROPOSALS[0, 2, :] = [0.36204672, 0.40500385, 0.6706183 , 0.54514766]
27+
REGION_PROPOSALS[0, 3, :] = [0.48107424, 0.08110721, 0.51513755, 0.17086479]
28+
REGION_PROPOSALS[0, 4, :] = [0.45803332, 0.15717855, 0.4798005 , 0.20352092]
2929

3030
class SimpleConfig(mrcnn_directed.config.Config):
3131
# Give the configuration a recognizable name
@@ -71,3 +71,7 @@ class SimpleConfig(mrcnn_directed.config.Config):
7171
class_ids=r['class_ids'],
7272
class_names=CLASS_NAMES,
7373
scores=r['scores'])
74+
print(r['rois'].shape)
75+
print(r['masks'].shape)
76+
print(r['class_ids'].shape)
77+
print(r['scores'].shape)

0 commit comments

Comments
 (0)