Git Product home page Git Product logo

Comments (6)

carlosedubarreto avatar carlosedubarreto commented on July 19, 2024 2

The main problem is in this part
image
for windows it usually doenst work because the code is based onllinux commands, and not on python ones.

The easiest way it to make what @toyxyz says.

Also add the same "SMPL_NEUTRAL.pkl" to your "%HOMEPATH%.cache\4DHumans\data\smpl" folder

from 4d-humans.

shubham-goel avatar shubham-goel commented on July 19, 2024 2

Thanks folks! I don't have a windows machine to test but if someone wants to open a PR with these changes, I'd be happy to review and merge :)

from 4d-humans.

toyxyz avatar toyxyz commented on July 19, 2024 1

I have had success with detectron2 this way. : https://stackoverflow.com/a/72784255/22334744

And I needed to put SMPL_NEUTRAL.pkl into .cache\phalp\3D\models\smpl. https://github.com/sampepose/smpl_models/tree/master

from 4d-humans.

hbardak avatar hbardak commented on July 19, 2024

By any chance did you bump into this error ? ( before installing PHALP )

 File "D:\My_project\4D-Humans\demo.py", line 167, in <module>
    main()
  File "D:\My_project\4D-Humans\demo.py", line 42, in main
    from hmr2.utils.utils_detectron2 import DefaultPredictor_Lazy
  File "D:\My_project\4D-Humans\hmr2\utils\utils_detectron2.py", line 1, in <module>
    import detectron2.data.transforms as T
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\data\__init__.py", line 2, in <module>
    from . import transforms  # isort:skip
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\data\transforms\__init__.py", line 6, in <module>
    from .augmentation_impl import *
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\data\transforms\augmentation_impl.py", line 23, in <module>
    from detectron2.structures import Boxes, pairwise_iou
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\structures\__init__.py", line 3, in <module>
    from .image_list import ImageList
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\structures\image_list.py", line 8, in <module>
    from detectron2.layers.wrappers import move_device_like, shapes_to_tensor
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\layers\__init__.py", line 5, in <module>
    from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated
  File "D:\anaconda3\envs\4D-humans\lib\site-packages\detectron2\layers\nms.py", line 25, in <module>
    @torch.compiler.disable
AttributeError: module 'torch' has no attribute 'compiler'

from 4d-humans.

carlosedubarreto avatar carlosedubarreto commented on July 19, 2024

@hbardak I saw that problem, try to get an older version of detectron, maybe it will work.
from what I've read, the compiler option is available only on torch2.0 upwards

from 4d-humans.

hbardak avatar hbardak commented on July 19, 2024

It took me sweat and blood to compile detectron2 :-) Following your instruction on #36

Any ideas which version I should build ?

from 4d-humans.

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.