GithubHelp home page GithubHelp logo

KeyError: 'mask' about clean-pvnet HOT 9 CLOSED

zju3dv avatar zju3dv commented on August 18, 2024
KeyError: 'mask'

from clean-pvnet.

Comments (9)

pengsida avatar pengsida commented on August 18, 2024 1

I have fixed the bug.
You could directly test the evaluation code using python train_net.py --test --cfg_file configs/tless/tless_01.yaml.

from clean-pvnet.

pengsida avatar pengsida commented on August 18, 2024

What is your command?
I can train the network with python train_net.py --cfg_file configs/tless/tless_01.yaml model tmp.

from clean-pvnet.

firstdeep avatar firstdeep commented on August 18, 2024

What is your command?
I can train the network with python train_net.py --cfg_file configs/tless/tless_01.yaml model tmp.

I have the same issue.

My command is = python train_net.py --cfg_file configs/tless/tless_01.yaml model tless_models/tless_01 eval_ep 1

There seems to be a problem with reading data in the area of evaluation.
https://github.com/zju3dv/clean-pvnet/blob/master/train_net.py#L35

from clean-pvnet.

pengsida avatar pengsida commented on August 18, 2024

I fixed the bug.

from clean-pvnet.

firstdeep avatar firstdeep commented on August 18, 2024

@pengsida

Thanks for fix the bug.

I have a question.
The test data of tless consists of 504 images. (test_primesense = 06)
But I wonder why there are 1,008 images that are actually loaded.

image

Thanks for reply

from clean-pvnet.

pengsida avatar pengsida commented on August 18, 2024

I evaluate every objects on the whole dataset.
1,008 is the number of images containing a specific object in the dataset.

from clean-pvnet.

Ji-Hu avatar Ji-Hu commented on August 18, 2024

@pengsida

Thank you for sharing your great achievements.

I'd like to ask you a few questions.

#1.
https://github.com/zju3dv/clean-pvnet/blob/master/lib/evaluators/tless_test/pvnet.py#L43
In case of ADD, I think it will be judged that it is correct if it is within 10% of the diameter. Why is there a reason to divide the diameter by 1000?

I also want to ask about the difference between adi_metrix and add_metrix.

#2.
I wonder if there is a reason for the evaluation of the input image by cropping only the test_object part (input size = 256 * 256)

I think we should put the original test image(image size = 540 * 720 / Not cropping) in the input.

from clean-pvnet.

pengsida avatar pengsida commented on August 18, 2024
  1. The unit of the object diameter is mm.
  2. adi is a variant of add for symmetric objects.
  3. To handle multiple instances.

from clean-pvnet.

kashyap92 avatar kashyap92 commented on August 18, 2024

Hello @pengsida ,
Thank you for your response. 'KeyError: 'mask' is now resolved'.
However, after 4 epoch i am facing new error now.

My training command is : python train_net.py --cfg_file configs/tless/tless_01.yaml

Error:
Traceback (most recent call last):
File "train_net.py", line 57, in
main()
File "train_net.py", line 53, in main
train(cfg, network)
File "train_net.py", line 35, in train
trainer.val(epoch, val_loader, evaluator, recorder)
File "/datasets/Mahesh_kashyap/PoseEst/pvnet-clean/clean-pvnet/lib/train/trainers/trainer.py", line 82, in val
output, loss, loss_stats, image_stats = self.network(batch)
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, kwargs)
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 153, in forward
return self.gather(outputs, self.output_device)
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 165, in gather
return gather(outputs, output_device, dim=self.dim)
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 67, in gather
return gather_map(outputs)
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 62, in gather_map
return type(out)(map(gather_map, zip(outputs)))
File "/home/belakavadi/anaconda3/envs/pvnet/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 62, in gather_map
return type(out)(map(gather_map, zip(outputs)))
TypeError: zip argument #1 must support iteration

Could you please help me resolved this?

Regards,
Mahesh kashyap.

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.