What is the reason for"OSError: /usr/local/lib/python3.10/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZN2at4_ops6conv1d4callERKNS_6TensorES4_RKN3c108optionalIS2_EENS5_8ArrayRefIlEESB_SB_l" #13639
Unanswered
lantianhang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question about running stable diffusion on Google Colab and would like to ask for help from everyone.
When I run the following code, what is the reason for "OSError: /usr/local/lib/python3.10/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZN2at4_ops6conv1d4callERKNS_6TensorES4_RKN3c108optionalIS2_EENS5_8ArrayRefIlEESB_SB_l"?
Code:
#@markdown # STEP 1
#@markdown ## 安装依赖项
from IPython.display import clear_output
print('ESC[1;32mInstalling requirements...')
#%pip install --quiet blendmodes accelerate basicsr fonts font-roboto gfpgan gradio invisible-watermark numpy omegaconf opencv-contrib-python requests piexif Pillow pytorch-lightning==1.7.7 realesrgan scikit-image==0.19 timm==0.4.12 transformers==4.25.1 torch einops jsonmerge clean-fid resize-right torchdiffeq kornia lark inflection GitPython torchsde safetensors psutil rich
#%cd /content/
!git clone -q --branch main https://github.com/tse13/lite_colab
%cd /content/lite_colab
%pip install -r requirements.txt --quiet
!sed -i "[email protected](checkpoint_file)@os.path.splitext(checkpoint_file); map_location='cuda'@" /content/lite_colab/modules/sd_models.py
!sed -i '[email protected]_ui().*@ui.create_ui();shared.demo.queue(concurrency_count=999999,status_update_rate=0.1)@' /content/lite_colab/startfk.py
!sed -i "s@map_location='cpu'@map_location='cuda'@" /content/lite_colab/modules/extras.py
!cp /content/lite_colab/assets/blocks.py /usr/local/lib/python3.10/dist-packages/gradio/blocks.py
clear_output()
print('ESC[1;32mDone!')
#!python launch.py --share --theme dark --api --ckpt-dir /content/models/ --disable-safe-unpickle --enable-insecure-extension-access --opt-sdp-attention --disable-console-progressbars --no-download-sd-model
#@markdown # STEP 3
#@markdown ## 运行 StableDiffusion
!python launch.py --theme dark --xformers --share --api --disable-safe-unpickle --enable-insecure-extension-access --opt-sdp-attention --disable-console-progressbars --no-download-sd-model
Beta Was this translation helpful? Give feedback.
All reactions