train_pretrain遇到问题
@deepcs233
你好,我在一台GPU上运行train.sh之后,
1、报File "train_pretrain.py", line 821, in call
prob_det = torch.sigmoid(output[:, :, 0] * (1 - 2 * target[:, :, 0]))
IndexError: too many indices for tensor of dimension 2这个问题
我把prob_det = torch.sigmoid(output[:, :, 0] * (1 - 2 * target[:, :, 0]))更改为
prob_det = torch.sigmoid(output[:, 0] * (1 - 2 * target[:, :, 0]))
再运行train.sh后遇到新的错误:
2、Loading image: /home/syl/LMDrive/autodl-tmp/DATASET_ROOT/data/routes_town02_long_w16_08_15_21_31_40/rgb_full/5235.jpg
Loading image: /home/syl/LMDrive/autodl-tmp/DATASET_ROOT/data/routes_town02_long_w11_08_15_15_54_43/rgb_full/5449.jpg
Traceback (most recent call last):
File "train_pretrain.py", line 1873, in
在云服务器上训练就没事,在自己的本地电脑训练就出问题..