Commit History

Fix Gradio compat: remove show_download_button, replace ColorPicker with Textbox
525c3fb

AI Agent commited on

V2: flood-fill BG removal, 20-concept parent/child detection, logo filter, color picker UI, hover download
05dd7d6

AI Agent commited on

Revert to SAM 3 mask pipeline with sigmoid logits + edge-only AA upscaler, remove rembg
488f9ce

AI Agent commited on

Fix OMP_NUM_THREADS=3500m crash: sanitize env var before rembg import
a387aca

AI Agent commited on

Add onnxruntime dependency for rembg
c75d07a

AI Agent commited on

Pipeline rewrite: SAM 3 boxes + rembg background removal + 4x Lanczos upscale
32ac9f9

AI Agent commited on

Restore sigmoid logits smooth edges + Lanczos4 upscale (the version user liked)
956b060

AI Agent commited on

Smooth AA edges: narrow anti-aliased transition band instead of hard threshold
9573438

AI Agent commited on

Crisp edge pipeline: separate RGB/alpha upscaling, supersampled AA threshold, stronger sharpening
9082a6b

AI Agent commited on

Show user-friendly messages when no image uploaded, model loading, or no assets found
ff9d89b

AI Agent commited on

Add 4x Lanczos upscaler with unsharp masking for crisp high-res asset output
ce89ae7

AI Agent commited on

Add PDF batch processing: upload PDF, extract assets from every page, tabbed UI
405477b

AI Agent commited on

Remove logo concept, increase min area to 500, add Download All ZIP, add asset library
b32ee3f

AI Agent commited on

Add Gradio auth: login required via APP_USERNAME/APP_PASSWORD env vars
650d14a

AI Agent commited on

Revert to softer edges (7x7 kernel, 2 dilation, no logit multiplier) per user preference
ca1736e

AI Agent commited on

Sharper edges: 3x logit multiplier, 5x5 kernel, 1 dilation iteration
7d86e67

AI Agent commited on

Force full 255 opacity inside binary mask, smooth alpha only at edge transition zone
6392200

AI Agent commited on

Fix: use binary mask for area filtering, logits only for smooth alpha rendering
b3a18cb

AI Agent commited on

Fix empty tensor truthiness: check numel() instead of using or chain
bb99dfc

AI Agent commited on

Fix logits key: SAM 3 uses 'masks_logits' not 'mask_logits' - enables smooth alpha edges
b7f3ca9

AI Agent commited on

Use raw logits for smooth edges: bicubic upsample + sigmoid alpha instead of binary masks
7d93d9d

AI Agent commited on

Use SAM 3 raw neural mask directly - remove polygon approximation that was degrading edge quality
ed601d1

AI Agent commited on

Remove all blur: precise binary cutouts with morphological cleanup and contour smoothing only
9007b01

AI Agent commited on

Advanced 4-stage edge refinement: morphological cleanup, contour smoothing, edge-zone feathering
c0c0693

AI Agent commited on

Smooth alpha-feathered edges, force PNG format in Gallery, remove unsupported preview param, increase crop padding
66564c2

AI Agent commited on

Fix Gradio 6.0 API: move theme/css to launch(), remove unsupported show_download_button
e66cd5c

AI Agent commited on

Premium UI: gradient title, larger gallery (scale=3), hover effects, download buttons, Inter font, orange theme
620247d

AI Agent commited on

Output actual PNG files with transparency instead of numpy arrays (which Gradio converts to WebP)
c32cbba

AI Agent commited on

Fix roi_align: handle tuple from .unbind() not just list
77f13e1

AI Agent commited on

Add roi_align + layer_norm interceptors to fix HalfTensor/FloatTensor mismatch in geometry encoder
d8802bd

AI Agent commited on

Switch to model.half() (float16) for native T4 acceleration with correct Meta checkpoint loading
273261c

AI Agent commited on

DIAGNOSTIC: Remove float32 cast, let model run in native bfloat16 with interceptors. Print param dtypes
599b438

AI Agent commited on

Restore full 10-concept list - safety posters need icon/image/illustration, not just chart/diagram/table
a760beb

AI Agent commited on

CRITICAL FIX: Pass ckpt_path to build_sam3_image_model() to prevent internal download hang without HF token
c1dd13e

AI Agent commited on

CRITICAL FIX: Remove redundant checkpoint loading that was corrupting model weights. build_sam3_image_model() already loads them correctly
b90ddcd

AI Agent commited on

Add comprehensive logging with flush=True, try/except, and reduce concepts to 3 for timeout safety
240b539

AI Agent commited on

CRITICAL OPTIMIZATION: Implement aggressive gc.collect() and manual dictionary purges to prevent Linux OOM Killer RAM limits
6f9e0e7

AI Agent commited on

Add debugging prints to determine why masks are empty, maybe model thresholds are too strict
166869f

AI Agent commited on

CRITICAL HOTFIX: Revert to 32-bit execution to prevent float16 matrix overflows (NaN), neutralizing blank extraction masks
b4d7396

AI Agent commited on

CRITICAL FIX: Bypass PyTorch AMP and intercept F.linear/F.conv2d to deterministically cast float matrices
f8e0698

AI Agent commited on

CRITICAL FIX: Patch torch.utils.checkpoint to preserve float16 autocast context inside Decoder blocks
db52794

AI Agent commited on

CRITICAL FIX: Wrap inference loop in explicit autocast context. Sam3Processor lacks native decorators
090a6da

AI Agent commited on

HOTFIX: Remove global bfloat16 alias to unbreak torch.load checkpoint parsing
a9f1afc

AI Agent commited on

CRITICAL FIX: Remove is_bf16_supported gate - T4 reports True but crashes on bf16 ops. Patches now unconditional + model cast to fp16
cb7cf0f

AI Agent commited on

Intercept bfloat16 requirements globally via PyTorch module namespace aliasing
4b23049

AI Agent commited on

Use importlib to locate and rewrite Meta SAM 3 bfloat16 requirements across PyEnv virtual environments
ae0987e

AI Agent commited on

Dynamically patch SAM 3 source code on T4 boot to replace hardcoded bfloat16 demands with float16 equivalents
d10f06b

AI Agent commited on

Cast model explicitly to bfloat16 on T4 to override AMP dtype mismatch
32691c0

AI Agent commited on

Monkey-patch torch.autocast to natively support T4 Turing GPUs by intercepting bfloat16 demands
a998b70

AI Agent commited on

Protect numpy from bfloat16 errors on T4 and restrict model upcast to CPU only
2b36e91

AI Agent commited on