Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by DarokCx · May 30 at 06:14 PM · memory-leakagent

Ml Agents release 19 training is freezing. Unity out of memory.

Hi, I'm having trouble training my 5dof robotic arm. I upgraded to release 19 branch, now I get this error and I still run out of memory:

 \ml-agents\mlagents\trainers\torch\networks.py:91: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at  C:\Users\builder\tkoch\workspace\pytorch\pytorch_1647970138273\work\torch\csrc\utils\tensor_new.cpp:201.)
   enc.update_normalization(torch.as_tensor(vec_input))

I don't know why this error comes out now but it may be related to the laggy (10 robot arm training at 19fps in the editor)

here is the config for the trainer:

 [INFO] Hyperparameters for behavior name arm:
         trainer_type:   ppo
         hyperparameters:
           batch_size:   1024
           buffer_size:  10240
           learning_rate:        0.0003
           beta: 0.005
           epsilon:      0.2
           lambd:        0.95
           num_epoch:    7
           learning_rate_schedule:       linear
           beta_schedule:        linear
           epsilon_schedule:     linear
         network_settings:
           normalize:    True
           hidden_units: 32
           num_layers:   2
           vis_encode_type:      simple
           memory:       None
           goal_conditioning_type:       hyper
           deterministic:        False
         reward_signals:
           extrinsic:
             gamma:      0.995
             strength:   1.0
             network_settings:
               normalize:        False
               hidden_units:     128
               num_layers:       2
               vis_encode_type:  simple
               memory:   None
               goal_conditioning_type:   hyper
               deterministic:    False
         init_path:      results\scenario1\arm\checkpoint.pt
         keep_checkpoints:       5
         checkpoint_interval:    500000
         max_steps:      30000000
         time_horizon:   250
         summary_freq:   30000
         threaded:       False
         self_play:      None
         behavioral_cloning:     None

running python 3.7.13.

Anybody have a clue ?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aymenou190 · Jun 04 at 03:59 PM 0
Share

Hello, I've been having the same problem since yesterday. I'm not sure what I did wrong, but everything was good until I started receiving that error every time I tried to train my models.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by aymenou190 · Jun 04 at 06:19 PM

Hey, I have sorted out the problem: I had to reinstall PyTorch because I was using the latest version, however mlAgents only supports 1.7.1. To install it, execute the following command in command prompt: torch=1.7.1 pip3 install -f https://download.pytorch.org/whl/torch stable.html

During the installation process, I encountered another problem with Windows not accepting path characters over 260, so I simply followed this guide: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

186 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Apparent Memory Leak during texture change 0 Answers

Is there something wrong with NavMeshAgent? 1 Answer

iOS - Placing Texture2Ds in Array cause Memory Leak? 0 Answers

Memory leak 0 Answers

Issue updating NavMesh code and Agent. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges