AUTOMATIC1111/stable-diffusion-webui-pixelization

2023.3.3 ModuleNotFoundError: No module named 'pixelization'

kenshin20080-lab opened this issue · 4 comments

2023.3.3 12:00

Error loading script: postprocessing_pixelization.py
Traceback (most recent call last):
File "/kaggle/working/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/kaggle/working/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/kaggle/working/stable-diffusion-webui/extensions/pixelization/scripts/postprocessing_pixelization.py", line 13, in
from pixelization.models.networks import define_G
ModuleNotFoundError: No module named 'pixelization'

clone https://github.com/WuZongWei6/Pixelization.git to stable-diffusion-webui/extensions/stable-diffusion-webui-pixelization/pixelization will solve the problem

将https://github.com/WuZongWei6/Pixelization.git克隆到 stable-diffusion-webui/extensions/stable-diffusion-webui-pixelization/pixelization 将解决问题

并没有解决,老哥还有什么办法吗

Here's how I fix it, hope it helps:
This problem should be led by proxy address.
So to fix it you need to check out if your proxy address still works, open the webui cmd console and type "git pull"
If it works it should update your webui and says "Already up to date"
If it doesn't, the address might be wrong and you need to go to your webui launcher and change your proxy settings.

This command checks whether you are using a proxy: git config --global http.proxy
This command cancels the proxy you currently using: git config --global --unset http.proxy

The proxy address can be found/setup in the windows settings menu.

This seemed to be caused by the path importing steps.
Please locate to the models\__init__.py file and edit the line 22, from
from models.base_model import BaseModel
to
from .base_model import BaseModel
might solve this problem on Windows 11.