- Implemented a preview tool for rectifying images with interactive aspect controls in `preview.py`. - Added tests for depth metadata loading to ensure consistent schema usage in `test_depth_metadata.py`. - Developed comprehensive tests for cutout calibration processes in `test_cutout_calibration.py`, including stability checks and depth calibration. - Created tests for frame compositing operations in `test_frame_compositing.py`, ensuring correct handling of depth and transparency. - Introduced material slot inheritance functionality in `material_slots.py` to manage geometry material assignments. - Built shared shader nodes for material processing in `shader.py`, including roughness and bump mapping setups.
16 lines
691 B
Markdown
16 lines
691 B
Markdown
# Upscale
|
||
|
||
`operators/upscale.py` 从 Image Empty 或当前 Shader Image Texture 生成 2× 结果。普通媒体支持单图、视频和序列帧。
|
||
|
||
```mermaid
|
||
flowchart TD
|
||
A[检查源图尺寸并冻结模型设置] --> B[准备媒体输入]
|
||
B --> C[upscale-image 逐帧处理]
|
||
C --> D[分块执行 4× RGB 推理]
|
||
D --> E[统一缩放为源图 2×]
|
||
E --> F[原 Alpha 独立 Lanczos 缩放]
|
||
F --> G[ImageEditTarget 应用结果并提交 Undo]
|
||
```
|
||
|
||
`server/models/upscale.py` 处理输入上限和最终尺寸,`onnx_upscale.py` 执行 Real-ESRGAN 与 HAT 模型。ModelManager 管理 Session;Provider 资源错误会释放当前 Session 并返回处理建议。
|