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

pp_liteseg预测问题 #3400

Closed
1 task done
djl00 opened this issue Jul 23, 2023 · 2 comments
Closed
1 task done

pp_liteseg预测问题 #3400

djl00 opened this issue Jul 23, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@djl00
Copy link

djl00 commented Jul 23, 2023

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

pp_liteseg没有给预测代码,只有paddle总的预测代码,如果这样配置预测参数,预测的是多大尺寸的图片:
python tools/predict.py
--config configs/pp_liteseg/pp_liteseg_stdc2_cityscapes_1024x512_scale0.5_160k.yml
--model_path city_stdc2_0.5/best_model/model.pdparams
--image_path data/cityscapes/leftImg8bit/test
--save_dir output

其中configs/pp_liteseg/pp_liteseg_stdc2_cityscapes_1024x512_scale0.5_160k.yml代码如下:

base: './pp_liteseg_stdc1_cityscapes_1024x512_scale0.5_160k.yml'

test_config:
aug_eval: True
scales: 0.5

model:
inherited: False # not inherit the model params from the base yaml
type: PPLiteSeg
backbone:
type: STDC2
pretrained: https://bj.bcebos.com/paddleseg/dygraph/PP_STDCNet2.tar.gz

@djl00 djl00 added the question Further information is requested label Jul 23, 2023
@Asthestarsfalll
Copy link
Contributor

根据代码,使用的是val_transforms,具体可以看配置文件中的大小

@ToddBear
Copy link
Collaborator

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

No branches or pull requests

4 participants