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

这种是运行成功了么,楼主 #21

Open
Songchuanlang opened this issue Aug 30, 2023 · 0 comments
Open

这种是运行成功了么,楼主 #21

Songchuanlang opened this issue Aug 30, 2023 · 0 comments

Comments

@Songchuanlang
Copy link

(base) root@autodl-container-b2e2118052-826a86c4:~/retinanet-pytorch-master# python train.py
Load weights model_data/retinanet_resnet50.pth.

Successful Load Key: ['backbone_net.model.conv1.weight', 'backbone_net.model.bn1.weight', 'backbone_net.model.bn1.bias', 'backbone_net.model.bn1.running_mean', 'backbone_net.model.bn1.running_var', 'backbone_net.model.bn1.num_batches_tracked', 'backbone_net.model.layer1.0.conv1.weight', 'backbone_net.model.layer1.0.bn1.weight', 'backbone_net.model.layer1.0.bn1.bias', 'backbone_net.model.layer1.0.bn1.running_mean', 'backbone_net.model.layer1.0.bn1.running_var', 'backbone_net.model.layer1.0.bn1.num_batches_tracked', ' ……
Successful Load Key Num: 354

Fail To Load Key: [] ……
Fail To Load Key num: 0

但是有一次我运行之后,迭代五次就爆了错误
Get map.
0%| | 0/4952 [00:03<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 515, in
epoch_step, epoch_step_val, gen, gen_val, UnFreeze_Epoch, Cuda, fp16, scaler, save_period, save_dir, local_rank)
File "/root/retinanet-pytorch-master/utils/utils_fit.py", line 105, in fit_one_epoch
eval_callback.on_epoch_end(epoch + 1, model_train)
File "/root/retinanet-pytorch-master/utils/callbacks.py", line 196, in on_epoch_end
self.get_map_txt(image_id, image, self.class_names, self.map_out_path)
File "/root/retinanet-pytorch-master/utils/callbacks.py", line 143, in get_map_txt
results = non_max_suppression(torch.cat([outputs, classification], axis=-1), self.input_shape,
TypeError: cat() got an unexpected keyword argument 'axis'

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

1 participant