Meet assertion error assert loss <= 1
when running tools/train.py
#6864
Unanswered
junyizhao04
asked this question in
Q&A
Replies: 3 comments 10 replies
-
Does it appear every time? |
Beta Was this translation helpful? Give feedback.
1 reply
-
did you solve it? I had same problem and trying docker environment worked. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Anyone has solution that can be done strictly on windows without docker involved? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
打算测试的时候先用一下demo的ICDAR数据集和测试代码,结果直接报错。。。
Traceback (most recent call last):
File "tools/train.py", line 191, in
main(config, device, logger, vdl_writer)
File "tools/train.py", line 164, in main
program.train(config, train_dataloader, valid_dataloader, device, model,
File "/home/楼主电脑/PaddleOCR/tools/program.py", line 268, in train
loss = loss_class(preds, batch)
File "/home/楼主电脑/.local/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 930, in call
return self._dygraph_call_func(*inputs, **kwargs)
File "/home/楼主电脑/.local/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "/home/楼主电脑/PaddleOCR/ppocr/losses/det_db_loss.py", line 65, in forward
loss_binary_maps = self.dice_loss(binary_maps, label_shrink_map,
File "/home/楼主电脑/.local/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 930, in call
return self._dygraph_call_func(*inputs, **kwargs)
File "/home/楼主电脑/.local/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "/home/楼主电脑/PaddleOCR/ppocr/losses/det_basic_loss.py", line 128, in forward
assert loss <= 1
AssertionError
这是什么情况?如何处理?
Beta Was this translation helpful? Give feedback.
All reactions