Skip to content
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

文字图片方向分类训练时如何使用预训练模型text_image_orientation_pretrained? #3333

Open
tianwenzhe opened this issue Dec 24, 2024 · 2 comments
Assignees

Comments

@tianwenzhe
Copy link

请问,文字图片方向分类训练时如何使用预训练模型text_image_orientation_pretrained?

直接将PPLCNet_x1_0.yaml的Global中pretrained_model设置为text_image_orientation_pretrained.pdparams的路径(text_image_orientation_pretrained不加后缀pdparams)即可吗?
如:
Global:
checkpoints: null

pretrained_model: null

pretrained_model: pretrained_model/text_image_orientation/text_image_orientation_pretrained
output_dir: ./output/
device: gpu
save_interval: 1
eval_during_train: True
eval_interval: 1

epochs: 60

epochs: 1
print_batch_step: 10
use_visualdl: False

used for static mode and model export

image_shape: [3, 224, 224]
save_inference_dir: ./inference

@tianwenzhe
Copy link
Author

我尝试了,这样是正确的

@TingquanGao TingquanGao self-assigned this Dec 24, 2024
@TingquanGao
Copy link
Collaborator

嗯嗯,这样可以的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants