facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.05k stars 7.42k forks source link

the problem of runing the BlendMask ? #2374

Closed gong-lei closed 3 years ago

gong-lei commented 3 years ago

[12/11 11:43:01 d2.data.build]: Using training sampler TrainingSampler [12/11 11:43:01 d2.data.common]: Serializing 117266 elements to byte tensors and concatenating them all ... [12/11 11:43:05 d2.data.common]: Serialized dataset takes 451.21 MiB Traceback (most recent call last): File "tools/train_net.py", line 246, in args=(args,), File "/home/zgm/cocoapi/PythonAPI/detectron2/detectron2/engine/launch.py", line 62, in launch main_func(*args) File "tools/train_net.py", line 227, in main trainer = Trainer(cfg) ## lu's modify File "tools/train_net.py", line 72, in init super(DefaultTrainer, self).init(model, data_loader, optimizer) TypeError: init() takes 1 positional argument but 4 were given all the requirements i meet as same as the readme.txt,, but why i happen the problem and what i should do? thanks

ppwwyyxx commented 3 years ago

BlendMask is not provided by this repo. Please ask in the right repo. AdelaiDet says it requires a specific version of detectron2: https://github.com/aim-uofa/AdelaiDet#installation