invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.34k stars 2.4k forks source link

[bug]: Models not loaded #4053

Closed icamps closed 11 months ago

icamps commented 1 year ago

Is there an existing issue for this?

OS

Linux

GPU

cuda

VRAM

4GB

What version did you experience this issue on?

3.0.1rc2

What happened?

I didn't get any model connected, so, no image generation is possible.

Screenshots

Screenshot from 2023-07-28 17-23-56 Screenshot from 2023-07-28 17-24-06 Screenshot from 2023-07-28 17-24-19

Additional context

I am testing the installation in a server in a local network and accessing it using localhost.run service. Also, the installed GPU is a GTX 1650

Contact Details

icamps@gmail.com

hipsterusername commented 1 year ago

Click the "Select a Model" field and see whats in the drop down.

jooray commented 1 year ago

I have a similar problem. During start:

[2023-07-30 22:12:47,571]::[InvokeAI]::INFO --> Scanning /Users/user/invokeai/models for new models
[2023-07-30 22:12:47,799]::[InvokeAI]::INFO --> Scanned 0 files and directories, imported 0 models
[2023-07-30 22:12:47,799]::[InvokeAI]::INFO --> Model manager service initialized

Screenshot 2023-07-30 at 22 15 28

Screenshot 2023-07-30 at 22 16 29

Sync does not help.

 ~/invokeai/models$ ls
core         sd-1         sd-2         sdxl         sdxl-refiner
~/invokeai/models$ du -hs .
 46G    .

MacOs 13.4.1(c), Apple M2 Max, invoke-ai 3.0.1post3. I did:

Still see no models.

jooray commented 1 year ago

Deleting and complete reinstall helped in my case.

icamps commented 1 year ago

@jooray Did you delete only the models or the whole installation?

jooray commented 1 year ago

Everything, the whole invokeai directory

icamps commented 1 year ago

@jooray nothing changed here ;( Also, I downloaded the latest installation files (InvokeAI-installer-v3.0.1post3.zip) and the result was the same: no models loaded.

icamps commented 1 year ago

@hipsterusername that didn't work. I cannot select any model: just a red dot.

hipsterusername commented 1 year ago

The red dot on the top right means your front-end app and server aren't connected. Are there any errors/issues in the console?

icamps commented 1 year ago

@hipsterusername the output in the console is below:

Generate images with a browser-based interface
/software/invokeai/.venv/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(
>> patchmatch.patch_match: INFO - Compiling and loading c extensions from "/software/invokeai/.venv/lib/python3.10/site-packages/patchmatch".
>> patchmatch.patch_match: ERROR - patchmatch failed to load or compile (Command 'make clean && make' returned non-zero exit status 2.).
>> patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions.
[2023-08-04 13:02:34,181]::[InvokeAI]::INFO --> Patchmatch not loaded (nonfatal)
[2023-08-04 13:02:34,736]::[uvicorn.error]::INFO --> Started server process [17532]
[2023-08-04 13:02:34,736]::[uvicorn.error]::INFO --> Waiting for application startup.
[2023-08-04 13:02:34,737]::[InvokeAI]::INFO --> InvokeAI version 3.0.1post3
[2023-08-04 13:02:34,737]::[InvokeAI]::INFO --> Root directory = /software/invokeai
[2023-08-04 13:02:34,738]::[InvokeAI]::INFO --> GPU device = cuda NVIDIA GeForce GTX 1650
[2023-08-04 13:02:34,743]::[InvokeAI]::INFO --> Scanning /software/invokeai/models for new models
[2023-08-04 13:02:35,009]::[InvokeAI]::INFO --> Scanned 5 files and directories, imported 0 models
[2023-08-04 13:02:35,012]::[InvokeAI]::INFO --> Model manager service initialized
[2023-08-04 13:02:35,082]::[uvicorn.error]::INFO --> Application startup complete.
[2023-08-04 13:02:35,082]::[uvicorn.error]::INFO --> Uvicorn running on http://127.0.0.1:9090 (Press CTRL+C to quit)
[2023-08-04 13:03:01,072]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET / HTTP/1.1" 200
[2023-08-04 13:03:01,372]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/index-9bb68e3a.js HTTP/1.1" 200
[2023-08-04 13:03:02,840]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /locales/en.json HTTP/1.1" 200
[2023-08-04 13:03:02,981]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/ThemeLocaleProvider-b9d3eb39.js HTTP/1.1" 200
[2023-08-04 13:03:03,121]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/ThemeLocaleProvider-5b992bc7.css HTTP/1.1" 200
[2023-08-04 13:03:03,263]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/MantineProvider-ae002ae6.js HTTP/1.1" 200
[2023-08-04 13:03:03,273]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/logo-13003d72.png HTTP/1.1" 200
[2023-08-04 13:03:03,849]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/App-ea7b7298.js HTTP/1.1" 200
[2023-08-04 13:03:03,857]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/App-6125620a.css HTTP/1.1" 200
[2023-08-04 13:03:04,398]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/favicon-0d253ced.ico HTTP/1.1" 200
[2023-08-04 13:03:06,993]::[InvokeAI]::INFO --> NSFW checker initialized
[2023-08-04 13:03:06,993]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/app/config HTTP/1.1" 200
[2023-08-04 13:03:06,995]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/models/?model_type=embedding HTTP/1.1" 200
[2023-08-04 13:03:06,995]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/boards/?all=true HTTP/1.1" 200
[2023-08-04 13:03:06,996]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/app/version HTTP/1.1" 200
[2023-08-04 13:03:06,997]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/models/?base_models=sd-1&base_models=sd-2&base_models=sdxl&model_type=main HTTP/1.1" 200
[2023-08-04 13:03:06,998]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /assets/inter-latin-wght-normal-450f3ba4.woff2 HTTP/1.1" 200
[2023-08-04 13:03:07,281]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/models/?model_type=vae HTTP/1.1" 200
[2023-08-04 13:03:07,289]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/images/?board_id=none&categories=control&categories=mask&categories=user&categories=other&is_intermediate=false&limit=0&offset=0 HTTP/1.1" 200
[2023-08-04 13:03:07,290]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/images/?board_id=none&categories=general&is_intermediate=false&limit=0&offset=0 HTTP/1.1" 200
[2023-08-04 13:03:07,291]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/models/?model_type=lora HTTP/1.1" 200
[2023-08-04 13:03:07,292]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/models/?model_type=controlnet HTTP/1.1" 200
[2023-08-04 13:03:07,556]::[uvicorn.access]::INFO --> 200.233.89.13:0 - "GET /api/v1/images/?board_id=none&categories=general&is_intermediate=false&limit=100&offset=0 HTTP/1.1" 200