Git Product home page Git Product logo

Comments (4)

yejr0229 avatar yejr0229 commented on August 18, 2024

Below is a detailed error report.

Traceback (most recent call last):
File "train.py", line 39, in
main()
File "train.py", line 33, in main
train_dataloader=train_loader)
File "core/train/trainers/monohuman/trainer.py", line 177, in train
net_output = self.network(**data)
File "/home/yejr/miniconda3/envs/Monohuman/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "core/nets/monohuman/network.py", line 609, in forward
all_ret = self._batchify_rays(packed_ray_infos, **kwargs)
File "core/nets/monohuman/network.py", line 273, in _batchify_rays
ret = self._render_rays(rays_flat[i:i+cfg.chunk], **kwargs)
File "core/nets/monohuman/network.py", line 502, in _render_rays
T_joints=canonical_joints)
File "core/nets/monohuman/network.py", line 201, in _query_mlp
rgb_feat=rgb_feat)
File "core/nets/monohuman/network.py", line 236, in _apply_mlp_kernals
dis, _ = closest_distance_to_points(T_joints, SMPL_PARENT, xyz)
File "core/nets/monohuman/network.py", line 81, in closest_distance_to_points
p_index = parent[min_index]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

from monohuman.

Yzmblog avatar Yzmblog commented on August 18, 2024

Below is a detailed error report.

Traceback (most recent call last): File "train.py", line 39, in main() File "train.py", line 33, in main train_dataloader=train_loader) File "core/train/trainers/monohuman/trainer.py", line 177, in train net_output = self.network(**data) File "/home/yejr/miniconda3/envs/Monohuman/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "core/nets/monohuman/network.py", line 609, in forward all_ret = self._batchify_rays(packed_ray_infos, **kwargs) File "core/nets/monohuman/network.py", line 273, in _batchify_rays ret = self._render_rays(rays_flat[i:i+cfg.chunk], **kwargs) File "core/nets/monohuman/network.py", line 502, in _render_rays T_joints=canonical_joints) File "core/nets/monohuman/network.py", line 201, in _query_mlp rgb_feat=rgb_feat) File "core/nets/monohuman/network.py", line 236, in _apply_mlp_kernals dis, _ = closest_distance_to_points(T_joints, SMPL_PARENT, xyz) File "core/nets/monohuman/network.py", line 81, in closest_distance_to_points p_index = parent[min_index] RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

Hi, I didn't encounter this error. Please check if you have modified any code. And It seems that the 'min_index' in GPU course the error. Just put 'min_index' to CPU will fix it.

from monohuman.

yejr0229 avatar yejr0229 commented on August 18, 2024

The problem has been solved, thank you
May I also ask if Monohuman can train together with multiple GPUs?

from monohuman.

Yzmblog avatar Yzmblog commented on August 18, 2024

The problem has been solved, thank you May I also ask if Monohuman can train together with multiple GPUs?

It did not support DDP training yet. I will update it later. Thanks.

from monohuman.

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.