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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
*.so
.vscode
*.pyc
*.so
/__pycache__/
/__pycache__/*
data_process/grasp_data/*
graspnet_dataset
data_process/script/image_skip.txt
data_process/script/scene_skip.txt
*.npz
*.npy
grasp_multiObject_multiGrasp/data/coco/
grasp_multiObject_multiGrasp/tools/result_/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "grasp_multiObject_multiGrasp/tools/result/*.npy" is better?

13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ cd ..

3. Training
```
cd grasp_multiObject_multiGrasp
./experiments/scripts/train_faster_rcnn.sh 0 graspRGB res50
```
./train_grasp.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "./command_train_grasp.sh"?

```

in the end of training the training script will call `test_faster_rcnn.sh`, but that file wasnot carefully rewrited, so you will get a 'no dataset' and then exit. its ok, go to next part: test.

4. Testing

```
./test_grasp.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems no such script? Or do you mean the "./command_predict_grasp.sh"?

``
8 changes: 8 additions & 0 deletions command_predict_grasp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
GPU_ID="0"

cd grasp_multiObject_multiGrasp/tools

CUDA_VISIBLE_DEVICES=${GPU_ID} python predict_graspRGD.py \
--net res50 \
--dataset grasp
4 changes: 4 additions & 0 deletions command_train_grasp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd grasp_multiObject_multiGrasp
./experiments/scripts/train_faster_rcnn.sh 0 graspRGB res50
12 changes: 12 additions & 0 deletions grasp_multiObject_multiGrasp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
grasp_data
tensorboard
output
log.txt
env.txt
data/coco
data/cache
data/demo/Images/
data/imagenet_weights/*
*.pyc
*.cpython-36.pyc
lib/datasets/__pycache__

This file was deleted.

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 removed grasp_multiObject_multiGrasp/tools/_init_paths.pyc
Binary file not shown.
13 changes: 8 additions & 5 deletions grasp_multiObject_multiGrasp/tools/predict_graspRGD.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
cos = scipy.cos
ar = scipy.array

os.environ['CUDA_VISIBLE_DEVICES'] = '1' # Choose GPU
# os.environ['CUDA_VISIBLE_DEVICES'] = '0' # Choose GPU

CLASSES = ('__background__',
'angle_01', 'angle_02', 'angle_03', 'angle_04', 'angle_05',
Expand Down Expand Up @@ -152,10 +152,13 @@ def parse_args():

for scene_index in range(100, 190):
scene_name = 'scene_{}'.format(str(scene_index).zfill(4)) # 'scene_0012'
if not os.path.exists(os.path.join('..', 'predicted_rectangle_grasp', scene_name)):
os.mkdir(os.path.join('..', 'predicted_rectangle_grasp', scene_name))
if not os.path.exists(os.path.join('..', 'predicted_rectangle_grasp', scene_name, graspnet_config.CAMERA_NAME)):
os.mkdir(os.path.join('..', 'predicted_rectangle_grasp', scene_name, graspnet_config.CAMERA_NAME))
pred_folder_name = 'predicted_rectangle_grasp'
if not os.path.exists(os.path.join('..', pred_folder_name)):
os.mkdir(os.path.join('..', pred_folder_name))
if not os.path.exists(os.path.join('..', pred_folder_name, scene_name)):
os.mkdir(os.path.join('..', pred_folder_name, scene_name))
if not os.path.exists(os.path.join('..', pred_folder_name, scene_name, graspnet_config.CAMERA_NAME)):
os.mkdir(os.path.join('..', pred_folder_name, scene_name, graspnet_config.CAMERA_NAME))
print(scene_name)
for img_index in range(256):
im_name = '{}+{}.png'.format(scene_name, str(img_index).zfill(4))
Expand Down
Binary file removed grasp_multiObject_multiGrasp/tools/result/FPPI.npy
Binary file not shown.
Binary file removed grasp_multiObject_multiGrasp/tools/result/miss_rate.npy
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion grasp_multiObject_multiGrasp/tools/test_graspRGD.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
cos = scipy.cos
ar = scipy.array

os.environ['CUDA_VISIBLE_DEVICES'] = '1' # Choose GPU
os.environ['CUDA_VISIBLE_DEVICES'] = '0' # Choose GPU

CLASSES = ('__background__',
'angle_01', 'angle_02', 'angle_03', 'angle_04', 'angle_05',
Expand Down