403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/3951573/root/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951573/root/tmp/smi-cut.py
import sys
from rembg import remove, new_session
from PIL import Image

src = "/var/www/safemyident.de/web/img/header-safe-my-ident.png"
img = Image.open(src).convert("RGBA")

for model in ["u2net", "u2net_human_seg", "isnet-general-use"]:
    try:
        sess = new_session(model)
        out = remove(img, session=sess,
                     alpha_matting=True,
                     alpha_matting_foreground_threshold=240,
                     alpha_matting_background_threshold=15,
                     alpha_matting_erode_size=8)
        dst = f"/tmp/smi-shot/person-{model}.png"
        out.save(dst)
        print(f"OK {model} -> {dst}")
    except Exception as e:
        print(f"FAIL {model}: {e}")

Youez - 2016 - github.com/yon3zu
LinuXploit