light-and-ray/sd-webui-replacer

Exception: not found, please download model to models/sam.

Closed this issue · 10 comments

Hi I installed the model sam sam_hq_vit_h.pth

to the directory:

..\stable-diffusion-webui\extensions\sd-webui-segment-anything\models\sam

but i continue to get this error:

...
Exception: not found, please download model to models/sam.

Did you try to restart the ui? Show which files are in this directory

yes i did restart 2 times

this is a gyazo of directory and file
https://prnt.sc/hA63mt27tiYv

Can you provide full console log

Can you provide full console log

tell me how to do please and i will

Open cmd window, which opened when you started webui

I have only two ideas why it happened. Maybe you have few webui directories and confused models location. Or you enabled command-line flag, which changes default directories

you mean this?

`Already up to date.
venv "C:\Users\Sergio\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
[Auto-Photoshop-SD] Attempting auto-update...
[Auto-Photoshop-SD] switch branch to extension branch.
checkout_result: Your branch is up to date with 'origin/master'.

[Auto-Photoshop-SD] Current Branch.
branch_result: * master

[Auto-Photoshop-SD] Fetch upstream.
fetch_result:
[Auto-Photoshop-SD] Pull upstream.
pull_result: Already up to date.
Launching Web UI with arguments: --api --no-half-vae --disable-nan-check --xformers --opt-split-attention --medvram
python_server_full_path: C:\Users\Sergio\stable-diffusion-webui\extensions\Auto-Photoshop-StableDiffusion-Plugin\server/python_server
[-] ADetailer initialized. version: 24.1.1, num models: 9
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
ControlNet preprocessor location: C:\Users\Sergio\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-01-19 20:28:39,028 - ControlNet - INFO - ControlNet v1.1.431
2024-01-19 20:28:39,507 - ControlNet - INFO - ControlNet v1.1.431
20:28:40 - ReActor - STATUS - Running v0.6.1-b2 on Device: CUDA
Loading weights [7f6146b8a9] from C:\Users\Sergio\stable-diffusion-webui\models\Stable-diffusion\edgeOfRealism_eorV20Fp16BakedVAE.safetensors
Creating model from config: C:\Users\Sergio\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL: http://127.0.0.1:7861

To create a public link, set share=True in launch().
Startup time: 27.1s (prepare environment: 12.2s, import torch: 2.9s, import gradio: 1.9s, setup paths: 1.7s, initialize shared: 0.2s, other imports: 1.5s, setup codeformer: 0.1s, list SD models: 0.3s, load scripts: 4.7s, create ui: 1.4s, gradio launch: 0.3s).
Loading VAE weights specified in settings: C:\Users\Sergio\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying attention optimization: xformers... done.
Model loaded in 5.6s (load weights from disk: 0.7s, create model: 0.3s, apply weights to model: 3.6s, load VAE: 0.3s, calculate empty prompt: 0.5s).
`

found the issue ... i needed first to choose in segment-anything tab the model sam.. that's wasn't clear on your guide installation..
anyway fixed!

What is "segment anything tab"? Did you mean txt2img tab? I hope you didn't confuse with inpaint anything. It's very very buggy and creepy extension

I tried clear installation with no interacting with segment anything extension, and there was no problems. I don't know why it happend for you

it's below controlnet ... refiner etc etc..
here: https://prnt.sc/4U7PuG5BNeZy