Giter Club home page Giter Club logo

Comments (6)

SuuTTT avatar SuuTTT commented on August 22, 2024

same

environment:

  • install sim3.10-hotfix
  • pip install tensordict torchrl
  • pip install -e .

detail error

Error executing job with overrides: ['algo=ppo', 'headless=true', 'wandb.entity=user21']
Traceback (most recent call last):
File "/home/user/OmniDrones/scripts/train.py", line 128, in main
collector = SyncDataCollector(
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/collectors/collectors.py", line 721, in init
self._shuttle = self.env.reset()
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/common.py", line 2056, in reset
tensordict_reset = self._reset(tensordict, **kwargs)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/transforms/transforms.py", line 790, in _reset
tensordict_reset = self.transform._reset(tensordict, tensordict_reset)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/transforms/transforms.py", line 1050, in _reset
tensordict_reset = t._reset(tensordict, tensordict_reset)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/transforms/transforms.py", line 1050, in _reset
tensordict_reset = t._reset(tensordict, tensordict_reset)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/transforms/transforms.py", line 3775, in _reset
tensordict_reset = self._call(tensordict_reset)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/torchrl/envs/transforms/transforms.py", line 3760, in _call
tensordict.exclude(*self.keys_to_exclude, inplace=True)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/tensordict/base.py", line 4266, in exclude
result = self._exclude(*keys, inplace=inplace)
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/tensordict/_td.py", line 1988, in _exclude
val = val._exclude(
File "/home/user/miniconda3/envs/sim3.10-hotfix/lib/python3.10/site-packages/tensordict/_td.py", line 1988, in _exclude
val = val._exclude(
AttributeError: 'Tensor' object has no attribute '_exclude'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
wandb:  View run Hover-ppo/02-10_01-36 at: https://wandb.ai/user21/omnidrones/runs/gigy0a7j
wandb: ️⚡ View job at https://wandb.ai/user21/omnidrones/jobs/QXJ0aWZhY3RDb2xsZWN0aW9uOjEzODUxOTk2Mg==/version_details/v0

from omnidrones.

btx0424 avatar btx0424 commented on August 22, 2024

Sorry for the delayed reply! It should be fixed now.

from omnidrones.

AkgunOnur avatar AkgunOnur commented on August 22, 2024

Hi

Hope you're doing well. I'm still having a bit of a problem with TensorDict. I tried uninstalling it and then reinstalling it again, both with pip for the stable release and from the source using "python setup.py develop." But, I'm still stuck with this error:

tensordict.exclude(*self.keys_to_exclude, inplace=True) File "/home/onur/Downloads/tensordict/tensordict/base.py", line 4343, in exclude result = self._exclude(*keys, inplace=inplace) File "/home/onur/Downloads/tensordict/tensordict/_td.py", line 2045, in _exclude val = val._exclude( File "/home/onur/Downloads/tensordict/tensordict/_td.py", line 2045, in _exclude val = val._exclude( AttributeError: 'Tensor' object has no attribute '_exclude'

I also tried version 0.4.0, thinking it might fix things. But it turns out it needs Torch 2.2.0, which doesn't play nice with Isaac Orbit and now I'm seeing compatibility issues.

Got any ideas on how to get around this problem? Would really appreciate your input.

Thanks a bunch!

from omnidrones.

SuuTTT avatar SuuTTT commented on August 22, 2024

I can train with the #46 above, i update those files directly.
this is my commands:

  • install ISAAC SIM 2023.1.0-hotfix in GUI
  • conda create -n sim3.10 python=3.10 -y
  • conda activate sim3.10
  • cp -r conda_setup/etc $CONDA_PREFIX
  • conda activate sim3.10
  • pip install tensordict torchrl
  • pip install -e .
  • cd scripts
  • python train.py algo=ppo headless=true wandb.entity=

from omnidrones.

btx0424 avatar btx0424 commented on August 22, 2024

Hi

Hope you're doing well. I'm still having a bit of a problem with TensorDict. I tried uninstalling it and then reinstalling it again, both with pip for the stable release and from the source using "python setup.py develop." But, I'm still stuck with this error:

tensordict.exclude(*self.keys_to_exclude, inplace=True) File "/home/onur/Downloads/tensordict/tensordict/base.py", line 4343, in exclude result = self._exclude(*keys, inplace=inplace) File "/home/onur/Downloads/tensordict/tensordict/_td.py", line 2045, in _exclude val = val._exclude( File "/home/onur/Downloads/tensordict/tensordict/_td.py", line 2045, in _exclude val = val._exclude( AttributeError: 'Tensor' object has no attribute '_exclude'

I also tried version 0.4.0, thinking it might fix things. But it turns out it needs Torch 2.2.0, which doesn't play nice with Isaac Orbit and now I'm seeing compatibility issues.

Got any ideas on how to get around this problem? Would really appreciate your input.

Thanks a bunch!

Hi. I found that the problem was with the usage of CatTensors Transform for concatenating the intrinsic parameters together. in train.py. The PR should have fixed it. Just run git pull under OmniDrones.

from omnidrones.

AkgunOnur avatar AkgunOnur commented on August 22, 2024

It works now. Thanks for the help!

from omnidrones.

Related Issues (20)

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.