Comments (12)
yes i found out that I get error here seg_loss = self.seg_crit(output['seg'], mask)
thank you!
from clean-pvnet.
你字打错了 train.datset
-> train.dataset
from clean-pvnet.
我直接复制粘贴了,不好意思呀,没仔细看
from clean-pvnet.
出来的结果不太对呀,自己数据集的train.json文件该如何获取呢?
from clean-pvnet.
第一个问题:#1
第二个问题:https://github.com/zju3dv/clean-pvnet#training-on-the-custom-object
from clean-pvnet.
I get this error when using custom dataset :(
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:103: void cunn_SpatialClassNLLCriterion_updateOutput_kernel(T *, T *, T *, long *, T *, int, int, int, int, int, long) [with T = float, AccumT = float]: block: [0,0,0], thread: [677,0,0] Assertion
t >= 0 && t < n_classesfailed.
This happens when I call the dataloader - it might be that the computed annotations are outside [0,1) boundary? Potentially during interpolation?
It doesn't happen all the time for every image, but often enough.
I could't locate where you compute vector field annotation - can you give me a hint?
Thank you in advance and thank you for publishing this repo!
from clean-pvnet.
I will check this problem.
from clean-pvnet.
Vector field: https://github.com/zju3dv/clean-pvnet/blob/master/lib/datasets/linemod/pvnet.py#L53
This problem is probably caused by segmentation.
from clean-pvnet.
The mask contains other values?
from clean-pvnet.
Yess!! I had 255 instead 1's in my mask!
I also used ObjectDatasetTool but my masks were 2D
so I edited read_linemod_mask() in pvnet_data_utils.py :D
Thank you for your help!!!
if ann_type == 'real': try: return (np.asarray(Image.open(path))[:, :, 0] != 0).astype(np.uint8) # custom/custom mask return 3d matrix except: return (np.asarray(Image.open(path))).astype(np.uint8)/255.
from clean-pvnet.
It works now!!! Thank you!
By the way, I also made few edits so I can have multiple object dataset inside custom folder. :D
from clean-pvnet.
(np.asarray(Image.open(path)) != 0).astype(np.uint8)
is a more safe way, since the background value is zero in most cases.
You could additionally define a custom dataloader for your dataset according to https://github.com/zju3dv/clean-pvnet/blob/master/project_structure.md
I feel happy if this project facilitates your work!
from clean-pvnet.
Related Issues (20)
- add metric 和 2D projections metric总是为0 HOT 2
- Custom dataset training HOT 5
- 自制数据集划分
- ransac_voting_layer_v3 generate wrong keypoints even using the ground truth vertex field
- Export onnx error HOT 1
- How to feed the BlenderProc produced synthetic data to Clean-PVnet for training?
- How did you convert the original LINEMOD dataset to the format that has posexyz.npy files?
- 如何在BN层进行剪枝
- 5cm 5 degree metric becomes zero for custom data training HOT 1
- inference on a single test image for a model trained with custom dataset
- Need urgent help | Trying to run inference on T-LESS dataset
- Error :The metric value is always zero in Command line:Test or Demo HOT 2
- How to solve this problem? I use colab to reproduce it.
- 为什么docker创建环境失败
- 数据集划分的问题
- Realtime pose estimation? HOT 1
- Incorrect bounding box HOT 1
- Runtime tensor error despite Image resolution multiple of 32
- Uncertainty Pose Estimation
- pvnet实时位姿估计
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 clean-pvnet.