-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in the finish of image generation #1182
Comments
This happens only if execution is cached? Ie. trying to generate again with same parameters and same seed. It kinda looks like that from the console log, the last prompt didn't produce an image because nothing changed. I wasn't able to reproduce it though, even with fixed seed / cached prompt. Which version of the plugin are you using? |
Version 1.24.0 with previous versions, I had similar problems. I would try to generate an image, and although the terminal showed it was done, nothing appeared in krita. I had to attempt generating the image several times to make it work, but there were no error messages about it. now, sometimes an error message appears, and I’m unable to regenerate any images later on, so I have to reload krita to make it work again. |
The "no image" case is handled now and there's some more error reporting for spurious connection issues. |
STEPS TO REPRODUCE
generate an image with krita
OBSERVED RESULT
even tho it finishes in the terminal, in krita it couses error
EXPECTED RESULT
it generates the image
SOFTWARE/OS VERSIONS
Windows: 11 Pro, 23H2
ADDITIONAL INFORMATION
IndexError
Python 3.10.7: C:\Program Files\Krita (x64)\bin\krita.exe
Sat Sep 14 12:30:14 2024
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\model.py in update_preview(self=<ai_diffusion.model.Model object>)
444 def update_preview(self):
445 if selection := self.jobs.selection:
446 self.show_preview(selection.job, selection.image)
447 else:
448 self.hide_preview()
self = <ai_diffusion.model.Model object>
self.show_preview = <bound method Model.show_preview of <ai_diffusion.model.Model object>>
selection = Item(job='52675a1a-f576-4466-8e6c-97508e80b7a7', image=0)
selection.job = '52675a1a-f576-4466-8e6c-97508e80b7a7'
selection.image = 0
C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\model.py in show_preview(self=<ai_diffusion.model.Model object>, job_id='52675a1a-f576-4466-8e6c-97508e80b7a7', index=0, name_prefix='Preview')
460 else:
461 self._layer = self.layers.create(
462 name, job.results[index], job.params.bounds, make_active=False
463 )
464 self._layer.is_locked = True
name = '[Preview] taylor swift on stage at a concert taking a selfie, colors: blue, orange, ...'
job = <ai_diffusion.jobs.Job object>
job.results = <ai_diffusion.image.ImageCollection object>
index = 0
job.params = JobParams(bounds=Bounds(x=0, y=0, width=1024, he...has_mask=False, frame=(0, 0, 0), animation_id='')
job.params.bounds = Bounds(x=0, y=0, width=1024, height=1024)
make_active undefined
C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\image.py in getitem(self=<ai_diffusion.image.ImageCollection object>, i=0)
663
664 def getitem(self, i: int):
665 return self._items[i]
666
667 def iter(self):
self = <ai_diffusion.image.ImageCollection object>
self._items = []
i = 0
IndexError: list index out of range
cause = None
class = <class 'IndexError'>
context = None
delattr = <method-wrapper 'delattr' of IndexError object>
dict = {}
dir =
doc = 'Sequence index out of range.'
eq = <method-wrapper 'eq' of IndexError object>
format =
ge = <method-wrapper 'ge' of IndexError object>
getattribute = <method-wrapper 'getattribute' of IndexError object>
gt = <method-wrapper 'gt' of IndexError object>
hash = <method-wrapper 'hash' of IndexError object>
init = <method-wrapper 'init' of IndexError object>
init_subclass =
le = <method-wrapper 'le' of IndexError object>
lt = <method-wrapper 'lt' of IndexError object>
ne = <method-wrapper 'ne' of IndexError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper 'repr' of IndexError object>
setattr = <method-wrapper 'setattr' of IndexError object>
setstate =
sizeof =
str = <method-wrapper 'str' of IndexError object>
subclasshook =
suppress_context = False
traceback =
args = ('list index out of range',)
with_traceback =
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\model.py", line 446, in update_preview
self.show_preview(selection.job, selection.image)
File "C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\model.py", line 462, in show_preview
name, job.results[index], job.params.bounds, make_active=False
File "C:\Users\baros\AppData\Roaming\krita\pykrita\ai_diffusion\image.py", line 665, in getitem
return self._items[i]
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: