Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_gqcnn_dataset.py not generating valid data #50

Open
yruoxi opened this issue Oct 14, 2019 · 6 comments
Open

generate_gqcnn_dataset.py not generating valid data #50

yruoxi opened this issue Oct 14, 2019 · 6 comments

Comments

@yruoxi
Copy link

yruoxi commented Oct 14, 2019

I am trying to reproduce the dexnet result for learning. I came up with a problem with dex-net/tools/generate_gqcnn_dataset.py and it does not quite work. Can you perhaps help me with that, or point me to someone who knows this subject matter or has encountered this error before?

Details are as follows

generated_depth

From the left is the depth_ims_tf from generate script, from the right is the reference from the pre-generated set, the left ones feels like just random noise without depth correctly rendered.

I turned on the vis debugging portion of the yaml config file, in which candidate grasp was displayed correctly, rendered_images are similar to the ones on the left, it does have something but nothing like an object. the grasps images seems to not be on any target objects. There is also some problem with vis3d as it needs a trimesh object. Here are the images below, success messages and fail messages.

output

gripper

depth_out

second_err

If i turned off the debug vis in yaml, the script will run to completion, but the generated data is unusable like the ones shown above. Also the code does not have any missing and unable to find packages in the output window.

Can you give some help on that, you insights will be a great help to me.

@yruoxi
Copy link
Author

yruoxi commented Oct 30, 2019

still seeking for help, @jeffmahler

@benjertho
Copy link

@yruoxi I am seeing this as well. Did you find a solution for this?

@yruoxi
Copy link
Author

yruoxi commented Nov 21, 2019

No, still seeking help, I don't know 3d rendering well enough to fix the bug.

@benjertho
Copy link

Try this fix out:
benjertho@5e67ee0

It looks like importing the grasping and visualization libraries was the problem.

@yruoxi
Copy link
Author

yruoxi commented Jan 7, 2020

Just tried it and it totally works, I did change the grasp2d and vis2d not found error but I didnt change the vis2d to plt. Also for the record, in gqcnn/grasping/grasp.py, import should also be changed to from gqcnn.grasping import Grasp2D.

Thanks so much for your help

@anmakon
Copy link

anmakon commented Aug 31, 2020

Hi @benjertho and @yruoxi,
I'm seeing similar behaviour (depth and binary images consisting of random noise) as you've encountered before. I've changed all the library imports (grasp2d, vis2d) and tested it with both the dexnet_2_database and the example one, but no luck up to now. It doesn't throw any warnings or errors with the debugging mode turned off. Changing the visualisation from vis2d to matplotlib when debugging didn't really do the trick for me either. Unfortunately, I can't visualise the 3D environment with the object and gripper to check if anything is going wrong there.
Do you remember changing anything else to get it working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants