-
Notifications
You must be signed in to change notification settings - Fork 626
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
Would you please publish a detailed usage (including train my own mask,generate result)in README.md? #30
Comments
That would be great, i join your request. Also Thanks! |
I am in for this, too. |
+1 |
request bump |
Okay, so, I've spent a number of hours poking and prodding at this, and I've finally got it figured out. basic setup:
Making the initial images.
Making the mask:
making the dilated mask:
Next: and then~ Congratulations, you've now made your own deep-painterly-harmonization. There are ways to streamline this, use the generated png files, Quick tip. EDIT: I've decided to upload proof that I got it to run... It ain't pretty, but bahgawd, it did the thing. |
@HandsomeDevilv112 you did good, too bad I didn't read you post earlier. But, you didnt run('filt_cnn_artifact.m') after gen_all.py is finisnhed. Did you make run('filt_cnn_artifact.m') work?? because it has error
|
I did not experience that, nor do I have any immediate recollection doing anything to that. Doing a quick google investigation, that sure is an octave error. just to outline my process, I get target, naive, and c_mask all in the root directory. I then run octave in 4 steps:
I take the above 3 images and this new one, put them in data, then run "python3 gen_all.py" in terminal. After a few minutes, I get godzilla vs mothra in starry night. |
@HandsomeDevilv112 hehe, yes i do those steps too, but can't finish it with octave command. Do you know where I need to look? I am investigating google like crazy can't figure it out. Trying to compile too, can't make it work. |
I can't say I do. If I stumble upon it, you'll be the first to know, but it's pretty far out of my usual research |
I haven't attempted to work with any of the code in this repository yet, and Matlab/Octave is not a language I have any experience with, but I don't think that you even need it to dilate the mask. Many programs (including GIMP) have a dilate operation. Depending on what exactly it is used for, repeating that operation a bunch of times may be good enough, however the implementation of the dilate operation here is a bit unusual. By studying the code, I think this imagemagick command should produce identical results:
@HandsomeDevilv112 Maybe you can confirm that this produces identical, or at least very similar results as the script? If they do not match, can you post an example of a mask and dilated_mask here for reference? |
@scribblemaniac I would say you will get similar results with imagemagick too. I have created diluted mask in photoshop and results are similar. |
This coming from the person who had issues with it in the first place? You also have to install and load the image package as well it seems. At any rate, I'd say it's simpler because imagemagick comes preinstalled on many systems. A custom script in an less common language is overkill for such a simple operation. People can use whichever method they prefer. |
@cikatomo the issue is with another script... |
if you're able to get similar results through imagemagick, and can get similar results through imagemagick...I'll encourage you to use it, because you can get it to work. Once you get those 4 files, all you need is gen_all |
should i modify some source code to adapt the change of images? |
some error,did you solved it? |
@jjl729756535 unfortunately, I barely remember anything anymore. I did manage to run it in the end somehow. Is that step necessary or optional? I played a lot with versions and what not, remind me please |
should i modify some source code to adapt the change of images? same error, did you solve it? |
|
i had run gen_all.py successfully but i stuck in the part of octave.pardon me, i mean if i change the number of picture or the variety of target picture should i modify some source code to adapt that? |
by the way ,when i do run('filt_cnn_artifact.m') ,i get |
Did you try to use patchmatch2.1? I see I have it. Other than that I probably skipped that thing if it's optional |
I used patchmatch 2.0 which were offered by author,I will try to use 2.1 version and see what will happen,thx! |
patchmatch2.1 didn't work too ,still error: |
I cannot help you anymore unfortunately, I've done it only once, and can't remember anymore |
a working colab: #63 |
Would you please publish a detailed usage (including train my own mask,generate result)in README.md? I'm just a senior high student ,and it's difficult for me to understand all this.I just wonna know how to use it :-P Thanks.
The text was updated successfully, but these errors were encountered: