hirotomusiker / CLRerNet

The official implementation of "CLRerNet: Improving Confidence of Lane Detection with LaneIoU"
Apache License 2.0
181 stars 19 forks source link

TypeError: CLRerNet: __init__() missing 4 required positional arguments: 'code', 'msg', 'hdrs', and 'fp' #43

Closed PangWeiye closed 1 month ago

PangWeiye commented 4 months ago

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Python\CLRerNet-main\image_demo.py", line 36, in main(args) File "D:\Python\CLRerNet-main\image_demo.py", line 27, in main model = init_detector(args.config, args.checkpoint, device=args.device) File "C:\Annaconda\envs\SAM\lib\site-packages\mmdet\apis\inference.py", line 44, in init_detector model = build_detector(config.model, test_cfg=config.get('test_cfg')) File "C:\Annaconda\envs\SAM\lib\site-packages\mmdet\models\builder.py", line 58, in build_detector return DETECTORS.build( File "C:\Annaconda\envs\SAM\lib\site-packages\mmcv\utils\registry.py", line 212, in build return self.build_func(*args, **kwargs, registry=self) File "C:\Annaconda\envs\SAM\lib\site-packages\mmcv\cnn\builder.py", line 27, in build_model_from_cfg return build_from_cfg(cfg, registry, default_args) File "C:\Annaconda\envs\SAM\lib\site-packages\mmcv\utils\registry.py", line 55, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') TypeError: CLRerNet: init() missing 4 required positional arguments: 'code', 'msg', 'hdrs', and 'fp'

Process finished with exit code 1

Alexbeast-CN commented 2 months ago

The reason for causing this error is becuase the websit for download dla34-ba72cf86.pth is down.

So, manually download dla34 form: this site, and move it to /home/docker/.cache/torch/hub/checkpoints/dla34-ba72cf86.pth will work.

hirotomusiker commented 2 months ago

Thank you! We will look at it and change the download url if necessary.

hirotomusiker commented 1 month ago

As for Oct.16 2024, the model is downloadable from the default url. So we leave it as it is. Please report again if this issue occurs again.