arbitrary_style_transfer icon indicating copy to clipboard operation
arbitrary_style_transfer copied to clipboard

How should I train my own model?

Open JoeyQWu opened this issue 6 years ago • 6 comments

hello, I have a question about training a new model, and I want to know how I would train my own model, I always get the error , and I have no idea why. I would appreciate if you can tell me how to do this, thank you @elleryqueenhomels

JoeyQWu avatar Jun 05 '18 11:06 JoeyQWu

Hi! I am not sure what error did you come across. It would be a great help if you could post the error log. Here, I guess your error comes from the "bad" images in the WikiArt. I suppose you use the script which is in the tool directory to clean up those bad images first before you train your own model. @JoeyQWu

elleryqueenhomels avatar Jun 05 '18 11:06 elleryqueenhomels

@elleryqueenhomels Hi , I have just fixed the error , thanks for your kind answer , very grateful !

JoeyQWu avatar Jun 05 '18 12:06 JoeyQWu

Hi, @elleryqueenhomels I just met another mistake, I trained a model, and when I transfer the images using this model, I can't get the right images, all of them are blue images or black images, I clean up the bad images using the script "preprocess.py" and all images was cleaned out, is wikiart dataset which I downloaded not correct ?

JoeyQWu avatar Jul 04 '18 02:07 JoeyQWu

Hi! @JoeyQWu FYI I have updated this repo recently. Doing some optimization to speed up training process and inferring process. The 'preprocess' script is also been updated. Technically, if you use this latest repo to train, you will get a working model within 4 epochs (Maybe you could add some stop-early mechanism. Ex. once the loss hits a threshold, you can save the model and halt.) To your question, could please provide more info? Have you modified the network architecture ?

elleryqueenhomels avatar Jul 04 '18 02:07 elleryqueenhomels

@JoeyQWu BTW, I suppose you use the WikiArt train set which is about 32GB and 80k images.

elleryqueenhomels avatar Jul 04 '18 03:07 elleryqueenhomels

Hi@elleryqueenhomels I encountered the same problem. after training the models, the styilized image'color was not natural, please help me,Thanks!

395062753 avatar Aug 23 '18 02:08 395062753