Comments (11)
And,also, when I delete the
rendered_seq, aux_seq = self.eval()
in train.py, the question do not happen. I am very confused about the problem.
from banmo.
The issue happened to me when environment/packages are not installed properly. There are two things to check:
Did you follow the readme to install with a new environment. Were you able to run it on the demo video?
from banmo.
Of course, I create conda environment based on your misc/banmo-cu113.yml.
The other problem is when i run # mode: fine tunning without pose correction
I see this problem, due to vars_np['mesh_rest'] is trimesh(0, 3). therefore vars_np['mesh_rest'].bounds return is None.
pts = trimesh.bounds.corners(vars_np['mesh_rest'].bounds)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/trimesh/bounds.py", line 435, in corners
raise ValueError('bounds must be (2,2) or (2,3)!')
I I am very interested in your series of work, and Could I get your contact information and ask your more details about ViSER and banmo ^ ^
from banmo.
Thanks for the info. Can you provide a full backtrace log? I’ll look into this bug.
You may reach me by email.
from banmo.
Thank you for your kind reply
the log of issue of training:
/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "/home/lingteng/2022/project/banmo-main/main.py", line 54, in <module>
app.run(main)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/lingteng/2022/project/banmo-main/main.py", line 51, in main
trainer.train()
File "/home/lingteng/2022/project/banmo-main/nnutils/train_utils.py", line 701, in train
self.train_one_epoch(epoch, log)
File "/home/lingteng/2022/project/banmo-main/nnutils/train_utils.py", line 942, in train_one_epoch
total_loss,aux_out = self.model(batch)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 886, in forward
output = self.module(*inputs[0], **kwargs[0])
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/lingteng/2022/project/banmo-main/nnutils/banmo.py", line 652, in forward_default
mesh_rest = pytorch3d.structures.meshes.Meshes(
File "/home/lingteng/2022/project/banmo-main/third_party/pytorch3d/pytorch3d/structures/meshes.py", line 408, in __init__
if len(self._num_faces_per_mesh.unique()) == 1:
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/_tensor.py", line 530, in unique
return torch.unique(self, sorted=sorted, return_inverse=return_inverse, return_counts=return_counts, dim=dim)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/_jit_internal.py", line 422, in fn
return if_false(*args, **kwargs)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/_jit_internal.py", line 422, in fn
return if_false(*args, **kwargs)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/functional.py", line 821, in _return_output
output, _, _ = _unique_impl(input, sorted, return_inverse, return_counts, dim)
File "/home/lingteng/anaconda3/envs/banmo-cu113/lib/python3.9/site-packages/torch/functional.py", line 735, in _unique_impl
output, inverse_indices, counts = torch._unique2(
RuntimeError: std::bad_alloc
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 451799) of binary: /home/lingteng/anaconda3/envs/banmo-cu113/bin/python
from banmo.
The issue about vars_np['mesh_rest'], I find the reason is that I annotated following code to smooth training since above problem.
# rendered_seq, aux_seq = self.eval()
I find this code is very useful as it is able to update mesh['mesh_rest'].
I do not know if it is 3090 problem. no matter waht runing your code on demo video or my video, 'std::bad_alloc' happend. :(.
from banmo.
It was tested on 3090 so I suppose it's not a hardware issue. The error log was not very useful unfortunately. It's likely a pytorch3d issue. While I'm trying to reproduce it on a new machine, there are a few things to try.
- Install with
[B. torch1.7+cu110]
option. - or try moving verts and faces tensors to GPU by
.to(self.device)
before passing topytorch3d.structures.meshes.Meshes
at here
from banmo.
thanks for your suggestions.
[B. torch1.7+cu110] works well.
from banmo.
Hi, could u tell me the sm of your 3090? If your compute capbility is sm_86, does sm_86 compatible torhc1.7 & cuda11.0? I have a 3070S GPU, and the NVIDIA CUDA DOC said the cuda11.0 support =<sm_80. I'm so confused.
from banmo.
To use more recent architectures, you may need to replace these two lines with a compatible cuda version.
For reference I was using
cudatoolkit 11.6.0 hecad31d_10 conda-forge
cudatoolkit-dev 11.3.1 py39h3811e60_0 conda-forge
for 3090s.
Let me know if it does not work.
from banmo.
Indeed, you may directly use the cuda 11.3 option for installation here.
from banmo.
Related Issues (20)
- Could you provide a demo that can work with one-click HOT 1
- Running out of space when running AMA (Samba + Swing) HOT 2
- Questions about the code. HOT 2
- Mesh generated on AMA-swing and Eval code HOT 2
- About projecting 3D verteces to 2D images HOT 1
- Error when rendering AMA-swing dataset HOT 2
- unable to load materials from: ./wood.obj.mtl HOT 3
- nvs_iter.sh HOT 2
- Extracting root pose HOT 1
- Loading the ".npy" files such as "cat-pikachiu.npy" or "shiba-haru-1.npy" has been failed HOT 3
- Questions about output results HOT 8
- exporting 3D models with skinning HOT 5
- Can Banmo support torch 1.11+cu113? HOT 1
- BANMo VS. ViSER HOT 2
- Clarification of the Matching Loss HOT 3
- Ckpt Release HOT 1
- face_normals all zero,ignoring
- The problem of extracting masks for deformable dynamic target objects HOT 3
- Enhancing Mesh Quality and Texture in BANMo Extracted Models HOT 1
- Questions about PoseNet HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from banmo.