Comments (10)
My setup is to use pointnet coding, RGL-net as model, task assembly of type geometric and artifact as dataset.
from multi_part_assembly.
Can you put your config file here, so that I can run it to check what's wrong?
EDIT: or can you provide more information? E.g. the full error message indicating which line is wrong.
from multi_part_assembly.
I meet the same question, here's my full error message
Traceback (most recent call last):
File "scripts/vis.py", line 134, in
visualize(cfg)
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "scripts/vis.py", line 36, in visualize
out_dict = model(batch) # trans/rot: [B, P, 3/4/(3, 3)]
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/data_parallel.py", line 169, in forward
return self.gather(outputs, self.output_device)
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/data_parallel.py", line 181, in gather
return gather(outputs, output_device, dim=self.dim)
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py", line 78, in gather
res = gather_map(outputs)
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py", line 69, in gather_map
return type(out)((k, gather_map([d[k] for d in outputs]))
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py", line 69, in
return type(out)((k, gather_map([d[k] for d in outputs]))
File "/home/vipuser/miniconda3/envs/PA_tcr/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py", line 73, in gather_map
return type(out)(map(gather_map, zip(*outputs)))
File "/home/vipuser/multi_part_assembly/multi_part_assembly/utils/rotation.py", line 119, in init
self._check_valid()
File "/home/vipuser/multi_part_assembly/multi_part_assembly/utils/rotation.py", line 139, in _check_valid
assert isinstance(self._rot, torch.Tensor), 'rotation must be a tensor'
AssertionError: rotation must be a tensor
from multi_part_assembly.
Thanks for the info. Which model are you testing? Is this problem associated with one model or all of them?
from multi_part_assembly.
I trained dgl and LSTM following your usage.md and try to vis their results, but both model met this problem.
from multi_part_assembly.
That's weird. I try the vis.py
but I can pass that line (and trigger a bug in the line after loss_dict, _ = model.module._calc_loss(out_dict, batch)
) Have you pull the newest code from master
branch? Or are you using dev
branch?
from multi_part_assembly.
yeah,I pulled the newest code from master branch just yesterday. And it goes well when I run train.py and test.py
from multi_part_assembly.
okay! I already fixed this bug by cancel the DataParallel wrpper. I know this may decrease efficienfy, but it's enough for me. Thank for your prompt reply.
Here is my changed vis.py
from multi_part_assembly.
Ah, I think I understand where the problem is. Yes, the current code won't work with multi-gpu. I'll fix it. Thanks for providing insights here!
from multi_part_assembly.
Fixed in the latest commit
from multi_part_assembly.
Related Issues (11)
- Pretrained models to reproduce paper's results HOT 4
- May I suggest a more general library for saving point clouds, other than open3d? HOT 4
- Install problem HOT 7
- The 'info file' for splitting train/val list in trivial training HOT 2
- Some clarification questions HOT 22
- Including a new loss in the computation graph HOT 6
- Pretrained models HOT 23
- A bug in line 264 of base_model.py HOT 1
- Unbroken models HOT 6
- Experimental settings 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 multi_part_assembly.