Comments (1)
The project used two datasets, the IAM and RIMES. The objects in datasets/
are used to read them in their individual formats and then prepare the data for what the trainer and model expect. If you're wanting to use this on your own dataset/new language, I'd recommed looking at what I said here: #23
The data passed to the trainer from the __getitem__
function of the dataset objects is a dictionary with these elements:
image
: Normalized to height of 64 pixels, range of -1 (background) to 1 (foreground/ink). Can be multiple images by the same author. (They'll all get appened in the same batch, but reshaped with thea_batch_size
during style extraction)gt
: Plain text for the image(s)label
: IntTensor with the char indexes (startiing at 1) of the ground truth text for the image(s). Padded to be the same length.label_lengths
: IntTensor with the length of each label (before padding).a_batch_size
: (defined in collate function) The number consecutive images by the same author.name
: ID for each image (for display purposes)author
: author (for display purposes)
You'll see a couple more things returned from the actually dataset files, but they aren't used by the trainer.
from handwriting_line_generation.
Related Issues (20)
- Error while training with IAM dataset HOT 2
- Train on a custom dataset HOT 3
- Error training the generator with IAM HOT 2
- clean code HOT 2
- UMAPing HOT 18
- I got 'nan' for all of the losses when I trained the encoder with a custom dataset. HOT 4
- Questions about the data set HOT 3
- CUDA out of memory HOT 30
- instructions for custom dataset HOT 8
- Size of generated output? HOT 2
- MultiGPU training HOT 2
- Issue with generate image from your checkpoint HOT 2
- The saved model HOT 2
- generate.py looping back to mode selection, not producing output.. HOT 2
- AttributeError: 'HWWithStyleTrainer' object has no attribute 'run' HOT 1
- About Train and Eval HOT 2
- How to generate new handwriting images by using generate.py in random module? HOT 1
- how to use from-to mode HOT 21
- โself._ valid_ Epoch() 'Wrong problem HOT 6
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 handwriting_line_generation.