Git Product home page Git Product logo

unidexgrasp2's People

Contributors

geng-haoran avatar wkwan7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unidexgrasp2's Issues

The code

Hi, thanks for the great work. Could I know when the code will be released?

[Bug] DAggerValue, ppo_buffer adds next_obs instead of current_obs

# Record the transition
self.storage.add_transitions(current_obs, actions_expert, rews, dones)
current_obs.copy_(next_obs)

# value_net
if self.apply_value_net:
    self.ppo_buffer.add_transitions(
        current_obs, current_states, actions, rews, 
        dones, values, actions_log_prob, mu, sigma,
    )
    current_states.copy_(next_states)

the current_obs variable updates before adding transitions to ppo_buffer, so the ppo_buffer actually adds the next_obs instead the current_obs.

A Question About Dagger Value Algorithm

Hi, I have a question about dagger-value algorithm:
when updating value network, why do you use torch.max() to get the larger loss?

What's the meaning comparing these two losses? In my understanding, using clipped value loss is to keep the training procedure stable, but in that case why is it max not min, or, why not just use value_losses_clipped directly?

clip_range = self.value_loss_cfg['clip_range']
value_clipped = target_values_batch + (value_batch - target_values_batch).clamp(-clip_range, clip_range)
value_losses = (value_batch - returns_batch).pow(2)
value_losses_clipped = (value_clipped - returns_batch).pow(2)
value_loss = torch.max(value_losses, value_losses_clipped).mean()

In above code, the target_values_batch is the student critic value before learning epoches, value_batch is student critic value during learning epoches.

self.ppo_buffer.add_transitions(current_obs, current_states, actions, rews, dones, values, actions_log_prob, mu, sigma)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.