Code Monkey home page Code Monkey logo

Comments (6)

Ham714 avatar Ham714 commented on July 28, 2024 1

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.

Ham714 avatar Ham714 commented on July 28, 2024 1

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.

moonbings avatar moonbings commented on July 28, 2024

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.

Ham714 avatar Ham714 commented on July 28, 2024

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.

moonbings avatar moonbings commented on July 28, 2024

Please change this line.

from

corpus:
  weights: [1]

to

corpus:
  weights: [1, 0]

from synthtiger.

moonbings avatar moonbings commented on July 28, 2024

You may ignore this message RuntimeError: Text is not visible.
Please see #35.

from synthtiger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.