mirror of
https://github.com/vladmandic/automatic
synced 2026-09-04 03:50:44 +02:00
162651cbdb
Changes based on vladmandic and Disty0 feedback: - Fix logging: use direct `from installer import log` instead of lazy _get_log() - Remove unused is_available() function - Remove defensive getattr() calls in _resolve_kernel/_resolve_linearize - Simplify _get_device_dtype() to use devices module directly - Refactor to_pil() with single Image.fromarray() call and explicit mode - Add cross-platform fallback: sharpfin only runs on CUDA, falls back to PIL/F.interpolate for other devices (CPU, MPS, OpenVINO) - Replace lambdas with functools.partial in functional.py for torch.compile safety - Add modules/sharpfin to pylint ignore-paths (vendored code)