I wanted to have a good feeling with CycleGAN, so I first collected images of the guitar. I downloaded and resized the image. Click here for details (https://qiita.com/nozomi254/private/2fc55cc8ae8e6359f8a7)
The folder name is the same so that it follows the procedure described in the README. After all, I didn't really have a black Jazzmaster, and I didn't have enough energy to do my best.
maps
├── trainA(Sunburst for learning:284 sheets)
├── trainB(Black for learning:94 sheets)
├── testA(Test sunburst:151 sheets)
└── testB(Test black:76 sheets)
It became a very unmotivated and unbalanced feeling. It doesn't look good, but thank you.
I thought that FileZilla used in the university class might be easy to use, so I connected it. You can't just type in the square above, but you should look it up like "AWS FileZilla" (http://support.amimoto-ami.com/en/articles/934126-filezilla- % E3% 82% 92% E4% BD% BF% E3% 81% A3% E3% 81% 9F-sftp-% E6% 8E% A5% E7% B6% 9A)
The nice thing about this is that you can upload folders and files by dragging and dropping, or I don't know how to do it other than doing this.
Before uploading the entire directory maps
created in the first part, it is necessary to make sure that there is no maps on the AWS side now. It took me a light year trying to remove it with FileZilla.
mv maps maps_real
Solved with. mv can also be used to change the name. I think that even operations on FileZilla can be done in 1/200 million seconds
The folder names are also available, so [README on the original GitHub]( Follow the instructions in pytorch-CycleGAN-and-pix2pix). First learn.
python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan
Takes time
It seems that the code is really well made and it makes a web page and shows the result, but I can not see it because it keeps loading forever Also, for some reason, the images (aerial photographs and map photographs) that were in the original maps are also mixed. For the time being, the one I saw in Atom's Preview that seems to work HM. rec and idt seem to mean reconstruction reconstruction and identity identity rec_A = F(G(A)) rec_B = G(F(B)) idt_A = G(B) idt_B = F(A) Reference: different outputs (images) # 326
Once the map is mixed, as far as the creation date and time is seen, it seems that only the result (I feel that it is not mixed with the one for learning), so just run the test as it is
python test.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan
It seems that it was difficult for the background to be black or for live video What if the background is transparent? I was advised, but I wanted people to do their best on the guitar they are playing ...
There are still scratches and it looks like it
Is this black and white? About
This is just black and white
You can connect Pycharm and AWS, so I want to try that too
to be continued···
Recommended Posts