Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

np. load function add allow_pickle = True #104

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

""" Demo of using VoteNet 3D object detector to detect objects from a point cloud.
"""

import os
import sys
import numpy as np
Expand Down
8 changes: 4 additions & 4 deletions scannet/scannet_detection_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def __getitem__(self, idx):
"""

scan_name = self.scan_names[idx]
mesh_vertices = np.load(os.path.join(self.data_path, scan_name)+'_vert.npy')
instance_labels = np.load(os.path.join(self.data_path, scan_name)+'_ins_label.npy')
semantic_labels = np.load(os.path.join(self.data_path, scan_name)+'_sem_label.npy')
instance_bboxes = np.load(os.path.join(self.data_path, scan_name)+'_bbox.npy')
mesh_vertices = np.load(os.path.join(self.data_path, scan_name)+'_vert.npy', allow_pickle=True)
instance_labels = np.load(os.path.join(self.data_path, scan_name)+'_ins_label.npy', allow_pickle=True)
semantic_labels = np.load(os.path.join(self.data_path, scan_name)+'_sem_label.npy', allow_pickle=True)
instance_bboxes = np.load(os.path.join(self.data_path, scan_name)+'_bbox.npy', allow_pickle=True)

if not self.use_color:
point_cloud = mesh_vertices[:,0:3] # do not use color for now
Expand Down