Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__pycache__/
outputs/
wandb/
data_set1_5classes/
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_FOR.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_R8.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V016.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V018.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V020.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V025.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V030.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/evaluation_stats_V040.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def log_string(out_str):
################################################################
for i_sem in ins_classcount:
###### metrics for offset ######
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_Focalloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_loss1.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v7.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
4 changes: 2 additions & 2 deletions PointCloudSegmentation/main_scorenet_v8.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def compute_eval(clusters, predicted_labels, instance_labels, y , batch, num_ins
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read_gt_log(path):
else:
line = all_mat[i].split("\t")

mat[i % 5 - 1] = np.asarray(line[:4], dtype=np.float)
mat[i % 5 - 1] = np.asarray(line[:4], dtype=float)
list_mat.append(mat)
return list_pair, list_mat

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def read_gt_log(path):
else:
line = all_mat[i].split("\t")

mat[i % 5 - 1] = np.asarray(line[:4], dtype=np.float)
mat[i % 5 - 1] = np.asarray(line[:4], dtype=float)
list_mat.append(mat)
return list_pair, list_mat
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions PointCloudSegmentation/torch_points3d/datasets/panoptic/npm3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def log_string(out_str):
all_mean_cov = [[] for itmp in range(NUM_CLASSES)]
all_mean_weighted_cov = [[] for itmp in range(NUM_CLASSES)]

pred_ins_complete = np.asarray(pre_ins_offset).reshape(-1).astype(np.int)
pred_sem_complete = np.asarray(pre_sem).reshape(-1).astype(np.int)+1
gt_ins_complete = np.asarray(gt_ins).reshape(-1).astype(np.int)
gt_sem_complete = np.asarray(gt_sem).reshape(-1).astype(np.int)+1
pred_ins_complete = np.asarray(pre_ins_offset).reshape(-1).astype(int)
pred_sem_complete = np.asarray(pre_sem).reshape(-1).astype(int)+1
gt_ins_complete = np.asarray(gt_ins).reshape(-1).astype(int)
gt_sem_complete = np.asarray(gt_sem).reshape(-1).astype(int)+1

idxc = ((gt_sem_complete!=0) & (gt_sem_complete!=1) & (gt_sem_complete!=2) & (gt_sem_complete!=6)) | ((pred_sem_complete!=0) & (pred_sem_complete!=1) & (pred_sem_complete!=2) & (pred_sem_complete!=6))
pred_ins = pred_ins_complete[idxc]
Expand Down Expand Up @@ -319,8 +319,8 @@ def log_string(out_str):
###### metrics for offset ######
if not tpsins[i_sem] or not fpsins[i_sem]:
continue
tp = np.asarray(tpsins[i_sem]).astype(np.float)
fp = np.asarray(fpsins[i_sem]).astype(np.float)
tp = np.asarray(tpsins[i_sem]).astype(float)
fp = np.asarray(fpsins[i_sem]).astype(float)
tp = np.sum(tp)
fp = np.sum(fp)
# recall and precision
Expand Down
Loading