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

ImportError: cannot import name 'load_safetensors' from 'library.utils' (G:\kohya_ss\sd-scripts\library\utils.py) #1848

Open
xueqing0622 opened this issue Dec 21, 2024 · 0 comments

Comments

@xueqing0622
Copy link

15:58:58-737639 INFO Executing command: G:\kohya_ss\venv\Scripts\python.exe
G:/kohya_ss/sd-scripts/networks/flux_extract_lora.py --model_org
I:\sdmodel\z\flux\lumiere_flux_alpha-fp8.safetensors --model_tuned
I:\sdmodel\z\flux\EdgeOfReality_v26.safetensors --save_to
I:\sdmodel\lora\0CFlux\EdgeOfReality_v26.safetensors --dim 256 --device cuda --clamp_quantile 1
--save_precision float
G:\kohya_ss\venv\lib\site-packages\transformers\utils\hub.py:127: FutureWarning: Using TRANSFORMERS_CACHE is deprecated and will be removed in v5 of Transformers. Use HF_HOME instead.
warnings.warn(
G:\kohya_ss\venv\lib\site-packages\diffusers\utils\outputs.py:63: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils._pytree._register_pytree_node(
Traceback (most recent call last):
File "G:\kohya_ss\sd-scripts\networks\flux_extract_lora.py", line 13, in
from library import flux_utils, sai_model_spec, model_util, sdxl_model_util
File "G:\kohya_ss\sd-scripts\library\flux_utils.py", line 21, in
from library.utils import load_safetensors
ImportError: cannot import name 'load_safetensors' from 'library.utils' (G:\kohya_ss\sd-scripts\library\utils.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant