Skip to content

Grasping example - #371

Merged
muupan merged 35 commits into
chainer:masterfrom
muupan:grasp-example
Dec 24, 2018
Merged

Grasping example#371
muupan merged 35 commits into
chainer:masterfrom
muupan:grasp-example

Conversation

@muupan

@muupan muupan commented Dec 13, 2018

Copy link
Copy Markdown
Member

Merge #366 first.

This PR adds an example of learning to grasp using a Bullet-based env.

Updated READMEs:

TODOs:

  • Write examples/grasping/README.md
  • Update examples/README.md
  • Add an animated gif to README.md
  • Add tests

@muupan muupan changed the title [WIP] Grasping example Grasping example Dec 23, 2018

@prabhatnagarajan prabhatnagarajan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Take a look at my comments before merging.


# Watch how the learned agent performs

python examples/pybullet/train_dqn_batch_grasping.py --demo --render --load <path to agent>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it would be helpful if we were more specific about what is. Is it the same path as the outdir flag that is passed in to the agent during training?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I clarified this in README.


def __call__(self, x):
image, steps = x
h = self.image2hidden(image) * F.sigmoid(self.embed(steps))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need to divide this into two steps? Can the neural network not be implemented in one shot?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is possible to broadcast steps, concatenate it to image as an additional channel, and apply convolutions. The current implementation is simpler in a sense that it does not require broadcasting. I don't know which works better in practice.

@muupan
muupan merged commit 7896195 into chainer:master Dec 24, 2018
@muupan
muupan deleted the grasp-example branch December 24, 2018 09:24
@muupan muupan added this to the v0.6 milestone Feb 26, 2019
@muupan muupan added the example label Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants