carson-katri / dream-textures

Stable Diffusion built-in to Blender
GNU General Public License v3.0
7.77k stars 415 forks source link

fails when I set step preview to accurate: 'Generator' object has no attribute 'numpy_to_pil' #760

Closed drewp closed 5 months ago

drewp commented 9 months ago

Description

Exception: Traceback (most recent call last): File "/home/drewp/.config/blender/4.0/scripts/addons/dream-textures/generator_process/actor.py", line 165, in _receive for res in iter(response): File "/home/drewp/.config/blender/4.0/scripts/addons/dream-textures/generator_process/actions/depth_to_image.py", line 376, in depth_to_image result = pipe( File "/home/drewp/own/config/blender/4.0/scripts/addons/dream-textures/.python_dependencies/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/home/drewp/.config/blender/4.0/scripts/addons/dream-textures/generator_process/actions/depth_to_image.py", line 301, in call callback(i, t, latents) File "/home/drewp/.config/blender/4.0/scripts/addons/dream-textures/generator_process/actions/depth_to_image.py", line 374, in callback future.add_response(ImageGenerationResult.step_preview(self, step_preview_mode, width, height, latents, generator, step)) File "/home/drewp/.config/blender/4.0/scripts/addons/dream-textures/generator_process/models/image_generation_result.py", line 41, in step_preview [np.asarray(ImageOps.flip(pipe.numpy_to_pil(pipe.decode_latents(latents[-1:]))[0]).convert('RGBA'), AttributeError: 'Generator' object has no attribute 'numpy_to_pil'

Steps to Reproduce

step preview: fast - ok step preview: accurate - breaks

Expected Behavior

no exception

Addon Version

Other (Built from source)

GPU

NVIDIA

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.