GithubHelp home page GithubHelp logo

Comments (12)

ykim104 avatar ykim104 commented on June 19, 2024 1

yes i found out that I get error here seg_loss = self.seg_crit(output['seg'], mask)

thank you!

from clean-pvnet.

pengsida avatar pengsida commented on June 19, 2024

你字打错了 train.datset -> train.dataset

from clean-pvnet.

jinglan0829 avatar jinglan0829 commented on June 19, 2024

我直接复制粘贴了,不好意思呀,没仔细看

from clean-pvnet.

jinglan0829 avatar jinglan0829 commented on June 19, 2024

image 出来的结果不太对呀,自己数据集的train.json文件该如何获取呢?

from clean-pvnet.

pengsida avatar pengsida commented on June 19, 2024

第一个问题:#1
第二个问题:https://github.com/zju3dv/clean-pvnet#training-on-the-custom-object

from clean-pvnet.

ykim104 avatar ykim104 commented on June 19, 2024

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] Assertiont >= 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.

pengsida avatar pengsida commented on June 19, 2024

I will check this problem.

from clean-pvnet.

pengsida avatar pengsida commented on June 19, 2024

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.

pengsida avatar pengsida commented on June 19, 2024

The mask contains other values?

from clean-pvnet.

ykim104 avatar ykim104 commented on June 19, 2024

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.

ykim104 avatar ykim104 commented on June 19, 2024

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.

pengsida avatar pengsida commented on June 19, 2024

(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)

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.