krita-ai-diffusion icon indicating copy to clipboard operation
krita-ai-diffusion copied to clipboard

error in the finish of image generation

Open 1MB4R0SS4 opened this issue 5 months ago • 2 comments

STEPS TO REPRODUCE generate an image with krita

OBSERVED RESULT even tho it finishes in the terminal, in krita it couses error Képernyőkép 2024-09-14 124001

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 = <built-in method dir of IndexError object> doc = 'Sequence index out of range.' eq = <method-wrapper 'eq' of IndexError object> format = <built-in method format of IndexError object> 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 = <built-in method reduce of IndexError object> reduce_ex = <built-in method reduce_ex of IndexError object> repr = <method-wrapper 'repr' of IndexError object> setattr = <method-wrapper 'setattr' of IndexError object> setstate = <built-in method setstate of IndexError object> sizeof = <built-in method sizeof of IndexError object> str = <method-wrapper 'str' of IndexError object> subclasshook = suppress_context = False traceback = args = ('list index out of range',) with_traceback = <built-in method with_traceback of IndexError object>

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

1MB4R0SS4 avatar Sep 14 '24 11:09 1MB4R0SS4