-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PPLCNetNew找不到對應模型 #10685
Comments
I meet the same problem. |
不是“PPLCNetNewV3”而是“PPLCNetV3” |
PPLCNetV3 我改成了这个,但是也是一样的报错。 |
添加det: true后,
调试进入
发现shappe_list是一个 batch_size * 640(height) *640(width) 的数组, |
Traceback (most recent call last): |
我也遇到了跟你一样的问题,请问你解决了吗? |
@KongXCai just set: cal_metric_during_train: false |
@564142183 你可以试一下 set: cal_metric_during_train: false |
@mattheliu 感谢大佬回复,把cal_metric_during_train改成false后训练还是报错 [2024-05-11 09:12:21,664] [ WARNING] dataloader_iter.py:707 - DataLoader 1 workers exit unexpectedly, pids: 5673
Traceback (most recent call last):
File "/PaddleOCR/tools/train.py", line 255, in <module>
main(config, device, logger, vdl_writer, seed)
File "/PaddleOCR/tools/train.py", line 208, in main
program.train(
File "/PaddleOCR/tools/program.py", line 304, in train
for idx, batch in enumerate(train_dataloader):
File "/usr/local/lib/python3.10/dist-packages/paddle/io/dataloader/dataloader_iter.py", line 826, in __next__
self._reader.read_next_list()[0]
SystemError: (Fatal) Blocking queue is killed because the data reader raises an exception.
[Hint: Expected killed_ != true, but received killed_:1 == true:1.] (at ../paddle/fluid/operators/reader/blocking_queue.h:171) |
问题已解决,就是训练完的效果不太理想,附项目地址:https://aistudio.baidu.com/projectdetail/7900653?sUid=3018256&shared=1&ts=1716019542135 |
使用ch_PP-OCRv4_det訓連模型進行fintune時,將 ch_PP-OCRv4_det_cml.yml 中的 Backbone name: PPLCNetNew 找不到對應模型,如果改成PPLCNetNewV3則會報錯 for i in range(len(in_channels)):TypeError: object of type 'int' has no len()
可以麻煩請教一下原因嗎?謝謝。
完整报错/Complete Error Message:
Traceback (most recent call last):
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/tools/train.py", line 227, in
main(config, device, logger, vdl_writer)
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/tools/train.py", line 135, in main
model = build_model(config['Architecture'])
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/ppocr/modeling/architectures/init.py", line 34, in build_model
arch = getattr(mod, name)(config)
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/ppocr/modeling/architectures/distillation_model.py", line 47, in init
model = BaseModel(model_config)
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/ppocr/modeling/architectures/base_model.py", line 67, in init
self.neck = build_neck(config['Neck'])
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/ppocr/modeling/necks/init.py", line 42, in build_neck
module_class = eval(module_name)(**config)
File "/home/cjwang/cjwang/PaddleOCR-release-2.7/ppocr/modeling/necks/db_fpn.py", line 240, in init
for i in range(len(in_channels)):
TypeError: object of type 'int' has no len()
The text was updated successfully, but these errors were encountered: