Closed Karkers closed 1 year ago
FREEZE_LAYERS
), 所以直接端到端训练的话, 第一阶段的参数是随机初始化的, 训练的过程中不会调整, AP=0似乎也比较合理. 正确的做法是先训练第一阶段, 再训练第二阶段, 可以参考scripts/dist_ts_train.sh
. 对于graph-voi的话, image branch是不训练的, 所以也是提前加载预训练过的centernet参数(提供的ckpt里有对应的image branch的参数).感谢,关于其他类别报错,我先尝试一下second_mini不同类别的训练。
Hi, I want to ask if the pretrained model second_mini is trained 77 epoch., And what epoch the graph_rcnn_vo train?
我添加了剩余的两个类别,并且添加了anchor,second mini无法运行,显示以下错误。(这个anchor我是从gdmae的模型里复制过来的)
Traceback (most recent call last): | 0/928 [00:00<?, ?it/s] File "train.py", line 205, in main() File "train.py", line 174, in main merge_all_iters_to_one_epoch=args.merge_all_iters_to_one_epoch File "/home/karker/PROJ/GD-MAE/tools/train_utils/train_utils.py", line 120, in train_model dataloader_iter=dataloader_iter File "/home/karker/PROJ/GD-MAE/tools/train_utils/train_utils.py", line 46, in train_one_epoch loss, tb_dict, disp_dict = model_func(model, batch, global_step=accumulated_iter) File "../pcdet/models/init.py", line 31, in model_func ret_dict, tb_dict, disp_dict = model(batch_dict) File "/home/karker/anaconda3/envs/gd-mae/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, kwargs) File "/home/karker/anaconda3/envs/gd-mae/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 886, in forward output = self.module(*inputs[0], *kwargs[0]) File "/home/karker/anaconda3/envs/gd-mae/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(input, kwargs) File "../pcdet/models/detectors/second_net.py", line 14, in forward loss, tb_dict, disp_dict = self.get_training_loss() File "../pcdet/models/detectors/second_net.py", line 27, in get_training_loss loss_rpn, tb_dict = self.dense_head.get_loss() File "../pcdet/models/dense_heads/anchor_head_template.py", line 217, in get_loss cls_loss, tb_dict = self.get_cls_layer_loss(tb_dict) File "../pcdet/models/dense_heads/anchor_head_template.py", line 123, in get_cls_layer_loss cls_loss_src = self.cls_loss_func(cls_preds, one_hot_targets, weights=cls_weights) # [N, M] File "/home/karker/anaconda3/envs/gd-mae/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, *kwargs) File "../pcdet/utils/loss_utils.py", line 60, in forward pt = target (1.0 - pred_sigmoid) + (1.0 - target) * pred_sigmoid RuntimeError: The size of tensor a (13516800) must match the size of tensor b (211200) at non-singleton dimension 1
对于graph-voi的话, image branch是不训练的, 所以也是提前加载预训练过的centernet参数(提供的ckpt里有对应的image branch的参数)。您好,我想问一下这句话说graph-voi提前加载预训练过的centernet参数,请问如何提前加载预训练过的centernet参数?提供的ckpt指的是哪一个?
哥,能不能把centernet的预训练模型发啊给我一份,这对我非常重要,实在没办法了
哥,能不能把centernet的预训练模型发啊给我一份,这对我非常重要,实在没办法了
我在训练voi的时候用的就是作者提供的模型
哥,能不能把centernet的预训练模型发啊给我一份,这对我非常重要,实在没办法了
https://drive.google.com/uc?id=173eCABB3Hw261q50v5maTP4zOQJ0qfTd&export=download
我有以下几个问题(因为我接触深度学习不久,所以问题有点多。感谢dalao的指导)
CLASS_NAMES: ['Car', 'Pedestrian', 'Cyclist']
DATA_CONFIG: _BASECONFIG: cfgs/dataset_configs/kitti_dataset.yaml DATA_PROCESSOR:
NAME: mask_points_and_boxes_outside_range REMOVE_OUTSIDE_BOXES: True
NAME: shuffle_points SHUFFLE_ENABLED: { 'train': True, 'test': False }
NAME: calculate_grid_size VOXEL_SIZE: [0.05, 0.05, 0.1]
MODEL: NAME: SECONDNet
OPTIMIZATION: BATCH_SIZE_PER_GPU: 4 NUM_EPOCHS: 80