New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the process of training a new style image's model? #74
Comments
Once you have created the HDF5 dataset file from your image sets, you then run the train.lua script. This is where you input the HDF5 file you just created, your style image (multiple style images not currently supported), and a model (default one is VGG16). This script outputs a t7 file which you then use on various content images. |
Validation images are useful for checking, during training, how well the training is working with images other than those used for training. They do not affect the model itself, only function as a cross-check (see if the loss values for validation are comparable to the losses in training, then training is going on well). |
There are varying opinions how many images are needed for training. The COCO set has 80 000 images. I have at times used my own set of around 2500 images, mainly landscapes and other places. It works well too, results are slightly but not too different. Dmitry Ulyanov, the author of texture_nets (which works quite similar to fast-neural-style) has said that best results can be obtained from a quite small (like 16 or even smaller) training set. In texture_nets it is a bit easier to experiment with different trainings sets, as no hdf5 file is needed, a directory of training images is enough. Then one can even train with exactly those images one plans to transform. |
Hello!
Thanks for building this project.
I needed to run neural style transfer on a few style images faster, so I found this and was hoping I could train a style model for each of my images.
Looking through the training guide however there are some parts I don't quite understand.
What's the importance of these two parameters?
Thanks!
The text was updated successfully, but these errors were encountered: