Skip to content

Commit

Permalink
Merge pull request #119 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: must initiate final_rawpng
  • Loading branch information
db0 authored Dec 9, 2023
2 parents 2b4f2d0 + af2d275 commit 8f875b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hordelib/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from collections.abc import Callable
from copy import deepcopy

import PIL.Image
from horde_sdk.ai_horde_api.apimodels import ImageGenerateJobPopResponse
from horde_sdk.ai_horde_api.apimodels.base import (
GenMetadataEntry,
Expand Down Expand Up @@ -827,9 +826,9 @@ def basic_inference(self, payload: dict | ImageGenerateJobPopResponse) -> list[R
if post_processing_requested is not None:
post_processed = []
for ret in return_list:
image = ret.image
single_image_faults = []
final_image: PIL.Image.Image | None = image
final_image = ret.image
final_rawpng = ret.rawpng
for post_processing in post_processing_requested:
if post_processing in KNOWN_UPSCALERS.__members__:
image_ret = self.image_upscale(
Expand Down

0 comments on commit 8f875b4

Please sign in to comment.