Closed websepia closed 1 year ago
I reverted back to 84b801d8, but this error still exists!
Steps:
git reflog ff0e79fa (HEAD -> main, origin/main, origin/HEAD) HEAD@{21}: pull: Fast-forward 84b801d8 HEAD@{22}: clone: from https://github.com/invoke-ai/InvokeAI
git checkout main
git reset --hard 84b801d8
invokeai.init has a parameter --always_use_cpu, but it seems not working for my case.
--outdir="/Users/xixili/AI/InvokeAI/outputs" --embedding_path="/Users/xixili/AI/InvokeAI/embeddings" --precision=auto --max_loaded_models=2 --no-nsfw_checker --xformers --ckpt_convert
--always_use_cpu --autoconvert "/Users/xixili/AI/stable-diffusion-webui/models"
As a workaround, in order to make it work, I add 'cpu' to /Users/xixili/AI/InvokeAI/.venv/lib/python3.10/site-packages/torch/serialization.py like below.
def load(
f: FILE_LIKE,
map_location: MAP_LOCATION = 'cpu',
pickle_module: Any = None,
*,
weights_only: bool = False,
**pickle_load_args: Any
) -> Any:
Another workaround is to add the code snippet to 786 line into model_manager: /Users/xixili/AI/InvokeAI/.venv/lib/python3.10/site-packages/ldm/invoke/model_manager.py
if Globals.always_use_cpu is True:
checkpoint = torch.load(model_path, map_location=torch.device('cpu'))
else:
checkpoint = torch.load(model_path)
Is there an existing issue for this?
OS
macOS
GPU
cpu
VRAM
2GB
What version did you experience this issue on?
v2.3.5.post1
What happened?
This issue occurred in v2.3.5.post1, but it doesn't exist in InvokeAI, version 2.3.5.
Step to reproduce:
Screenshots
Additional context
git pull 警告:unknown value given to http.version: 'http/1.1' remote: Enumerating objects: 849, done. remote: Counting objects: 100% (847/847), done. remote: Compressing objects: 100% (325/325), done. remote: Total 849 (delta 556), reused 782 (delta 519), pack-reused 2 接收对象中: 100% (849/849), 444.87 KiB | 636.00 KiB/s, 完成. 处理 delta 中: 100% (556/556), 完成 48 个本地对象. 来自 https://github.com/invoke-ai/InvokeAI 84b801d8..ff0e79fa main -> origin/main 9ecca132..efabf250 Convert-Model-Endpoint -> origin/Convert-Model-Endpoint fea9a6bf..47b0d5a9 feat/controlnet-nodes -> origin/feat/controlnet-nodes
Contact Details
No response