•
SAM2 fix — switched to SAM2ImagePredictor with a generous bbox (5% margin) instead of points. Bbox-based SAM2 captures the full subject including hair, glasses, and sandals since it doesn't clip with negative-point interference
•
Non-destructive remove-bg — writes <stem>.nobg.png sidecar, original file untouched; registers sidecar in DB under same group
•
New /images/{filename}/duplicate endpoint — copies file with a fresh timestamp name, same group
car.html:
•
sam2RemoveBg() — switches viewer to sidecar URL, auto-enables checkerboard; original file never modified
•
restoreBg() — purely client-side, reverts viewer to original URL (no API call, no file change)
•
Gallery cycling frozen while studio is open (guard in startGroupCycle interval callback)
•
Main page scrollbar hidden when studio opens (body.overflow = hidden), restored on close
•
Delete — two-step inline confirmation: first click arms the button red ("Confirm delete"), second click deletes; stays in studio and navigates to the next image; only closes if it was the last image in the group
•
Duplicate button in Info tab — copies image into same group and navigates to the duplicate immediately
29 lines
1.5 KiB
JSON
29 lines
1.5 KiB
JSON
{
|
|
"api_url": "http://127.0.0.1:8500/edit",
|
|
"prompt": "high quality. realistic. detailed, female nude. realistic, high quality. realistic. detailed. female nude. realistic",
|
|
"base_prompts": [
|
|
"Head-on full-nude-body three-quarter female portrait, realistic, transparent background",
|
|
"Head-on straight-on full-nude-body female portrait, realistic, transparent background",
|
|
"Head-on straight-on full-body female portrait, realistic, no background",
|
|
"high quality, full-nude-body, female, masterpiece, realistic, photo, looking at viewer",
|
|
"high quality, full-nude-body, female, masterpiece, realistic, photo, detailed skin, professional lighting, transparent background",
|
|
"high quality, full-nude-body, female, masterpiece, realistic, photo, cinematic lighting, dramatic shadows, sharp focus, transparent background"
|
|
],
|
|
"seed": -1,
|
|
"max_area": 655360,
|
|
"margin": 10,
|
|
"top_margin": 20,
|
|
"headroom": 0.05,
|
|
"poll_interval": 2,
|
|
"stage_dir": "/mnt/zim/tour-comfy/stage",
|
|
"output_dir": "/mnt/zim/tour-comfy/output",
|
|
"failed_dir": "/mnt/zim/tour-comfy/failed",
|
|
"processed_file": "./tour-comfy/processed.json",
|
|
"log_file": "./tour-comfy/watcher.log",
|
|
"wireframe_dir": "/mnt/zim/tour-comfy/wireframe",
|
|
"faceswap_model": "~/.insightface/models/inswapper_128.onnx",
|
|
"facefusion_dir": "~/facefusion",
|
|
"facefusion_venv": "~/facefusion-venv",
|
|
"sam2_checkpoint": "~/.sam/sam2.1_hiera_base_plus.pt",
|
|
"sam2_config": "configs/sam2.1/sam2.1_hiera_b+.yaml"
|
|
} |