mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-02 05:04:38 +01:00
Update renderer.py for better readable console output
This commit is contained in:
parent
11730dcbe4
commit
6f60e88ca6
@ -1,6 +1,7 @@
|
|||||||
import queue
|
import queue
|
||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
|
import pprint
|
||||||
|
|
||||||
from easydiffusion import device_manager
|
from easydiffusion import device_manager
|
||||||
from easydiffusion.types import TaskData, Response, Image as ResponseImage, UserInitiatedStop, GenerateImageRequest
|
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):
|
def make_images(req: GenerateImageRequest, task_data: TaskData, data_queue: queue.Queue, task_temp_images: list, step_callback):
|
||||||
context.stop_processing = False
|
context.stop_processing = False
|
||||||
log.info(f'request: {get_printable_request(req)}')
|
log.info(f'request: {pprint.pformat(get_printable_request(req))}')
|
||||||
log.info(f'task data: {task_data.dict()}')
|
log.info(f'task data: {pprint.pformat(task_data.dict())}')
|
||||||
|
|
||||||
images = make_images_internal(req, task_data, data_queue, task_temp_images, step_callback)
|
images = make_images_internal(req, task_data, data_queue, task_temp_images, step_callback)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user