Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues #48

Open
kike-0304 opened this issue Sep 4, 2021 · 3 comments
Open

issues #48

kike-0304 opened this issue Sep 4, 2021 · 3 comments

Comments

@kike-0304
Copy link

Traceback (most recent call last):
File "train_net.py", line 66, in
args=(args,),
File "/home/cc631/anaconda3/envs/pytorch1.7/lib/python3.7/site-packages/detectron2/engine/launch.py", line 82, in launch
main_func(*args)
File "train_net.py", line 52, in main
trainer = Trainer(cfg)
File "/home/cc631/hailong/code/Dilated-FPN/centerX/engine/defaults.py", line 71, in init
super(DefaultTrainer, self).init(model, data_loader, optimizer)
TypeError: init() takes 1 positional argument but 4 were given

@oliverwxg
Copy link

这个问题解决了吗?是版本不对吗?

@TonyzBi
Copy link

TonyzBi commented Jul 21, 2022

I Got the the error, When I switched detectron2 to Version 0.2.1, It works.

@liujia761
Copy link

回溯(最近一次调用最后一次): 文件“train_net.py”,第 66 行,在 args=(args,) 中, 文件“/home/cc631/anaconda3/envs/pytorch1.7/lib/python3.7/site-packages /detectron2/engine/launch.py​​”,第 82 行,启动 main_func(*args) 文件“train_net.py”,第 52 行,主 训练器 = Trainer(cfg) 文件“/home/cc631/hailong/code/Dilated -FPN/centerX/engine/defaults.py”,第 71 行,在init super(DefaultTrainer, self) 中。init (model, data_loader, optimizationr) TypeError: init () 需要 1 个位置参数,但给出了 4 个

您好,请问我如何使用此代码来训练自己得模型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants