PSENet icon indicating copy to clipboard operation
PSENet copied to clipboard

python3.6运行train_ic15.py 出错

Open Donaghys opened this issue 5 years ago • 7 comments

checkpoint path: checkpoints/ic15_resnet50_bs_2_ep_600 init lr: 0.00100000 ('schedule: ', [200, 400]) Training from scratch.

Epoch: [1 | 600] LR: 0.001000 Traceback (most recent call last): File "train_ic15.py", line 289, in main(args) File "train_ic15.py", line 257, in main train_loss, train_te_acc, train_ke_acc, train_te_iou, train_ke_iou = train(train_loader, model, dice_loss, optimizer, epoch) File "train_ic15.py", line 175, in train return (losses.avg, score_text['Mean Acc'], score_kernel['Mean Acc'], IC15Loaderscore_text['Mean IoU'], score_kernel['Mean IoU']) UnboundLocalError: local variable 'score_text' referenced before assignment 求帮助

Donaghys avatar May 31 '19 09:05 Donaghys

@QQ1696311291 你的数据应该没放对位置

sonack avatar Jun 04 '19 06:06 sonack

能加个联系方式,详细谈谈这个问题吗?

Donaghys avatar Jun 04 '19 14:06 Donaghys

@QQ1696311291 解决了吗?我也出现了这个问题。

jiangzz1628 avatar Oct 18 '19 06:10 jiangzz1628

你好。训练结果正常吗

shaoshuaiche avatar Nov 02 '19 02:11 shaoshuaiche

python3.6,版本的,训练,一直不收敛,loss 0.7左右,acc 0.7左右

shaoshuaiche avatar Nov 02 '19 02:11 shaoshuaiche

python3 和python2的区别, 整除运算符,py2是/ ,Python3是//

apple2333cream avatar Mar 04 '20 12:03 apple2333cream

python3 和python2的区别, 整除运算符,py2是/ ,Python3是//

我也遇到了这个问题 请问修改哪里呢 代码里每个/都要修改成//吗?

VixeruntR avatar Apr 16 '20 02:04 VixeruntR