Skip to content

fix: updated typo#6

Open
TunahanB wants to merge 1 commit into
sudoRicheek:masterfrom
TunahanB:quick-fix
Open

fix: updated typo#6
TunahanB wants to merge 1 commit into
sudoRicheek:masterfrom
TunahanB:quick-fix

Conversation

@TunahanB

@TunahanB TunahanB commented Jul 8, 2026

Copy link
Copy Markdown

Hardened an image super-resolution GUI (SRGAN/WDSR) against silent failures:

  • GPU crash on CPU-only machines: Guarded with device check
  • Dead None-check after dereference: Moved guard before np.array()/cvtColor
  • float32 JPEG corruption: OpenCV misinterprets float range, swapped to uint8
  • Grayscale/RGBA image crashes: Added .convert("RGB")
  • Cancel-save writing phantom .jpg: Added empty-path guard
  • Private TF API (tensorflow.python.keras): Migrated to public tensorflow.keras
  • Missing weight files: Explicit isfile checks with actionable errors instead of opaque tracebacks
  • Hardcoded paths: Auto-create processimage/ directories before writes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant