You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use 512 depth (2.0 model I get the following error:
stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\midas\midas\transforms.py", line 213, in call
sample["image"] = cv2.resize(
^^^^^^^^^^^
cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4030: error: (-215:Assertion failed) func != 0 in function 'cv::hal::resize'
If I modify the transforms.py(repositories/stable-diffusion-stability-ai/ldm/modules/midas/midas/transforms.py) to
“image_data = sample["image"]
image_data = image_data.astype(np.float32)"
it can be used. However, after this modification, the model will overfit even if the noise or CFG is modified.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I use 512 depth (2.0 model I get the following error:
stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\midas\midas\transforms.py", line 213, in call
sample["image"] = cv2.resize(
^^^^^^^^^^^
cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4030: error: (-215:Assertion failed) func != 0 in function 'cv::hal::resize'
If I modify the transforms.py(repositories/stable-diffusion-stability-ai/ldm/modules/midas/midas/transforms.py) to
“image_data = sample["image"]
image_data = image_data.astype(np.float32)"
it can be used. However, after this modification, the model will overfit even if the noise or CFG is modified.
Beta Was this translation helpful? Give feedback.
All reactions