microsoft / scene_graph_benchmark

image scene graph generation benchmark
MIT License
382 stars 86 forks source link

TypeError: run_test() got an unexpected keyword argument'model_name #47

Open tao123322 opened 2 years ago

tao123322 commented 2 years ago

What is the reason for the TypeError: run_test() got an unexpected keyword argument'model_name' error during single GPU training?

fun1024 commented 2 years ago

hi,I have got the same problem,do you fix it?

fun1024 commented 2 years ago

What is the reason for the TypeError: run_test() got an unexpected keyword argument'model_name' error during single GPU training?

hi,I have got the same problem,do you fix it?

tao123322 commented 2 years ago

Sorry i didn't solve it.

------------------ 原始邮件 ------------------ 发件人: "microsoft/scene_graph_benchmark" @.>; 发送时间: 2021年10月28日(星期四) 下午4:40 @.>; @.**@.>; 主题: Re: [microsoft/scene_graph_benchmark] TypeError: run_test() got an unexpected keyword argument'model_name (#47)

hi,I have got the same problem,do you fix it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Rh-Dang commented 2 years ago

What is the reason for the TypeError: run_test() got an unexpected keyword argument'model_name' error during single GPU training? I find a new run_test() in train_sg_net.py , you can delete the run_test() in train_sg_net.py

DavidHuji commented 2 years ago

Repeating the line "from tools.test_sg_net import run_test" in the same scope solved the problem. There is method-shadowing here (in C++ it was ok but not in Python) because the same function name is in use in the file while it is also imported from another file, thus you should explicitly specify which function you aim to call.