We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
按您的步骤来,在运行单卡训练程序python3 train.py --config configs/faster_rcnn_voc.yml时遇到报错 :TypeError: resnet50() missing 1 required positional argument: 'epoch' 请问如何解决这个报错
具体如下: Use dataset: datasets/voc, split: train Load Anno... Step: [=========== 16551/16551 =====>] ETA: 0s 57m aeroplane: 1171 (2.92%) bicycle: 1064 (2.66%) bird: 1605 (4.01%) boat: 1140 (2.85%) bottle: 1764 (4.40%) bus: 822 (2.05%) car: 3267 (8.16%) cat: 1593 (3.98%) chair: 3152 (7.87%) cow: 847 (2.11%) diningtable: 824 (2.06%) dog: 2025 (5.06%) horse: 1072 (2.68%) motorbike: 1052 (2.63%) person: 13256 (33.09%) pottedplant: 1487 (3.71%) sheep: 1070 (2.67%) sofa: 814 (2.03%) train: 925 (2.31%) tvmonitor: 1108 (2.77%) Total bboxes: 40058 7165 difficult bboxes ignored. Use dataset: datasets/voc, split: test Load Anno... Step: [=========== 4952/4952 =======>] ETA: 0s 30m aeroplane: 285 (2.37%) bicycle: 337 (2.80%) bird: 459 (3.81%) boat: 263 (2.19%) bottle: 469 (3.90%) bus: 213 (1.77%) car: 1201 (9.98%) cat: 358 (2.98%) chair: 756 (6.28%) cow: 244 (2.03%) diningtable: 206 (1.71%) dog: 489 (4.06%) horse: 348 (2.89%) motorbike: 325 (2.70%) person: 4528 (37.63%) pottedplant: 480 (3.99%) sheep: 242 (2.01%) sofa: 239 (1.99%) train: 282 (2.34%) tvmonitor: 308 (2.56%) Total bboxes: 12032 2944 difficult bboxes ignored. [INFO] 2022-10-01 14:51:59 ==================Configs================== [INFO] 2022-10-01 14:51:59 MODEL: [INFO] 2022-10-01 14:51:59 NAME: Faster_RCNN [INFO] 2022-10-01 14:51:59 BACKBONE: resnet50 [INFO] 2022-10-01 14:51:59 [INFO] 2022-10-01 14:51:59 DATA: [INFO] 2022-10-01 14:51:59 DATASET: voc [INFO] 2022-10-01 14:51:59 TRANSFORM: frcnn [INFO] 2022-10-01 14:51:59 SCALE: [800, 1333] [INFO] 2022-10-01 14:51:59 OPTIMIZE: [INFO] 2022-10-01 14:51:59 OPTIMIZER: sgd [INFO] 2022-10-01 14:51:59 BASE_LR: 0.001 [INFO] 2022-10-01 14:51:59 SCHEDULER: 1x [INFO] 2022-10-01 14:51:59 BATCH_SIZE: 2 [INFO] 2022-10-01 14:51:59 TEST: [INFO] 2022-10-01 14:51:59 NMS_THRESH : 0.5 [INFO] 2022-10-01 14:51:59 CONF_THRESH: 0.05 [INFO] 2022-10-01 14:51:59 MISC: [INFO] 2022-10-01 14:51:59 VAL_FREQ: 1 [INFO] 2022-10-01 14:51:59 SAVE_FREQ: 1 [INFO] 2022-10-01 14:51:59 NUM_WORKERS: 0 [INFO] 2022-10-01 14:51:59 ==================Options================== [INFO] 2022-10-01 14:51:59 config=configs/faster_rcnn_voc.yml [INFO] 2022-10-01 14:51:59 debug=False [INFO] 2022-10-01 14:51:59 device=cuda:0 [INFO] 2022-10-01 14:51:59 epochs=500 [INFO] 2022-10-01 14:51:59 gpu_id=0 [INFO] 2022-10-01 14:51:59 load=None [INFO] 2022-10-01 14:51:59 local_rank=None [INFO] 2022-10-01 14:51:59 no_val=False [INFO] 2022-10-01 14:51:59 resume=False [INFO] 2022-10-01 14:51:59 save_path=None [INFO] 2022-10-01 14:51:59 tag=faster_rcnn_voc [INFO] 2022-10-01 14:51:59 vis=False [INFO] 2022-10-01 14:51:59 =========================================== Traceback (most recent call last): File "train.py", line 65, in model = Model(config) File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/Model.py", line 61, in init self.detector = fasterrcnn_resnet50_fpn(pretrained=False, **kargs) File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/frcnn/faster_rcnn.py", line 335, in fasterrcnn_resnet50_fpn backbone = resnet_fpn_backbone('resnet50', pretrained_backbone, norm_layer=norm_layer) File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/frcnn/backbone_utils.py", line 47, in resnet_fpn_backbone norm_layer=torch.nn.SyncBatchNorm) TypeError: resnet50() missing 1 required positional argument: 'epoch'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
按您的步骤来,在运行单卡训练程序python3 train.py --config configs/faster_rcnn_voc.yml时遇到报错
:TypeError: resnet50() missing 1 required positional argument: 'epoch'
请问如何解决这个报错
具体如下:
Use dataset: datasets/voc, split: train
Load Anno... Step: [=========== 16551/16551 =====>] ETA: 0s 57m
aeroplane: 1171 (2.92%)
bicycle: 1064 (2.66%)
bird: 1605 (4.01%)
boat: 1140 (2.85%)
bottle: 1764 (4.40%)
bus: 822 (2.05%)
car: 3267 (8.16%)
cat: 1593 (3.98%)
chair: 3152 (7.87%)
cow: 847 (2.11%)
diningtable: 824 (2.06%)
dog: 2025 (5.06%)
horse: 1072 (2.68%)
motorbike: 1052 (2.63%)
person: 13256 (33.09%)
pottedplant: 1487 (3.71%)
sheep: 1070 (2.67%)
sofa: 814 (2.03%)
train: 925 (2.31%)
tvmonitor: 1108 (2.77%)
Total bboxes: 40058
7165 difficult bboxes ignored.
Use dataset: datasets/voc, split: test
Load Anno... Step: [=========== 4952/4952 =======>] ETA: 0s 30m
aeroplane: 285 (2.37%)
bicycle: 337 (2.80%)
bird: 459 (3.81%)
boat: 263 (2.19%)
bottle: 469 (3.90%)
bus: 213 (1.77%)
car: 1201 (9.98%)
cat: 358 (2.98%)
chair: 756 (6.28%)
cow: 244 (2.03%)
diningtable: 206 (1.71%)
dog: 489 (4.06%)
horse: 348 (2.89%)
motorbike: 325 (2.70%)
person: 4528 (37.63%)
pottedplant: 480 (3.99%)
sheep: 242 (2.01%)
sofa: 239 (1.99%)
train: 282 (2.34%)
tvmonitor: 308 (2.56%)
Total bboxes: 12032
2944 difficult bboxes ignored.
[INFO] 2022-10-01 14:51:59 ==================Configs==================
[INFO] 2022-10-01 14:51:59 MODEL:
[INFO] 2022-10-01 14:51:59 NAME: Faster_RCNN
[INFO] 2022-10-01 14:51:59 BACKBONE: resnet50
[INFO] 2022-10-01 14:51:59
[INFO] 2022-10-01 14:51:59 DATA:
[INFO] 2022-10-01 14:51:59 DATASET: voc
[INFO] 2022-10-01 14:51:59 TRANSFORM: frcnn
[INFO] 2022-10-01 14:51:59 SCALE: [800, 1333]
[INFO] 2022-10-01 14:51:59 OPTIMIZE:
[INFO] 2022-10-01 14:51:59 OPTIMIZER: sgd
[INFO] 2022-10-01 14:51:59 BASE_LR: 0.001
[INFO] 2022-10-01 14:51:59 SCHEDULER: 1x
[INFO] 2022-10-01 14:51:59 BATCH_SIZE: 2
[INFO] 2022-10-01 14:51:59 TEST:
[INFO] 2022-10-01 14:51:59 NMS_THRESH : 0.5
[INFO] 2022-10-01 14:51:59 CONF_THRESH: 0.05
[INFO] 2022-10-01 14:51:59 MISC:
[INFO] 2022-10-01 14:51:59 VAL_FREQ: 1
[INFO] 2022-10-01 14:51:59 SAVE_FREQ: 1
[INFO] 2022-10-01 14:51:59 NUM_WORKERS: 0
[INFO] 2022-10-01 14:51:59 ==================Options==================
[INFO] 2022-10-01 14:51:59 config=configs/faster_rcnn_voc.yml
[INFO] 2022-10-01 14:51:59 debug=False
[INFO] 2022-10-01 14:51:59 device=cuda:0
[INFO] 2022-10-01 14:51:59 epochs=500
[INFO] 2022-10-01 14:51:59 gpu_id=0
[INFO] 2022-10-01 14:51:59 load=None
[INFO] 2022-10-01 14:51:59 local_rank=None
[INFO] 2022-10-01 14:51:59 no_val=False
[INFO] 2022-10-01 14:51:59 resume=False
[INFO] 2022-10-01 14:51:59 save_path=None
[INFO] 2022-10-01 14:51:59 tag=faster_rcnn_voc
[INFO] 2022-10-01 14:51:59 vis=False
[INFO] 2022-10-01 14:51:59 ===========================================
Traceback (most recent call last):
File "train.py", line 65, in
model = Model(config)
File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/Model.py", line 61, in init
self.detector = fasterrcnn_resnet50_fpn(pretrained=False, **kargs)
File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/frcnn/faster_rcnn.py", line 335, in fasterrcnn_resnet50_fpn
backbone = resnet_fpn_backbone('resnet50', pretrained_backbone, norm_layer=norm_layer)
File "/media/omnisky/c387317d-6f40-4cef-9f5b-e9477942c7c61/fattyhu/catkin_ws/src/easy_detection-master/network/Faster_RCNN/frcnn/backbone_utils.py", line 47, in resnet_fpn_backbone
norm_layer=torch.nn.SyncBatchNorm)
TypeError: resnet50() missing 1 required positional argument: 'epoch'
The text was updated successfully, but these errors were encountered: