Git Product home page Git Product logo

Comments (2)

flomok avatar flomok commented on June 2, 2024

hello,I haven't changed your code,but there is a problem:
" File "E:/python_console/pose_2/Poseur-main1/tools/train.py", line 202, in
main()
File "E:/python_console/pose_2/Poseur-main1/tools/train.py", line 198, in main
meta=meta)
File "E:\python_console\pose_2\Poseur-main\mmpose\apis\train.py", line 212, in train_model
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "E:\ana\envs\ptorch\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 136, in run
epoch_runner(data_loaders[i], **kwargs)
File "E:\ana\envs\ptorch\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 53, in train
self.run_iter(data_batch, train_mode=True, **kwargs)
File "E:\ana\envs\ptorch\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 32, in run_iter
**kwargs)
File "E:\ana\envs\ptorch\lib\site-packages\mmcv\parallel\data_parallel.py", line 77, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "E:\python_console\pose_2\Poseur-main\mmpose\models\detectors\base.py", line 95, in train_step
losses = self.forward(**data_batch)
File "E:\ana\envs\ptorch\lib\site-packages\mmcv\runner\fp16_utils.py", line 146, in new_func
output = old_func(*new_args, **new_kwargs)
File "E:\python_console\pose_2\Poseur-main\mmpose\models\detectors\poseur.py", line 92, in forward
**kwargs)
File "E:\python_console\pose_2\Poseur-main\mmpose\models\detectors\poseur.py", line 115, in forward_train
output = self.keypoint_head(output, img_metas)
File "E:\ana\envs\ptorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given"
what is the keypoint_head's input?

from poseur.

YongtaoGe avatar YongtaoGe commented on June 2, 2024

Hi, @flomok, the input of keypoint head is the multi-level features from the neck. You can pull the code from the main branch and try it again. We have fixed the problem.

from poseur.

Related Issues (17)

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.