Comments (6)
Please change this line.
from
corpus: weights: [1]
to
corpus: weights: [1, 0]
Thank you soo much it worked
Also it gives this error can we prevent this
RuntimeError: Text is not visible
from synthtiger.
oky thank you soo much now i can make greek recognition model
You may ignore this message
RuntimeError: Text is not visible
. Please see #35.
from synthtiger.
Hi,
It seems that the number of corpus weights is different from the number of corpus.
Please check config file.
https://github.com/clovaai/synthtiger/blob/master/examples/synthtiger/config_horizontal.yaml#L16
This example has two corpus (length augmentable corpus, char augmentable corpus) and two corpus weights (1, 0).
from synthtiger.
Hi,
It seems that the number of corpus weights is different from the number of corpus. Please check config file.
https://github.com/clovaai/synthtiger/blob/master/examples/synthtiger/config_horizontal.yaml#L16 This example has two corpus (length augmentable corpus, char augmentable corpus) and two corpus weights (1, 0).
Sorry, can you guide what to change, im trying to generate greek images from corpus, im using this config file, i change the weight but i dont know why still getting the same error
coord_output: true
mask_output: true
glyph_coord_output: true
glyph_mask_output: true
vertical: false
quality: [50, 95]
visibility_check: true
midground: 0.25
midground_offset:
percents: [[-0.5, 0.5], [-0.5, 0.5]]
foreground_mask_pad: 5
corpus:
weights: [1]
args:
# length augmentable corpus
- paths: [resources/corpus/ge.txt]
weights: [1]
min_length: 1
max_length: 25
textcase: [lower, upper, capitalize]
augmentation: 0.1
augmentation_length: [1, 25]
# char augmentable corpus
- paths: []
weights: []
min_length: 1
max_length: 25
textcase: [lower, upper, capitalize]
augmentation: 0
augmentation_charset: resources/charset/alphanum_special.txt
font:
paths: [resources/font]
weights: [1]
size: [40, 80]
bold: 0.5
texture:
prob: 0.5
args:
paths: [resources/image]
weights: [1]
alpha: [0, 1]
grayscale: 0
crop: 1
colormap2:
paths: [resources/colormap/iiit5k_gray.txt]
weights: [1]
k: 2
alpha: [1, 1]
colorize: 1
colormap3:
paths: [resources/colormap/iiit5k_gray.txt]
weights: [1]
k: 3
alpha: [1, 1]
colorize: 1
color:
gray: [0, 255]
alpha: [1, 1]
colorize: 1
shape:
prob: 1
args:
weights: [1, 1]
args:
# elastic distortion
- alpha: [15, 30]
sigma: [4, 12]
# elastic distortion
- alpha: [0, 2]
sigma: [0, 0.6]
layout:
weights: [4, 1]
args:
# flow layout
- space: [-2, 5]
line_align: [middle]
# curve layout
- curve: [20, 40]
space: [-2, 5]
convex: 0.5
upward: 0.5
style:
prob: 0.25
args:
weights: [1, 2, 2]
args:
# text border
- size: [1, 12]
alpha: [1, 1]
grayscale: 0
# text shadow
- distance: [1, 6]
angle: [0, 360]
alpha: [0.3, 0.7]
grayscale: 0
# text extrusion
- length: [1, 12]
angle: [0, 360]
alpha: [1, 1]
grayscale: 0
transform:
prob: 1
args:
weights: [1, 1, 1, 1, 1, 1, 2]
args:
# perspective x
- percents: [[0.5, 1], [1, 1]]
aligns: [[0, 0], [0, 0]]
# perspective y
- percents: [[1, 1], [0.5, 1]]
aligns: [[0, 0], [0, 0]]
# trapezoidate x
- weights: [1, 0, 1, 0]
percent: [0.75, 1]
align: [-1, 1]
# trapezoidate y
- weights: [0, 1, 0, 1]
percent: [0.5, 1]
align: [-1, 1]
# skew x
- weights: [1, 0]
angle: [0, 30]
ccw: 0.5
# skew y
- weights: [0, 1]
angle: [0, 10]
ccw: 0.5
# rotate
- angle: [0, 10]
ccw: 0.5
pad:
prob: 1
args:
pxs: [[0, 10], [0, 10], [0, 10], [0, 10]]
postprocess:
args:
# gaussian noise
- prob: 1
args:
scale: [4, 8]
per_channel: 0
# gaussian blur
- prob: 0.9
args:
sigma: [0, 2]
# resample
- prob: 0.1
args:
size: [0.4, 0.4]
# median blur
- prob: 1
args:
k: [1, 1]
from synthtiger.
Please change this line.
from
corpus:
weights: [1]
to
corpus:
weights: [1, 0]
from synthtiger.
You may ignore this message RuntimeError: Text is not visible
.
Please see #35.
from synthtiger.
Related Issues (20)
- text effects
- RuntimeError: Text is not visible HOT 1
- Images are very distorted HOT 6
- windows怎么安装libraqm HOT 1
- install libraqm for windows HOT 1
- Why the value of mask is between 0 and 255 for foreground stroke?
- Improving documentation
- Issue with synthtiger_v1.1.zip HOT 1
- How to choose background?
- The coords.txt file created after generating the images is not very interpretable. I can understand a 4-point coordinate system.
- The coords.txt file created after generating the images is not very interpretable. HOT 1
- Vertical, Horizontal, Inverted, Curved images
- Thanks you
- RuntimeError when draw sample with backslash HOT 2
- Images having characters with different font size
- Text rotation
- How to get object of cv2/pillow for the generate image?
- Slow creation for single page.
- Is there any way (templates) to generate book pages?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synthtiger.