googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.18k stars 716 forks source link

No funciona. Funcionaba bien pero se venció el tiempo y compré más tiempo pero ya no funcionó. Apaarece al final: ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py) #3820

Closed Byronrabe closed 1 year ago

Byronrabe commented 1 year ago

Describe the current behavior A clear and concise explanation of what is currently happening.

Describe the expected behavior A clear and concise explanation of what you expected to happen.

What web browser you are using (Chrome, Firefox, Safari, etc.)

Additional context Link to a minimal, public, self-contained notebook that reproduces this issue.

Byronrabe commented 1 year ago

Ya no funciona para activar el SD. Funcionó bien pero se venció el tiempo y compré más tiempo pero ya no apareció. Aparece al final: ImportError: no se puede importar el nombre '_compare_version' de 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)

mayankmalik-colab commented 1 year ago

Can you please share a minimal notebook thar reproduces the issue. As per the error, It seems like you must be installing torchmetrics in your notebook. Please ensure it is compatible with the other packages. Otherwise, please share a min notebook. I am happy to have a look.

Byronrabe commented 1 year ago

Muchas gracias por responder. He gastado más de 6 unidades tratando de ingresar y no lo logro. Yo no sé qué es torchmetrics y no he instalado nada nuevo, Estaba usando la cuenta mensual pero se acabaron las unidades. Compré 100 unidades más y no funcionó más. Tampoco sé que es un cuaderno mínimo.

Byronrabe commented 1 year ago

Esto es lo que sale al final: Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple 2023-07-06 13:18:37.631960: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/stable-diffusion-webui/launch.py", line 362, in start() File "/content/stable-diffusion-webui/launch.py", line 352, in start import webui File "/content/stable-diffusion-webui/webui.py", line 15, in from modules import import_hook, errors, extra_networks, ui_extra_networks_checkpoints File "/content/stable-diffusion-webui/modules/ui_extra_networks_checkpoints.py", line 6, in from modules import shared, ui_extra_networks, sd_models File "/content/stable-diffusion-webui/modules/sd_models.py", line 17, in from modules.sd_hijack_inpainting import do_inpainting_hijack File "/content/stable-diffusion-webui/modules/sd_hijack_inpainting.py", line 7, in import ldm.models.diffusion.ddpm File "/content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/models/diffusion/ddpm.py", line 12, in import pytorch_lightning as pl File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/init.py", line 34, in from pytorch_lightning.callbacks import Callback # noqa: E402 File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/init.py", line 25, in from pytorch_lightning.callbacks.progress import ProgressBarBase, RichProgressBar, TQDMProgressBar File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress/init.py", line 22, in from pytorch_lightning.callbacks.progress.rich_progress import RichProgressBar # noqa: F401 File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/progress/rich_progress.py", line 20, in from torchmetrics.utilities.imports import _compare_version ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)

Byronrabe commented 1 year ago

Muchas gracias por responder. He gastado más de 6 unidades tratando de ingresar y no lo logro. Yo no sé qué es torchmetrics y no he instalado nada nuevo, estaba usando la cuenta mensual pero se acabaron las unidades. Compre 100 unidades más y no funcionó más. Tampoco sé que es un cuaderno mínimo.

El jue, 6 jul 2023 a las 1:21, mayankmalik-colab @.***>) escribió:

Can you please share a minimal notebook thar reproduces the issue. As per the error, It seems like you must be installing torchmetrics in your notebook. Please ensure it is compatible with the other packages. Otherwise, please share a min notebook. I am happy to have a look.

— Reply to this email directly, view it on GitHub https://github.com/googlecolab/colabtools/issues/3820#issuecomment-1623124316, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBCO72LNIWRV75FWLJBJUK3XOZRN5ANCNFSM6AAAAAAZ7UBDP4 . You are receiving this because you authored the thread.Message ID: @.***>

-- Byron Rabe

Visita mi blog: http://byronrabe.blogspot.com/

Byronrabe commented 1 year ago

ahora: fatal: destination path '/content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui' already exists and is not an empty directory. fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser' already exists and is not an empty directory. fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface' already exists and is not an empty directory. fatal: destination path '/content/stable-diffusion-webui/extensions/sd-civitai-browser' already exists and is not an empty directory.

Byronrabe commented 1 year ago

Al parecer el link que tenía ya no era válido. Conseguí el nuevo. Gracias.

EvanWiederspan commented 1 year ago

We will need a link to the notebook you are using in order to help