-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Custom image Inference #91
Comments
Yeah, Same here. I want ro do inference of PAN++ on custom image. I do not see that in the repo. |
I did modified some codes and inference with my cunstom data.
import math import cv2 from .coco_text import COCO_Text EPS = 1e-6 ic17_root_dir = './data/ICDAR2017MLT/' ct_root_dir = './data/COCO-Text/' ''' ##################################
|
How to predict a new image using the training weight?it doesn't work below. python test.py config/pan/pan_r18_ic15.py checkpoints/pan_r18_ic15/checkpoint.pth.tar please inform me with qushanghui@niii.com or wechat SanQian-2012,thanks you so much. |
I want to inference about a custom image.
this image is not in 'Prepare datasets' ex) ic17, ic15, ...
How can I inference a custom image?
How should I change it here? ▼▼
./config/pan_pp/pan_pp_r18_ic15_joint_train.py
data = dict(
batch_size=16,
train=dict(
type='PAN_PP_JointTrain',
split='train',
is_transform=True,
img_size=736,
short_size=736,
kernel_scale=0.5,
read_type='pil',
with_rec=True
),
test=dict(
type='PAN_PP_IC15',
split='test',
short_size=720,
read_type='pil',
with_rec=True
)
)
The text was updated successfully, but these errors were encountered: