Skip to content

Commit 79aed05

Browse files
committed
fix bugs
1 parent 604f148 commit 79aed05

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

graspnetAPI/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'mhgou'
2-
__version__ = '1.2.9'
2+
__version__ = '1.2.10'
33

44
from .graspnet import GraspNet
55
from .graspnet_eval import GraspNetEval

graspnetAPI/graspnet.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -658,16 +658,8 @@ def loadGrasp(self, sceneId, annId=0, format = '6d', camera='kinect', grasp_labe
658658
grasp_group.grasp_group_array = np.concatenate((grasp_group.grasp_group_array, obj_grasp_array))
659659
return grasp_group
660660
else:
661-
import copy
662661
# 'rect'
663-
# for rectangle grasp, collision labels and grasp labels are not necessray.
664-
##################### OLD LABEL ################
665-
############### MODIFICATION NEEDED ############
666662
rect_grasps = RectGraspGroup(os.path.join(self.root,'scenes','scene_%04d' % sceneId,camera,'rect','%04d.npy' % annId))
667-
# mask = rect_grasp_label[:,5] >= (1.1 - fric_coef_thresh)
668-
# rect_grasp_label = rect_grasp_label[mask]
669-
# rect_grasp = RectGraspGroup()
670-
# rect_grasp.rect_grasp_group_array = copy.deepcopy(rect_grasp_label)
671663
return rect_grasps
672664

673665
def loadData(self, ids=None, *extargs):

0 commit comments

Comments
 (0)