Skip to content
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

Importing from timm.models.layers is deprecated/resume_download is deprecated #16600

Open
6 tasks
zd391 opened this issue Oct 28, 2024 · 6 comments
Open
6 tasks
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@zd391
Copy link

zd391 commented Oct 28, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Importing from timm.models.layers is deprecated,
resume_download is deprecated,

Steps to reproduce the problem

D:\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
D:\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:797: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.

What should have happened?

How should I import (resume_download/timm.models.layers) or ignore the warning?

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

"Platform": "Windows-10-10.0.19045-SP0",
"Python": "3.10.11",
"Version": "v1.10.1",

Console logs

(venv) PS D:\stable-diffusion-webui> .\webui-user.bat
venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: --xformers
D:\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
Loading weights [6ce0161689] from D:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: D:\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
D:\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:797: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Startup time: 22.9s (prepare environment: 5.0s, import torch: 7.9s, import gradio: 2.0s, setup paths: 1.9s, initialize shared: 0.9s, other imports: 1.0s, load scripts: 2.4s, create ui: 0.8s, gradio launch: 1.1s).
Applying attention optimization: xformers... done.
Model loaded in 6.7s (load weights from disk: 1.0s, create model: 0.9s, apply weights to model: 3.8s, calculate empty prompt: 0.7s).

Additional information

No response

@zd391 zd391 added the bug-report Report of a bug, yet to be confirmed label Oct 28, 2024
@zd391 zd391 changed the title Importing from timm.models.layers is deprecated/resume_download is deprecated and Importing from timm.models.layers is deprecated/resume_download is deprecated Oct 28, 2024
@hotick
Copy link

hotick commented Oct 28, 2024

the same as

@ShtifflesMetMe
Copy link

Facing same problem as well. Also Stable diffusion doesnt even generate anything whilst it gets my gpu to 100% usage

@hotick
Copy link

hotick commented Nov 3, 2024

timm==1.0.11 display Warning
timm<=1.0.10 works fine

@linuarM
Copy link

linuarM commented Nov 3, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Importing from timm.models.layers is deprecated, resume_download is deprecated,

Steps to reproduce the problem

D:\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning) D:\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:797: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.

What should have happened?

How should I import (resume_download/timm.models.layers) or ignore the warning?

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

"Platform": "Windows-10-10.0.19045-SP0", "Python": "3.10.11", "Version": "v1.10.1",

Console logs

(venv) PS D:\stable-diffusion-webui> .\webui-user.bat
venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: --xformers
D:\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
Loading weights [6ce0161689] from D:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: D:\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
D:\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py:797: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Startup time: 22.9s (prepare environment: 5.0s, import torch: 7.9s, import gradio: 2.0s, setup paths: 1.9s, initialize shared: 0.9s, other imports: 1.0s, load scripts: 2.4s, create ui: 0.8s, gradio launch: 1.1s).
Applying attention optimization: xformers... done.
Model loaded in 6.7s (load weights from disk: 1.0s, create model: 0.9s, apply weights to model: 3.8s, calculate empty prompt: 0.7s).

Additional information

No response

i guess this is not a big problem that can effect the program, i also am getting this error whenever i open it. i did tested with some generated public images and it very much generated the same image when i'm generating.

@dlinvader
Copy link

i am having this same issue when i try to generate anything it just sits there :\

@dyslecix
Copy link

dyslecix commented Nov 4, 2024

Same warning here. I went to the directory of the warning, in my case it's

F:\SD-webui\SD-webui-F\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers

indicating line 48 of the init__.py file, which I opened in Notepad++

2024-11-04 Notepad++ py48 future warning

Line 48 is the last line in the init__.py file. It appears that this is exactly what it says 'a future warning'. It's a placeholder for {__name__} which would in future be populated with the name of whichever timm. is problematic.

Can be ignored if the {__name__} name is unpopulated; address the warning in future if that changes to a problematic timm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

6 participants