WellyZhang / MetaStyle

MetaStyle: Three-Way Trade-Off Among Speed, Flexibility, and Quality in Neural Style Transfer
http://wellyzhang.github.io/project/metastyle.html
Other
69 stars 10 forks source link

got the following arguments are required: --style-dataset #1

Closed Wisgon closed 5 years ago

Wisgon commented 5 years ago

when I try to use fast train: $python src/main.py train --content-dataset test2017 --style-image images\style\sketch.png --model MetaStyle.pth --cuda 1 ,i got the error: " following arguments are required: --style-dataset" please tell me what to do

WellyZhang commented 5 years ago

Please note that to use fast train, run

python src/main.py fast ...

On Thu, Apr 18, 2019 at 9:05 PM Wisgon notifications@github.com wrote:

when I try to use fast train: $python src/main.py train --content-dataset test2017 --style-image images\style\sketch.png --model MetaStyle.pth --cuda 1 ,i got the following arguments are required: --style-dataset? please tell me what to do

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/WellyZhang/MetaStyle/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWYBKQQC5MRWTRJKV34RNTPRFAHBANCNFSM4HHB2FTA .

Wisgon commented 5 years ago

Thanks, I ran it successfully, but your instruction of fast train in README.md is : python src/main.py train --content-dataset <path-to-your-content-dataset> --style-image <path-to-your-style-image> --model <path-to-your-trained-model> --cuda 1

And BTW, I have to run the command below to ran the fast train successfully: $mkdir -p experiments/save $cd experiments/save $touch sketch.pth

Then I run fast train successfully.

Anyway, thank you very much for replying!