Giter VIP home page Giter VIP logo

huanzhang12 / atla_robust_rl Goto Github PK

View Code? Open in Web Editor NEW
56.0 4.0 12.0 44.32 MB

Robust Reinforcement Learning with the Alternating Training of Learned Adversaries (ATLA) framework

Home Page: https://arxiv.org/pdf/2101.08452.pdf

Python 96.05% Shell 3.95%
reinforcement-learning robust-reinforcement-learning reinforcement-learning-algorithms adversarial-examples robust-machine-learning deep-reinforcement-learning

atla_robust_rl's Issues

where is get_best_pickle.py

Hi, when I want to extract my best adversary model, why:
python: can't open file 'get_best_pickle.py': [Errno 2] No such file or directory

sappo convex bug

Hi, when i use the command "python run.py --config-path config_halfcheetah_sappo_convex.json"
It will use the auto_LiRPA package and I have installed this package.
It will have an error:
File "atla/src/policy_gradients/steps.py", line 796, in robust_ppo_step
stdev=stdev).mean()
File "atla/src/policy_gradients/convex_relaxation.py", line 100, in get_kl_bound
ilb, iub = model.compute_bounds(inputs, IBP=True, C=None, method=None, bound_lower=True, bound_upper=True)
File "anaconda3/lib/python3.7/site-packages/auto_LiRPA-0.1-py3.7.egg/auto_LiRPA/bound_general.py", line 592, in compute_bounds
lower, upper = self._IBP_general(node=final, C=C)
File "anaconda3/lib/python3.7/site-packages/auto_LiRPA-0.1-py3.7.egg/auto_LiRPA/bound_general.py", line 763, in _IBP_general
node.interval = node.interval_propagate(*inp, C=C)
File "anaconda3/lib/python3.7/site-packages/auto_LiRPA-0.1-py3.7.egg/auto_LiRPA/bound_ops.py", line 694, in interval_propagate
center, deviation = BoundLinear._propogate_Linf(h_L, h_U, w)
File "anaconda3/lib/python3.7/site-packages/auto_LiRPA-0.1-py3.7.egg/auto_LiRPA/bound_ops.py", line 647, in _propogate_Linf
center = torch.bmm(mid.unsqueeze(1), w.transpose(-1, -2)).squeeze(1)
RuntimeError: Expected tensor to have size 64 at dimension 0, but got size 1 for argument #2 'batch2' (while checking arguments for bmm)

Could you give some idea to fix this auto_LiRPA bug?

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.