supli6669 commited on
Commit
b00a703
·
1 Parent(s): 1bc0fd7

docs: record Task 38 Phase 7 & GPU speedup in handover.md

Browse files
Files changed (1) hide show
  1. handover.md +29 -0
handover.md CHANGED
@@ -1630,6 +1630,35 @@ Delivered 4 aesthetic breakthroughs to transform portrait outputs into magazine-
1630
  - [NEW] [tools/test_glamour_suite.py](file:///d:/.gemini-scratch/custom-ai-enhancer/tools/test_glamour_suite.py) (Unit test suite for glamour features)
1631
  - [MODIFY] [tools/test_all.py](file:///d:/.gemini-scratch/custom-ai-enhancer/tools/test_all.py) (Integrated glamour test harness into master verification)
1632
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1633
 
1634
 
1635
 
 
1630
  - [NEW] [tools/test_glamour_suite.py](file:///d:/.gemini-scratch/custom-ai-enhancer/tools/test_glamour_suite.py) (Unit test suite for glamour features)
1631
  - [MODIFY] [tools/test_all.py](file:///d:/.gemini-scratch/custom-ai-enhancer/tools/test_all.py) (Integrated glamour test harness into master verification)
1632
 
1633
+ ## Task 38: Phase 7 Dynamic Engine Selector & GPU Training Optimization
1634
+
1635
+ **Date:** 2026-09-02
1636
+ **Status:** ✅ Completed & Verified
1637
+
1638
+ ### Overview
1639
+ 1. **Dynamic AI Model Engine Selection**:
1640
+ - Added `get_available_models()` in `pipeline.py` and connected sidebar selection in `app.py`.
1641
+ - Enabled zero-restart dynamic switching between `⚡ CodeFormer v2.0 INT8 (Fast CPU)`, `🔥 CodeFormer v3.0 (ArcFace Fine-Tuned)`, and `💎 CodeFormer v1.0 FP32 Baseline`.
1642
+ 2. **1-Click Windows Desktop Launchers**:
1643
+ - Created `Run_AI_Enhancer.bat` for instant app startup.
1644
+ - Created `start_silent.vbs` for background execution without command prompt window flicker.
1645
+ 3. **GPU Training Bottleneck Resolution (Kaggle Version 7)**:
1646
+ - Root cause identified: `num_gpu: 0` in YAML forced CPU fallback on cloud GPU instances.
1647
+ - Fixed `num_gpu: 1`, `batch_size: 4`, `num_worker_per_gpu: 4`, `prefetch_mode: cuda`, and `total_iter: 2000`.
1648
+ - Successfully deployed Version 7 autonomously on Kaggle GPU.
1649
+
1650
+ ### Code Changes
1651
+ - [MODIFY] [pipeline.py](file:///d:/.gemini-scratch/custom-ai-enhancer/pipeline.py) (Added `get_available_models()` and dynamic session resolution in `process_image`)
1652
+ - [MODIFY] [app.py](file:///d:/.gemini-scratch/custom-ai-enhancer/app.py) (Added AI Model Engine selector dropdown in sidebar)
1653
+ - [NEW] [Run_AI_Enhancer.bat](file:///d:/.gemini-scratch/custom-ai-enhancer/Run_AI_Enhancer.bat) (1-click batch launcher)
1654
+ - [NEW] [start_silent.vbs](file:///d:/.gemini-scratch/custom-ai-enhancer/start_silent.vbs) (Silent VBS launcher)
1655
+ - [MODIFY] [models/CodeFormer/options/CodeFormer_stage3_custom.yml](file:///d:/.gemini-scratch/custom-ai-enhancer/models/CodeFormer/options/CodeFormer_stage3_custom.yml) (num_gpu=1, batch_size=4, prefetch_mode=cuda, workers=4, total_iter=2000)
1656
+ - [MODIFY] [train_custom.py](file:///d:/.gemini-scratch/custom-ai-enhancer/train_custom.py) (Unblocked CUDA environment settings)
1657
+
1658
+ ### Verification
1659
+ - Master test suite `tools/test_all.py` passed 7/7 suites with exit code 0.
1660
+ - Kaggle Version 7 kernel deployed and confirmed RUNNING.
1661
+
1662
 
1663
 
1664