Giter Site home page Giter Site logo

centerpoint_pc's People

Contributors

abhigoku10 avatar liyouzhou avatar muzi2045 avatar qihuacheng avatar tianweiy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

whuhxb

centerpoint_pc's Issues

TypeError: forward() got an unexpected keyword argument 'return_loss'.

Hi,
I am trying to run demo.py as mentioned in the Reamdme file with the nuscenes data and pretrained model: centerpoint_pillar_512_demo.
But while running the file, I am getting the below type Erorr.
Traceback (most recent call last):
File "tools/demo.py", line 131, in
main()
File "tools/demo.py", line 90, in main
model, data_batch, train_mode=False, local_rank=0,
File "/home/dreamvu/Gayathri/3D_Detections/CenterPoint/det3d/torchie/apis/train.py", line 114, in batch_processor
return model(example, return_loss=False)
File "/home/dreamvu/Desktop/PAL-Firmware-v3.0-HPD-NX/installations/dreamvu_ws/lib/python3.6/site-packages/torch/nn/modules/module.py", line 729, in _call_impl
result = self.forward(*input, **kwargs)
TypeError: forward() got an unexpected keyword argument 'return_loss'.

I see that all the function calls are proper and below are the function parameters and arguments sent:
train.py's batch_processor is calling model file: https://github.com/tianweiy/CenterPoint/blob/master/det3d/torchie/apis/train.py
def batch_processor(model, data, train_mode, **kwargs):
.........
return model(example, return_loss=False)

This triggers the below function block from file site-packages/torch/nn/modules/module.py:
def _call_impl(self, *input, **kwargs):
..........
result = self.forward(*input, **kwargs)

and forward function gets triggered: file: https://github.com/tianweiy/CenterPoint/blob/master/det3d/models/detectors/point_pillars.py
def forward(self, example, return_loss=True, **kwargs):

Not able to understand the reason for type error unexpected keyword return_loss. I cross-checked the spelling too, it is the same in all the calls and function parameters.
Did you face any such issue or am I checking in the right direction?

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.