InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Error when trying to extend and overlap an image in unified canva

Open wbecher opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

6 GB

What happened?

When I try to generate an image, overlapping a little the existing one, I got an error. In the log, the message is this:

>> using provided input image of size 512x512
>> using provided input image of size 512x512
'NoneType' object has no attribute 'copy'


Traceback (most recent call last):
  File "c:\invokeai\backend\invoke_ai_web_server.py", line 1125, in generate_images
    self.generate.prompt2image(
  File "c:\invokeai\ldm\generate.py", line 493, in prompt2image
    results = generator.generate(
  File "c:\invokeai\ldm\invoke\generator\base.py", line 61, in generate
    make_image = self.get_make_image(
  File "c:\Users\wbech\anaconda3\envs\invokeai\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "c:\invokeai\ldm\invoke\generator\inpaint.py", line 207, in get_make_image
    init_filled = self.tile_fill_missing(
  File "c:\invokeai\ldm\invoke\generator\inpaint.py", line 79, in tile_fill_missing
    tiles = self.get_tile_images(a,*tile_size).copy()
AttributeError: 'NoneType' object has no attribute 'copy'

Screenshots

image

Additional context

Only happens when my new selection square overlap the existing image. If i select a new area, not overlapping, the generation works.

Contact Details

[email protected]

wbecher avatar Dec 27 '22 12:12 wbecher