waldo-seg / waldo

image-segmentation and text-localization
Apache License 2.0
13 stars 13 forks source link

Make the configuration object a class. #21

Closed danpovey closed 6 years ago

danpovey commented 6 years ago

This is a pull request to make the core configuration object a class. The default config looks like this:

num_classes 2
num_colors 1
padding 10
train_image_size 256
offsets 1 0  0 1  -2 -1  1 -2  3 2  -4 3  -4 -7  10 -4  3 15  -21 0

Notice that I added some very basic test code. When people work on other files it would be cool if they could add similar test code, to at least make sure things run. (but don't let this delay you, it's not a must). It might be helpful to have functions to create random objects of the various types we use, for testing purposes.