[LAB 10 · 从 RGB 图像训练小型检测器](/course/notebooks/a14237bfa9dd413d959ab4e458e11f42.html) # 选读热身:四维分类的参数更新 · 实现代码 [独立阅读](/course/notebook-blocks/359eb6716e0e4a48b9c8477fcd25be5b.html) 主线阅读与优先实验 RGB图像、单特征层锚框检测器、分类/位置损失、NMS、独立检测评价 展开完整实现代码 ``` import os, tempfile from pathlib import Path # Isolated ephemeral workspace supports detached runs with readonly project storage. SPATIAL_RUN_DIR = Path(tempfile.mkdtemp(prefix='lecture03-')) os.chdir(SPATIAL_RUN_DIR) print('Ephemeral experiment directory:', SPATIAL_RUN_DIR) ```