Wed Dec 06, 2023 1:37 pm
Then if you haven't already install this GEGL plugin on non flatpak Linux in
https://cdn.discordapp.com/attachments/ ... 09e80be86&
Wed Dec 06, 2023 1:40 pm
gegl-buffer-load
layer src=/tmp/final.png
id=callgmic
over aux=[ ref=callgmic
boy:spawn path-in="/tmp/first.png" "path-out"="/tmp/final.png" pipeline=" gmic /tmp/first.png output /tmp/in3.webp && gmic /tmp/in3.webp fx_bokeh 3,8,0,1,33.5,4,0.07,0.2,255,176,252,160,0.302,27,4.3,20,0.19,2,255,170,255,110,0.15,0,50,50 -o /tmp/final.png " ]
]
gegl-buffer-load
layer src=/tmp/final.png
Wed Dec 06, 2023 1:54 pm
nelo wrote:Then if you haven't already install this GEGL plugin on non flatpak Linux in
https://cdn.discordapp.com/attachments/ ... 09e80be86&
Downloaded, zip unpacked, contains a "RCS" folder ( and other files) in there is a "spawn.c,v" file ?
Never seen such a file-ending before. I doubt that it's ready to use.
Wed Dec 06, 2023 2:06 pm
Wed Dec 06, 2023 3:51 pm
Thu Dec 07, 2023 3:46 am
source ~/anaconda3/etc/profile.d/conda.sh
conda activate base
boy:bash input="GEGL_IN" output="GEGL_OUT" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg -p GEGL_IN -o GEGL_OUT
Thu Dec 07, 2023 4:29 am
nelo wrote:very difficult to follow you for non-programmers :-(
What do I really have to write into the GEGL command?
in my normal working(!) bash script I activate the environment like so:
- Code:
source ~/anaconda3/etc/profile.d/conda.sh
conda activate base
POST WAS EDITED TO WORK WITH MODERN REMBG
And if I put this in the GEGL command
- Code:
boy:bash input="GEGL_IN" output="GEGL_OUT" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg -p GEGL_IN -o GEGL_OUT
nothing happens really, nothing in /tmp either
It would be really nice to have a working step by step example.
Only to get rembg to work ... nothing else. No fancy you can do this and that and so.
That only confuses me ( perhaps others, too)
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg i /tmp/in.png /tmp/out.png"
buffer-sink layer src=/tmp/out.png
Thu Dec 07, 2023 5:39 pm
contrast_ wrote:nelo wrote:very difficult to follow you for non-programmers :-(
What do I really have to write into the GEGL command?
in my normal working(!) bash script I activate the environment like so:
- Code:
source ~/anaconda3/etc/profile.d/conda.sh
conda activate base
And if I put this in the GEGL command
- Code:
boy:bash input="GEGL_IN" output="GEGL_OUT" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg -p GEGL_IN -o GEGL_OUT
nothing happens really, nothing in /tmp either
It would be really nice to have a working step by step example.
Only to get rembg to work ... nothing else. No fancy you can do this and that and so.
That only confuses me ( perhaps others, too)
Disable preview and try this.
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg /tmp/in.png -o /tmp/out.png"
To make it go 9 times faster paste
- Code:
buffer-sink layer src=/tmp/out.png
AFTER GIMP IS FROZE AND THE ORIGINAL COMMAND IS RUNNING
its tricky but you'll get the hang of it.
Thu Dec 07, 2023 6:51 pm
racer-x wrote:contrast_ wrote:nelo wrote:very difficult to follow you for non-programmers :-(
What do I really have to write into the GEGL command?
in my normal working(!) bash script I activate the environment like so:
- Code:
source ~/anaconda3/etc/profile.d/conda.sh
conda activate base
And if I put this in the GEGL command
- Code:
boy:bash input="GEGL_IN" output="GEGL_OUT" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg -p GEGL_IN -o GEGL_OUT
nothing happens really, nothing in /tmp either
It would be really nice to have a working step by step example.
Only to get rembg to work ... nothing else. No fancy you can do this and that and so.
That only confuses me ( perhaps others, too)
Disable preview and try this.
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline="source ~/anaconda3/etc/profile.d/conda.sh && conda activate base && rembg i /tmp/in.png /tmp/out.png"
To make it go 9 times faster paste
- Code:
buffer-sink layer src=/tmp/out.png
AFTER GIMP IS FROZE AND THE ORIGINAL COMMAND IS RUNNING
its tricky but you'll get the hang of it.
That doesn't work for me here. It just leaves an empty layer, except for text in the upper left corner that reports "load failed".
The plugin by JamesH works perfectly however.
viewtopic.php?f=9&t=20041&start=30#p278034
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" rembg i /tmp/in.png /tmp/out.png "
Thu Dec 07, 2023 8:28 pm
Thu Dec 07, 2023 10:14 pm
Fri Dec 08, 2023 2:29 am
(gimp:6349): GLib-GObject-WARNING **: 19:34:37.509: value "NULL" of type 'gchararray' is invalid or out of range for property 'path-in' of type 'gchararray'
(gimp:6349): GLib-GObject-WARNING **: 19:34:37.509: value "NULL" of type 'gchararray' is invalid or out of range for property 'path-out' of type 'gchararray'
using gegl copy
sh: 1: source: not found
sh: 1: source: not found
sh: 1: source: not found
sh: 1: source: not found
sh: 1: source: not found
sh: 1: source: not found
Fri Dec 08, 2023 3:00 am
Fri Dec 08, 2023 3:04 am
racer-x wrote:I'm using Gimp PPA, not flatpak. rembg directory is "/home/user/.local/bin/rembg". it works fine via command line as well as python plugin. It doesn't seem to work in gegl graph using your script, at least not here.
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" rembg /tmp/in.png -o /tmp/out.png " "
Fri Dec 08, 2023 6:02 am
contrast_ wrote:racer-x wrote:I'm using Gimp PPA, not flatpak. rembg directory is "/home/user/.local/bin/rembg". it works fine via command line as well as python plugin. It doesn't seem to work in gegl graph using your script, at least not here.
Try this once more and make sure it is ran inside GEGL Graph and replace "user" with your username.
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" /home/user/.local/bin/rembg /tmp/in.png -o /tmp/out.png "
Fri Dec 08, 2023 7:26 am
Fri Dec 08, 2023 6:07 pm
contrast_ wrote:The commands I posted earlier did not work because I posted REMBG -o /tmp/output.png, now I added the original in.png in front.
These should work, high confidence. I feel stupid for wasting people's time.
if REMBG is in Local Bin
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" /home/user/.local/bin/rembg /tmp/in.png -o /tmp/out.png "
If REMBG can be accessed just by typing REMBG in bash.
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" rembg /tmp/in.png -o /tmp/out.png "
I feel silly that I was going wrong advice.
~$ rembg --version
rembg, version 2.0.50
Fri Dec 08, 2023 7:13 pm
racer-x wrote:contrast_ wrote:The commands I posted earlier did not work because I posted REMBG -o /tmp/output.png, now I added the original in.png in front.
These should work, high confidence. I feel stupid for wasting people's time.
if REMBG is in Local Bin
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" /home/user/.local/bin/rembg /tmp/in.png -o /tmp/out.png "
If REMBG can be accessed just by typing REMBG in bash.
- Code:
boy:spawn path-in="/tmp/in.png" path-out="/tmp/out.png" pipeline=" rembg /tmp/in.png -o /tmp/out.png "
I feel silly that I was going wrong advice.
I tried both those scripts and got the same results. I'm beginning to think you're the only one that can make it work. Yes I only need to use REMBG in bash...
- Code:
~$ rembg --version
rembg, version 2.0.50
Using rembg in commandline or JamesH plugin work just fine. I'm done playing with this, sorry.
Fri Dec 08, 2023 7:15 pm
Sat Dec 09, 2023 1:44 am
boy:spawn path-in="input.png" path-out="output.png" pipeline=" curl -s "http://localhost:5000/api/remove?url=http://input.png" -o output.png
"