Giter Site home page Giter Site logo

How to use pre-trained model about lffont HOT 4 CLOSED

clovaai avatar clovaai commented on September 26, 2024
How to use pre-trained model

from lffont.

Comments (4)

SanghyukChun avatar SanghyukChun commented on September 26, 2024

@MingtaoGuo
Thanks for your question.
#2 is a very related issue to your question. Could you follow #2?

from lffont.

MingtaoGuo avatar MingtaoGuo commented on September 26, 2024

Thanks for your reply so quickly !!! very thank you!

I see the related issue, however, it still didn't work.

""'
If I want to test pretrained weight, :

  1. I should write test.json first
  2. then make the lmdb file for test.json
  3. modify the data_path and data_meta in cfgs/defaults.yaml
    ""'

Firstly, I download the .ttf file, and make the json file, then execute the build_dataset.py, it's ok.
the above step can generate a json file, like this:
{"font1": ["6625", "590F", "79CB", "51AC"]}

but when I run evaluator.py, the error output is "lmdb.Error: ./path/to/lmbd: No such file or directory". Maybe, I should modify data_path and data_meta in cfgs/defaults.yaml, but I don't know what means of these two parameters. could
you tell me how to fix this problem?

thank you very much!

GMT

from lffont.

SanghyukChun avatar SanghyukChun commented on September 26, 2024

@MingtaoGuo
For efficiency, we use the dataset as LMDB format, which is a self-contained database format, instead of raw images.
We do not provide the pre-extracted LMDB in our repository, but you have to build the dataset by yourself.

Could you follow the following instruction?
https://github.com/clovaai/lffont#prepare-datasets

After building your own LMDB, please change the paths in the example configuration file.

from lffont.

SanghyukChun avatar SanghyukChun commented on September 26, 2024

Closing the issue, assuming my answer resolves the problem.
Please re-open the issue as necessary.

from lffont.

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.