Skip to content

inference_demo.py issue, detailed install instructions of tested platform? #1

Description

@erwincoumans

I'm getting errors after installing it, see below. Can you describe on what platform you develop and test lcp-physics, which versions of all relevant packages (Linux distro, mac, windows etc), python3 version (anaconda?) etc.

demo.py seems to work (but sim runs pretty slow), but python inference_demo.py gives an error:

erwincoumans-macbookpro2:demos erwincoumans$ python inference_demo.py 
  10 / 11  30.0Traceback (most recent call last):
  File "inference_demo.py", line 248, in <module>
    inference_demo(screen)
  File "inference_demo.py", line 49, in inference_demo
    grad = c.mass.grad.data
AttributeError: 'NoneType' object has no attribute 'data'


(python and pip are an alias to python3 and pip3)

conda install pytorch torchvision -c pytorch
pip install pygame
python setup.py develop
cd demos
python demo.py

erwincoumans-macbookpro2:demos erwincoumans$ python inference_demo.py 
  10 / 11  30.0Traceback (most recent call last):
  File "inference_demo.py", line 248, in <module>
    inference_demo(screen)
  File "inference_demo.py", line 49, in inference_demo
    grad = c.mass.grad.data
AttributeError: 'NoneType' object has no attribute 'data'

image

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions