Giter Site home page Giter Site logo

Comments (10)

yeahQing avatar yeahQing commented on July 24, 2024

How can I create a lmdb dataset for Chinese character?

from fudanocr.

JingyeChen avatar JingyeChen commented on July 24, 2024

The link of the dataset is shown in http://www.nlpr.ia.ac.cn/databases/handwriting/Home.html

from fudanocr.

yeahQing avatar yeahQing commented on July 24, 2024

The link of the dataset is shown in http://www.nlpr.ia.ac.cn/databases/handwriting/Home.html

Hi, Chen, thanks for your reply. I have downloaded the dataset, but I don’t understand why a string is looped here. The code is:

def get_data_package():
    train_dataset = []
    # 'train_dataset': './data/mydata/train_1000' why loop this path?
    for dataset_root in config['train_dataset'].split(','):
        _, dataset = get_dataloader(dataset_root, shuffle=True)
        train_dataset.append(dataset)

from fudanocr.

yeahQing avatar yeahQing commented on July 24, 2024

What type of data set should I replace the path './data/mydata/train_1000'?

from fudanocr.

JingyeChen avatar JingyeChen commented on July 24, 2024

The link of the dataset is shown in http://www.nlpr.ia.ac.cn/databases/handwriting/Home.html

Hi, Chen, thanks for your reply. I have downloaded the dataset, but I don’t understand why a string is looped here. The code is:

def get_data_package():
    train_dataset = []
    # 'train_dataset': './data/mydata/train_1000' why loop this path?
    for dataset_root in config['train_dataset'].split(','):
        _, dataset = get_dataloader(dataset_root, shuffle=True)
        train_dataset.append(dataset)

A loop is used to concatenate multiple datasets. For example, the dataset can be formulated in this way:

'train_dataset': './data/mydata/train_1000,./data/mydata/train_1500,./data/mydata/train_2000'

from fudanocr.

JingyeChen avatar JingyeChen commented on July 24, 2024

What type of data set should I replace the path './data/mydata/train_1000'?

The format should be lmdb

from fudanocr.

yeahQing avatar yeahQing commented on July 24, 2024

Thank you very much, it has helped me a lot!

from fudanocr.

cptbtptp125 avatar cptbtptp125 commented on July 24, 2024

Hello, have you successfully converted LMDB format? I want to know how to convert, I have tried many methods without success

from fudanocr.

yeahQing avatar yeahQing commented on July 24, 2024

Hello, have you successfully converted LMDB format? I want to know how to convert, I have tried many methods without success

Hi, you can see in #57.

from fudanocr.

cptbtptp125 avatar cptbtptp125 commented on July 24, 2024

Hello, I am a little confused about the loop connection of multiple data sets, may I ask why this operation is carried out, and what is the difference between it and the direct single training? Thank you very much for your reply. I would appreciate it if you could help me.
'train_dataset': './data/mydata/train_1000,./data/mydata/train_1500,./data/mydata/train_2000'

from fudanocr.

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.