tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

TypeError: forward() missing 1 required positional argument: 'img_meta

Open chaobeiying opened this issue 4 years ago • 9 comments

There is an error when executing the function torch.onnx.export()

chaobeiying avatar Apr 22 '20 10:04 chaobeiying

Hi @chaobeiying, this is might happen because your model required 1 more input. I hope this will helps.

Akshaysharma29 avatar May 28 '20 05:05 Akshaysharma29

@chaobeiying I am getting same error while converting SlowFast model to onnx. did you get any solution for this?

arvindchandel avatar Apr 01 '21 08:04 arvindchandel

Hi @chaobeiying , @Akshaysharma29 , @arvindchandel , I was facing the same error. Did you guys figure out how to resolve this error? It would be much appreciable if you let me know. Thank you.

NikhilChowdary-MCW avatar Jun 21 '21 02:06 NikhilChowdary-MCW

I got the same error

schliffen avatar Aug 09 '21 14:08 schliffen

Does anybody figure it out?

wenchima avatar Nov 18 '21 23:11 wenchima

same issue when I convert MMdetection Maskrcnn TypeError: forward() missing 1 required positional argument: 'img_metas'

azuryl avatar Feb 23 '22 21:02 azuryl

Do you figure it out? I have the same issue when use MMdetection.

Young979 avatar May 07 '23 07:05 Young979