PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
43.02k stars 7.72k forks source link

导出的center loss文件train_center.pkl怎么使用?好像加入yml文件报错了。 #10131

Closed nissansz closed 8 months ago

nissansz commented 1 year ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

导出的center loss文件train_center.pkl怎么使用?好像加入yml文件报错了。

nissansz commented 1 year ago

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 "C:\F\pycharm2020.2\PaddleOCR-release-2.5\tools\program.py", line 268, in train loss = loss_class(preds, batch) File "C:\Program Files\Python38\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in call return self._dygraph_call_func(*inputs, *kwargs) File "C:\Program Files\Python38\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func outputs = self.forward(inputs, kwargs) File "C:\F\pycharm2020.2\PaddleOCR-release-2.5\ppocr\losses\combined_loss.py", line 55, in forward loss = loss_func(input, batch, kargs) File "C:\F\pycharm2020.2\PaddleOCR-release-2.5\ppocr\losses\center_loss.py", line 50, in call assert isinstance(predicts, (list, tuple)) AssertionError

image

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.