-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed' #11458
Comments
Tried something else, as well.
In both the files, just change It worked for me. Might work for you as well. |
@RaannaKasturi |
Try downgrading In colab, on the left sidebar, there's a folder 📁 icon, from that you can access the files from there in the content folder Try reinstalling the whole thing again. It sorted out when I tried it today. |
thank you. your solution is working |
@RaannaKasturi it's working now. thank you:) |
You're welcome:) 👍 💯 @cerseinusantara & @Costco9836478q9 |
The existing imports results in this error: ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed' This is documented in AUTOMATIC1111#11458 but no fix was made to the repo itself. I'm not sure it's a safe change but it never hurts to ask.
This is still a problem in the AMD Docker version / instructions. Solution by @RaannaKasturi worked. |
You are the KING! It worked! |
It's working for me. |
Fixed rank_zero_only reference that moved AUTOMATIC1111/stable-diffusion-webui#11458
Thanks! |
Is there an existing issue for this?
What happened?
Launching Web UI with arguments: --share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue
2023-06-27 13:53:22.297173: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-06-27 13:53:23.287285: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/microsoftexcel/launch.py:38 in │
│ │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ ❱ 38 │ main() │
│ 39 │
│ │
│ /content/microsoftexcel/launch.py:34 in main │
│ │
│ 31 │ if args.test_server: │
│ 32 │ │ configure_for_tests() │
│ 33 │ │
│ ❱ 34 │ start() │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ │
│ /content/microsoftexcel/modules/launch_utils.py:340 in start │
│ │
│ 337 │
│ 338 def start(): │
│ 339 │ print(f"Launching {'API server' if '--nowebui' in sys.argv else 'W │
│ ❱ 340 │ import webui │
│ 341 │ if '--nowebui' in sys.argv: │
│ 342 │ │ webui.api_only() │
│ 343 │ else: │
│ │
│ /content/microsoftexcel/webui.py:42 in │
│ │
│ 39 startup_timer.record("import ldm") │
│ 40 │
│ 41 from modules import extra_networks │
│ ❱ 42 from modules.call_queue import wrap_gradio_gpu_call, wrap_queued_call, │
│ 43 │
│ 44 # Truncate version number of nightly/local build of PyTorch to not cau │
│ 45 if ".dev" in torch.version or "+git" in torch.version: │
│ │
│ /content/microsoftexcel/modules/call_queue.py:5 in │
│ │
│ 2 import threading │
│ 3 import time │
│ 4 │
│ ❱ 5 from modules import shared, progress, errors │
│ 6 │
│ 7 queue_lock = threading.Lock() │
│ 8 │
│ │
│ /content/microsoftexcel/modules/shared.py:18 in │
│ │
│ 15 import modules.devices as devices │
│ 16 from modules import localization, script_loading, errors, ui_component │
│ 17 from modules.paths_internal import models_path, script_path, data_path │
│ ❱ 18 from ldm.models.diffusion.ddpm import LatentDiffusion │
│ 19 from typing import Optional │
│ 20 │
│ 21 demo = None │
│ │
│ /content/microsoftexcel/repositories/stable-diffusion-stability-ai/ldm/model │
│ s/diffusion/ddpm.py:20 in │
│ │
│ 17 import itertools │
│ 18 from tqdm import tqdm │
│ 19 from torchvision.utils import make_grid │
│ ❱ 20 from pytorch_lightning.utilities.distributed import rank_zero_only │
│ 21 from omegaconf import ListConfig │
│ 22 │
│ 23 from ldm.util import log_txt_as_img, exists, default, ismap, isimage, │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed'
Steps to reproduce the problem
What should have happened?
no error
Version or Commit where the problem happens
1.4.0
What Python version are you running on ?
None
What platforms do you use to access the UI ?
Other/Cloud
What device are you running WebUI on?
No response
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
sd-webui-tunnels
controlnet
openpose-editor
posex
a1111-sd-webui-tagcomplete
supermerger
ultimate-upscale-for-automatic1111
a111 locon extension
images browser
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: