This is awesome regardless the image (which are all 2048 either height or width or both) its taking average of 1.3-1.7 seconds.
Also attached image, really shouldnt have been in my batch but ended up producing the following error:
Traceback (most recent call last):
File "Z:\SteamLibrary\steamapps\common\Star Wars Battlefront II Classic\GameData\OctoTex\textures\processing\height.py", line 55, in <module>
image = pipe(
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\pipelines\controlnet\pipeline_controlnet.py", line 1117, in __call__
image = self.prepare_image(
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\pipelines\controlnet\pipeline_controlnet.py", line 790, in prepare_image
image = self.control_image_processor.preprocess(image, height=height, width=width).to(dtype=torch.float32)
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\image_processor.py", line 507, in preprocess
image = [self.resize(i, height, width, resize_mode=resize_mode) for i in image]
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\image_processor.py", line 507, in <listcomp>
image = [self.resize(i, height, width, resize_mode=resize_mode) for i in image]
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\image_processor.py", line 364, in resize
image = image.resize((width, height), resample=PIL_INTERPOLATION[self.config.resample])
File "C:\Users\NZXT\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 2222, in resize
return self._new(self.im.resize(size, resample, box))
ValueError: height and width must be > 0