Comments (6)
Hi @shshwdr ,
Yes I didn't include this functionality, I probably should have.
Currently, the ground-truth seg files are used to calculate the test accuracy. So, I think the easiest hack to just get the code to work is to create some dummy seg files which are all zeros or something -- (just ignore the printed accuracy), and everything should run fine. Please check the segmentation wiki for more info on these files.
-Rana
from meshcnn.
I added two all zerod files in seg and sseg, then I got this error when I run test. my model has 30144 edges.:
Running Test
loaded mean / std from cache
loading the model from ./checkpoints\human_seg\latest_net.pth
Traceback (most recent call last):
File "test.py", line 25, in
run_test()
File "test.py", line 16, in run_test
for i, data in enumerate(dataset):
File "C:\Users\si.chen\Desktop\MeshCNN-master\data_init_.py", line 33, in iter
for i, data in enumerate(self.dataloader):
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\utils\data\dataloader.py", line 582, in next
return self._process_next_batch(batch)
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\utils\data\dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
ValueError: Traceback (most recent call last):
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\utils\data_utils\worker.py", line 99, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\utils\data_utils\worker.py", line 99, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "C:\Users\si.chen\Desktop\MeshCNN-master\data\segmentation_data.py", line 33, in getitem
label = pad(label, self.opt.ninput_edges, val=-1, dim=0)
File "C:\Users\si.chen\Desktop\MeshCNN-master\util\util.py", line 22, in pad
return np.pad(input_arr, pad_width=npad, mode='constant', constant_values=val)
File "<array_function internals>", line 6, in pad
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\lib\arraypad.py", line 793, in pad
pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
File "C:\Users\si.chen\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\lib\arraypad.py", line 560, in _as_pairs
raise ValueError("index can't contain negative values")
ValueError: index can't contain negative values
from meshcnn.
I tried to find a object with 2259 edges and set the ninput_edges to 2259, pool_res to 1800 1350 600
and get the result.
But the result is quite not as I expected since it segment in weird position. Is the settings I put in correct? should I add both seg and sseg file? is there anything I can do to improve it? or it's just I need to train more human models? thanks.
from meshcnn.
I tried to find a object with 2259 edges and set the ninput_edges to 2259, pool_res to 1800 1350 600
and get the result.
But the result is quite not as I expected since it segment in weird position. Is the settings I put in correct? should I add both seg and sseg file? is there anything I can do to improve it? or it's just I need to train more human models? thanks.
Hi @shshwdr,
I'm doing the similar thing. However, I'm not able to segment my objs. The results is always the human segmentation even if I change the obj file(without touching seg files). Do you mind teaching me how to do your own segmentation?
from meshcnn.
I tried to find a object with 2259 edges and set the ninput_edges to 2259, pool_res to 1800 1350 600
and get the result.
But the result is quite not as I expected since it segment in weird position. Is the settings I put in correct? should I add both seg and sseg file? is there anything I can do to improve it? or it's just I need to train more human models? thanks.
If you are using my pre-trained network, then you should not change ninput_edges
parameter, then it will not work. Please use the default for segmentation (for humans it is --ninput_edges 2280
) and re-run. The test requires both seg and sseg (unless you want to modify the accuracy computation). I think you can just comment out this line and then maybe you won't need the seg / sseg files anymore
from meshcnn.
Hi @shshwdr
were you able to perform a test without field truth segmentation files?
from meshcnn.
Related Issues (20)
- AssertionError
- What is the relationship between your meshes and original coseg meshes?
- Segmentation of objects with different characteristic
- assert no zero face area
- Does the class "Mesh" have an attribute about face?
- Undestanding .eseg file
- Proper TensorBoard Usage
- How to prepare data for a custom dataset?
- cannot install pytorch=1.2.0 HOT 2
- How to save a segmented (colored) mesh in .obj format?
- IndexError: index out of range
- Using my own obj files for training
- The problem when I run meshcnn classification HOT 1
- Problems with date preprocessing.
- help in figuring out how human_seg dataset was created
- Cannot load pre-trained weights
- Request for further documentation of code options on the meshcnn wiki for the Classification task
- Numpy error? HOT 2
- A small spelling mistake in the paper
- setting an array element with a sequence
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 meshcnn.