GoogleCloudPlatform/stable-diffusion-on-gcp

Stable-Diffusion-UI-GKE After building the image, docker run -it images reports an error

Opened this issue · 0 comments

I don't know what to add in the build process to avoid errors. Please give me some advice.

Traceback (most recent call last): File "/stable-diffusion-webui/webui.py", line 13, in
initialize.imports()
File "/stable-diffusion-webui/modules/initialize.py", line 16, in imports
import pytorch_lightning # noqa: F401
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/init.py", line 35, in
from pytorch_lightning.callbacks import Callback # noqa: E402
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/init.py", line 14, in
from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in
from pytorch_lightning.callbacks.callback import Callback
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/utilities/types.py", line 27, in
from torchmetrics import Metric
File "/usr/local/lib/python3.10/dist-packages/torchmetrics/init.py", line 26, in
from torchmetrics import functional # noqa: E402
File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/init.py", line 122, in
from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score
File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/text/init.py", line 17, in
from torchmetrics.functional.text.chrf import chrf_score
File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/text/chrf.py", line 44, in
_EPS_SMOOTHING = tensor(1e-16)
/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/text/chrf.py:44: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
_EPS_SMOOTHING = tensor(1e-16)
Traceback (most recent call last):
File "/stable-diffusion-webui/webui.py", line 13, in
initialize.imports()
File "/stable-diffusion-webui/modules/initialize.py", line 21, in imports
import gradio # noqa: F401
File "/usr/local/lib/python3.10/dist-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/usr/local/lib/python3.10/dist-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/usr/local/lib/python3.10/dist-packages/gradio/components/annotated_image.py", line 12, in
from gradio import utils
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 353, in
class AsyncRequest:
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1397, in init
self._transport = self._init_transport(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 275, in init
self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.init() got an unexpected keyword argument 'socket_options'