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

TypeError: __init__() got an unexpected keyword argument 'train_on_pred_boxes' #48

Open
RishiHazra opened this issue Aug 18, 2022 · 3 comments

Comments

@RishiHazra
Copy link

While running run_video_qa.py with tgif_qa_action. I'm unable to figure out if there is something wrong with the dataset or Detectron2. I've installed the latest version.

08/18/2022 22:46:34 - INFO - __main__ -   device: cuda:0 n_gpu: 1, rank: 0, 16-bits training: True
08/18/2022 22:46:34 - INFO - __main__ -   Setup model...
08/18/2022 22:46:34 - INFO - __main__ -   setup e2e model
Traceback (most recent call last):
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/tasks/run_video_qa.py", line 722, in <module>
    start_training(input_cfg)
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/tasks/run_video_qa.py", line 385, in start_training
    model = setup_model(cfg, device=device)
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/tasks/run_video_qa.py", line 193, in setup_model
    transformer_cls=transformer_model_cls)
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/modeling/e2e_model.py", line 25, in __init__
    config=config, input_format=input_format)
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/modeling/grid_feat.py", line 42, in __init__
    self.feature = build_model(self.detectron2_cfg)
  File "/home/rishihazra/detectron2/detectron2/modeling/meta_arch/build.py", line 22, in build_model
    model = META_ARCH_REGISTRY.get(meta_arch)(cfg)
  File "/home/rishihazra/detectron2/detectron2/config/config.py", line 189, in wrapped
    explicit_args = _get_args_from_config(from_config_func, *args, **kwargs)
  File "/home/rishihazra/detectron2/detectron2/config/config.py", line 245, in _get_args_from_config
    ret = from_config_func(*args, **kwargs)
  File "/home/rishihazra/detectron2/detectron2/modeling/meta_arch/rcnn.py", line 77, in from_config
    "roi_heads": build_roi_heads(cfg, backbone.output_shape()),
  File "/home/rishihazra/detectron2/detectron2/modeling/roi_heads/roi_heads.py", line 43, in build_roi_heads
    return ROI_HEADS_REGISTRY.get(name)(cfg, input_shape)
  File "/home/rishihazra/PycharmProjects/VisionLangaugeGrounding/baselines/ClipBERT/src/modeling/grid_feats/roi_heads.py", line 175, in __init__
    super(StandardROIHeads, self).__init__(cfg, input_shape)
  File "/home/rishihazra/detectron2/detectron2/config/config.py", line 190, in wrapped
    init_func(self, **explicit_args)
TypeError: __init__() got an unexpected keyword argument 'train_on_pred_boxes'

Process finished with exit code 1

@wonjiny
Copy link

wonjiny commented Jan 11, 2023

I have the exactly same issue. Did you solve it?

@sushilkhadkaanon
Copy link

Yeah same issue @RishiHazra @wonjiny Did you guys solve this?

@shaswati1
Copy link

Is there any solution for this issue?

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