Style transfer soon in G'MIC


Modifying a bit the photo so that they coincide the colours and treatment

5 Likes

Awesome transfers!

Really nice results, Bazza.

Anyway, it’s now an official binge for me. lol

Target image I took of a Christmas Cactus (and my Christmas Cactus already has several buds now) a few years back. Merry Christmas. :slight_smile:

source reference: http://4.bp.blogspot.com/-4izCBFHm3bE/UQAe0SbIrsI/AAAAAAAAEQw/XUULUEVVVHE/s1600/rs+connett42.jpg

https://c1.staticflickr.com/5/4807/46156953112_9313cc9dfd_o.jpg

https://www.flickr.com/photos/34520999@N05/46156953112/sizes/o/

5 Likes

Modifying a bit more the image

2 Likes


Fidelity Countours: 0,6

2 Likes

goto model:

MODEL | DRAW | RESULT

Pardon for using to the pet of a wicked corporation

1 Like

very interesting stuff everybody
thanks for sharing and helping with settings/ideas (and thanks of course to David)

here is one of my trials, kinda happy for a first try (hopefully these pics embed ok)

~ settings in order of appearance on-screen
pollock - convergence, 100%, None, 1.52, 10.00, 2.00, 0.50, 1.50, 0.10, histogram transfer

afterwards i made a few adjustments (unsharp, contrast/color/etc. and then a wispy grinch for a little more definition)

5%20start

5a

5

Who doesn’t like the Grinch, Somewhereman. lol

Anyway, I was toying with style transfer to uprez and image and got some mixed results (thus not sharing not to mention it too way too long to complete) based on inspiration from using Resynthesizer (someone created a preset for uprezzing for Resynthesizer). Style transfer did a better job as far as matching the areas, but again, it wasn’t pretty. lol

Just something to think about when trying to “add” new detail to an uprezzed image. :slight_smile:

Finally decided to start contributing what I’ve made using the filter. I took the difference between an image of the Great Wave and a result of the image being used on itself through the filter and I’ve run it through my neon filter, added grain and used all sorts of curves and blending techniques for this:

…then if I stylise the Great Wave again using this new image and posterise the result, this rubbish comes out…

Besides that, I found an error in the command (which is trivial to fix) - a missing fi in l[] if {!narg($$stylize)} _fx_stylize_ onfail endl.

2 Likes

Update and sayme:

*** Error in ./fx_stylize/*local/*if/ *** Command 'onfail': Not associated to a 'local' command within the same scope.

In command-line:

gmic cabezas.xcf fx_stylize 1,4,0,1,7,3,3,0.5,1.5,0.1,2,5,0,0.7,100,0,1,0,5,5,7,1,30,1000,2,0
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input file 'cabezas.xcf' at position 0 (1 image 562x535x1x3).
[gmic]-0./fx_stylize/*local/*if/_fx_stylize_/ Import custom commands from expression '_b:base642img $1' (1 new, total: 3319).
[gmic]-0./fx_stylize/*local/*if/_fx_stylize_/ Import custom commands from expression '_r:run {t} rm' (1 new, total: 3320).
[gmic]-0./fx_stylize/*local/*if/_fx_stylize_/_r/run/_r/ Remove image [] (0 images left).
[gmic]-1./fx_stylize/*local/*if/_fx_stylize_/_r/ Remove image [0] (0 images left).
[gmic]-0./fx_stylize/*local/*if/_fx_stylize_/ Discard definitions of custom commands '_b,_r' (2 found, 3319 commands left).
[gmic]-0./fx_stylize/*local/*if/ *** Error *** Command 'onfail': Not associated to a 'local' command within the same scope.

Same error on Krita v.4.2 beta, on Windows x64

Fixed.

1 Like

It’s fixed now.

New problem: It crash Krita when it is done.

Test krita over terminal to see the debug, sure this serves him to repair the error.

How do I do that on Windows?

I do not know it, surely with cmd.exe

@Reptorian The plugin should have settings for verbose output.

image

2 Likes

ref: Weed in Space! ( DMT Land ) by timothylgreen on DeviantArt

Why not another; won’t have much time to play after today. :frowning:

:slight_smile:

2 Likes

wow!
Really cool stuff.
Will it be useable in Natron too?

Okay, I believe I am having trouble getting the log file after looking at those dialogs. No log file were created. In Krita, it just closes Krita once the filter is finished. I might get around to looking at the code directly once my work is done. I checked if it was in gmic appdata, nothing was created.