PixelLink-with-pytorch
PixelLink-with-pytorch copied to clipboard
Problem in Loss Func. Use ICDAR2015 to train to model, but this problem emerged.
File "/workspace/PixelLink-with-pytorch/main.py", line 144, in
你好,请问你训练成功了吗?
change
self.neg_pixel_weight[i] = self.neg_pixel_weight[i] & (neg_pixel_masks[i]==1)
to
self.neg_pixel_weight[i] = self.neg_pixel_weight[i] & (neg_pixel_masks[i]==1).byte()