Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c57e6a1

Browse files
authored
Merge pull request graspnet#51 from graspnet/1.2.11
1.2.11
2 parents 02dbe2d + a2d688e commit c57e6a1

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'graspnet'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.2.10'
25+
release = '1.2.11'
2626

2727

2828
# -- General configuration ---------------------------------------------------

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.10'
2+
__version__ = '1.2.11'
33

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

graspnetAPI/graspnet.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _isArrayLike(obj):
6767

6868

6969
class GraspNet():
70-
def __init__(self, root, camera='kinect', split='train'):
70+
def __init__(self, root, camera='kinect', split='train', sceneIds=[]):
7171
'''
7272
7373
graspnetAPI main class.
@@ -76,10 +76,12 @@ def __init__(self, root, camera='kinect', split='train'):
7676
7777
- camera: string of type of camera: "kinect" or "realsense"
7878
79-
- split: string of type of split of dataset: "all", "train", "test", "test_seen", "test_similar" or "test_novel"
79+
- split: string of type of split of dataset: "all", "train", "test", "test_seen", "test_similar", "test_novel" or "custom"
80+
81+
- sceneIds: list of custom scene ids.
8082
'''
8183
assert camera in ['kinect', 'realsense'], 'camera should be kinect or realsense'
82-
assert split in ['all', 'train', 'test', 'test_seen', 'test_similar', 'test_novel'], 'split should be all/train/test/test_seen/test_similar/test_novel'
84+
assert split in ['all', 'train', 'test', 'test_seen', 'test_similar', 'test_novel', "custom"], 'split should be all/train/test/test_seen/test_similar/test_novel'
8385
self.root = root
8486
self.camera = camera
8587
self.split = split
@@ -97,6 +99,8 @@ def __init__(self, root, camera='kinect', split='train'):
9799
self.sceneIds = list(range(130, 160))
98100
elif split == 'test_novel':
99101
self.sceneIds = list(range(160, 190))
102+
elif split == "custom":
103+
self.sceneIds = sceneIds
100104

101105
self.rgbPath = []
102106
self.depthPath = []

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
setup(
77
name='graspnetAPI',
8-
version='1.2.10',
8+
version='1.2.11',
99
description='graspnet API',
1010
author='Hao-Shu Fang, Chenxi Wang, Minghao Gou',
1111
author_email='[email protected]',
1212
url='https://graspnet.net',
1313
packages=find_packages(),
1414
install_requires=[
15-
'numpy',
15+
'numpy==1.20.3',
1616
'scipy',
1717
'transforms3d==0.3.1',
1818
'open3d>=0.8.0.0',
@@ -30,7 +30,7 @@
3030
'cvxopt',
3131
'dill',
3232
'h5py',
33-
'sklearn',
33+
'scikit-learn',
3434
'grasp_nms'
3535
]
3636
)

0 commit comments

Comments
 (0)