BinitDOX / Manga-Colorizer

Bring mangas to life!
MIT License
14 stars 3 forks source link

Print a message for images that cannot be colored instead of the whole chapter failing #7

Closed vatavian closed 3 months ago

vatavian commented 3 months ago

try/except around call to colorize_single_image in colorize_images in inference.py

Error messages like "image file is truncated (42 bytes not processed)" were causing the whole batch image process to fail. After this change, the batch process completes and is able to serve the successfully colorized images. A 404 error occurs when a colored image is requested that could not be generated, but all good images are shown.