XaiJu
sxela
sxela

patreon


For people having numpy.dtype size changed error or RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (1, 1).

If you are having numpy.dtype size changed error on colab - just restart the env and run as usual

If you are having RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (1, 1).:
you will need to download new install.bat and run it in a new folder.

If you can't connect to your local server recently, try using an updated run.bat from WarpFusion/run.bat at main · Sxela/WarpFusion

Comments

im using google colab note book and i came across those errors when importing dependencies and defining functions: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) /tmp/ipython-input-2-1853272143.py in () 97 # import timm 98 from IPython import display ---> 99 import lpips 100 # !wget "https://download.pytorch.org/models/vgg16-397923af.pth" -O /root/.cache/torch/hub/checkpoints/vgg16-397923af.pth 101 from PIL import Image, ImageOps, ImageDraw 6 frames /usr/local/lib/python3.11/dist-packages/lpips/__init__.py in 8 # from torch.autograd import Variable 9 ---> 10 from lpips.trainer import * 11 from lpips.lpips import * 12 /usr/local/lib/python3.11/dist-packages/lpips/trainer.py in 7 from collections import OrderedDict 8 from torch.autograd import Variable ----> 9 from scipy.ndimage import zoom 10 from tqdm import tqdm 11 import lpips /usr/local/lib/python3.11/dist-packages/scipy/ndimage/__init__.py in 154 # mypy: ignore-errors 155 --> 156 from ._support_alternative_backends import * 157 158 # adjust __all__ and do not leak implementation details /usr/local/lib/python3.11/dist-packages/scipy/ndimage/_support_alternative_backends.py in 1 import functools ----> 2 from scipy._lib._array_api import ( 3 is_cupy, is_jax, scipy_namespace_for, SCIPY_ARRAY_API 4 ) 5 /usr/local/lib/python3.11/dist-packages/scipy/_lib/_array_api.py in 16 17 from scipy._lib import array_api_compat ---> 18 from scipy._lib.array_api_compat import ( 19 is_array_api_obj, 20 size as xp_size, /usr/local/lib/python3.11/dist-packages/scipy/_lib/array_api_compat/numpy/__init__.py in ----> 1 from numpy import * # noqa: F403 2 3 # from numpy import * doesn't overwrite these builtin names 4 from numpy import abs, max, min, round # noqa: F401 5 /usr/local/lib/python3.11/dist-packages/numpy/__init__.py in __getattr__(attr) 374 _sanity_check() 375 del _sanity_check --> 376 377 def _mac_os_check(): 378 """ ModuleNotFoundError: No module named 'numpy.strings' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. i tried to fix it with chatGPT but its only getting me into an endless loops... i'm a beginner in SD tho was trying to follow up with some courses plus watching youtube with no result. thank you

Malak Atlantic


More Creators