Merge pull request #711 from jsuelwald/patch-1

Update renderer.py for better readable console output
This commit is contained in:
cmdr2 2022-12-27 21:11:44 +05:30 committed by GitHub
commit 9995ffb5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import queue
import time
import json
import pprint
from easydiffusion import device_manager
from easydiffusion.types import TaskData, Response, Image as ResponseImage, UserInitiatedStop, GenerateImageRequest
@ -28,8 +29,8 @@ def init(device):
def make_images(req: GenerateImageRequest, task_data: TaskData, data_queue: queue.Queue, task_temp_images: list, step_callback):
context.stop_processing = False
log.info(f'request: {get_printable_request(req)}')
log.info(f'task data: {task_data.dict()}')
log.info(f'request: {pprint.pformat(get_printable_request(req),width=1)}')
log.info(f'task data: {pprint.pformat(task_data.dict(),width=1)}')
images = make_images_internal(req, task_data, data_queue, task_temp_images, step_callback)