Fix Gradio compat: remove show_download_button, replace ColorPicker with Textbox 525c3fb AI Agent commited on Apr 3
V2: flood-fill BG removal, 20-concept parent/child detection, logo filter, color picker UI, hover download 05dd7d6 AI Agent commited on Apr 3
Revert to SAM 3 mask pipeline with sigmoid logits + edge-only AA upscaler, remove rembg 488f9ce AI Agent commited on Mar 31
Fix OMP_NUM_THREADS=3500m crash: sanitize env var before rembg import a387aca AI Agent commited on Mar 31
Pipeline rewrite: SAM 3 boxes + rembg background removal + 4x Lanczos upscale 32ac9f9 AI Agent commited on Mar 31
Restore sigmoid logits smooth edges + Lanczos4 upscale (the version user liked) 956b060 AI Agent commited on Mar 30
Smooth AA edges: narrow anti-aliased transition band instead of hard threshold 9573438 AI Agent commited on Mar 30
Crisp edge pipeline: separate RGB/alpha upscaling, supersampled AA threshold, stronger sharpening 9082a6b AI Agent commited on Mar 30
Show user-friendly messages when no image uploaded, model loading, or no assets found ff9d89b AI Agent commited on Mar 30
Add 4x Lanczos upscaler with unsharp masking for crisp high-res asset output ce89ae7 AI Agent commited on Mar 30
Add PDF batch processing: upload PDF, extract assets from every page, tabbed UI 405477b AI Agent commited on Mar 28
Remove logo concept, increase min area to 500, add Download All ZIP, add asset library b32ee3f AI Agent commited on Mar 28
Add Gradio auth: login required via APP_USERNAME/APP_PASSWORD env vars 650d14a AI Agent commited on Mar 28
Revert to softer edges (7x7 kernel, 2 dilation, no logit multiplier) per user preference ca1736e AI Agent commited on Mar 28
Sharper edges: 3x logit multiplier, 5x5 kernel, 1 dilation iteration 7d86e67 AI Agent commited on Mar 28
Force full 255 opacity inside binary mask, smooth alpha only at edge transition zone 6392200 AI Agent commited on Mar 28
Fix: use binary mask for area filtering, logits only for smooth alpha rendering b3a18cb AI Agent commited on Mar 28
Fix empty tensor truthiness: check numel() instead of using or chain bb99dfc AI Agent commited on Mar 28
Fix logits key: SAM 3 uses 'masks_logits' not 'mask_logits' - enables smooth alpha edges b7f3ca9 AI Agent commited on Mar 28
Use raw logits for smooth edges: bicubic upsample + sigmoid alpha instead of binary masks 7d93d9d AI Agent commited on Mar 28
Use SAM 3 raw neural mask directly - remove polygon approximation that was degrading edge quality ed601d1 AI Agent commited on Mar 28
Remove all blur: precise binary cutouts with morphological cleanup and contour smoothing only 9007b01 AI Agent commited on Mar 28
Advanced 4-stage edge refinement: morphological cleanup, contour smoothing, edge-zone feathering c0c0693 AI Agent commited on Mar 28
Smooth alpha-feathered edges, force PNG format in Gallery, remove unsupported preview param, increase crop padding 66564c2 AI Agent commited on Mar 28
Fix Gradio 6.0 API: move theme/css to launch(), remove unsupported show_download_button e66cd5c AI Agent commited on Mar 28
Premium UI: gradient title, larger gallery (scale=3), hover effects, download buttons, Inter font, orange theme 620247d AI Agent commited on Mar 28
Output actual PNG files with transparency instead of numpy arrays (which Gradio converts to WebP) c32cbba AI Agent commited on Mar 28
Add roi_align + layer_norm interceptors to fix HalfTensor/FloatTensor mismatch in geometry encoder d8802bd AI Agent commited on Mar 28
Switch to model.half() (float16) for native T4 acceleration with correct Meta checkpoint loading 273261c AI Agent commited on Mar 28
DIAGNOSTIC: Remove float32 cast, let model run in native bfloat16 with interceptors. Print param dtypes 599b438 AI Agent commited on Mar 28
Restore full 10-concept list - safety posters need icon/image/illustration, not just chart/diagram/table a760beb AI Agent commited on Mar 28
CRITICAL FIX: Pass ckpt_path to build_sam3_image_model() to prevent internal download hang without HF token c1dd13e AI Agent commited on Mar 28
CRITICAL FIX: Remove redundant checkpoint loading that was corrupting model weights. build_sam3_image_model() already loads them correctly b90ddcd AI Agent commited on Mar 28
Add comprehensive logging with flush=True, try/except, and reduce concepts to 3 for timeout safety 240b539 AI Agent commited on Mar 28
CRITICAL OPTIMIZATION: Implement aggressive gc.collect() and manual dictionary purges to prevent Linux OOM Killer RAM limits 6f9e0e7 AI Agent commited on Mar 28
Add debugging prints to determine why masks are empty, maybe model thresholds are too strict 166869f AI Agent commited on Mar 28
CRITICAL HOTFIX: Revert to 32-bit execution to prevent float16 matrix overflows (NaN), neutralizing blank extraction masks b4d7396 AI Agent commited on Mar 28
CRITICAL FIX: Bypass PyTorch AMP and intercept F.linear/F.conv2d to deterministically cast float matrices f8e0698 AI Agent commited on Mar 28
CRITICAL FIX: Patch torch.utils.checkpoint to preserve float16 autocast context inside Decoder blocks db52794 AI Agent commited on Mar 28
CRITICAL FIX: Wrap inference loop in explicit autocast context. Sam3Processor lacks native decorators 090a6da AI Agent commited on Mar 28
HOTFIX: Remove global bfloat16 alias to unbreak torch.load checkpoint parsing a9f1afc AI Agent commited on Mar 28
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 Mar 28
Intercept bfloat16 requirements globally via PyTorch module namespace aliasing 4b23049 AI Agent commited on Mar 28
Use importlib to locate and rewrite Meta SAM 3 bfloat16 requirements across PyEnv virtual environments ae0987e AI Agent commited on Mar 28
Dynamically patch SAM 3 source code on T4 boot to replace hardcoded bfloat16 demands with float16 equivalents d10f06b AI Agent commited on Mar 28
Cast model explicitly to bfloat16 on T4 to override AMP dtype mismatch 32691c0 AI Agent commited on Mar 28
Monkey-patch torch.autocast to natively support T4 Turing GPUs by intercepting bfloat16 demands a998b70 AI Agent commited on Mar 28
Protect numpy from bfloat16 errors on T4 and restrict model upcast to CPU only 2b36e91 AI Agent commited on Mar 28