#Can't paste Hugging Face Token in setup

45 messages · Page 1 of 1 (latest)

azure forge
#

Hey, as-per the title of the post, I can't enter my Hugging Face token when setting up InvokeAI.

I'm on WIndows 10 and the installer has fully run, I am able to run invoke.bat, but it realizes that I haven't downloaded the TI libraries(maybe the wrong term?) and asks me to put my key and password from Hugging Face. I'm able to enter my password and it's able to get some parts of the process done with just that, but I'm not able to interact with the line above the password entry. How can I paste my key up there?

#

I'm trying to skip downloading models and eventually the command line just closes.

peak plover
#

Right click it

#

(or does that not work)?

azure forge
#

Right clicking doesn't do anything. I can right click on the title bar and do Edit -> Paste, but I can't actually enter anything into the "Token:" line because it's behind a line break.

peak plover
#

ah... Hm.

#

Well, immediate solve would be doing it manually

#

It's not too difficult

#

Do you already have models downloaded?

#

(from other installations, etc.)

azure forge
#

I don't believe so.

peak plover
#

you'll want the emaonly.ckpt file in there

#

In your InvokeAI root directory (the one you typed in during configuration) youll find a configs/models.yaml.example file - Copy it and remove the .example (should be models.yaml when you're done)

#

and then move the downloaded file into your models folder

#

update the models.yaml if needed (it might have models you dont have, for example), ensure the paths match, and then you should be good to go.

#

i'd still go through the configuration process, but skip the model downloads

#

so that you get all of the supporting tools it pulls in.

azure forge
#

v1-5-pruned-emaonly.ckpt?

peak plover
#

thats the one

azure forge
#

Ok, downloading that and will give things another go.

peak plover
#

🫡 - We'll get you up and running in no time!

azure forge
#

It appears to have gone through everything. It said "Have fun!" but then closed.

#

(invoke.bat)

peak plover
#

Hmm

#

Paste your logs here

azure forge
#

Where's that?

peak plover
#

I expect we’ll find an issue

#

Just copy the terminal when you start invoke.bat

azure forge
#

`Do you want to generate images using the

  1. command-line
  2. browser-based UI
  3. open the developer console
    Please enter 1, 2 or 3: 2
    Starting the InvokeAI browser-based UI..
  • Initializing, be patient...

Initialization file C:\Users\username/.invokeai found. Loading...
InvokeAI runtime directory is "D:\Applications\invokeAI\configandmodels"
Patchmatch initialized
GFPGAN Initialized
CodeFormer Initialized
ESRGAN Initialized
Using device_type cuda
Current VRAM usage: 0.00G
Scanning Model: stable-diffusion-1.5
** model stable-diffusion-1.5 could not be loaded: [Errno 2] No such file or directory: 'D:\Applications\invokeAI\configandmodels\models\ldm\stable-diffusion-v1\v1-5-pruned-emaonly.ckpt'
Traceback (most recent call last):
File "d:\applications\invokeai\ldm\invoke\model_cache.py", line 80, in get_model
requested_model, width, height, hash = self._load_model(model_name)
File "d:\applications\invokeai\ldm\invoke\model_cache.py", line 210, in _load_model
self.scan_model(model_name, weights)
File "d:\applications\invokeai\ldm\invoke\model_cache.py", line 295, in scan_model
scan_result = scan_file_path(checkpoint)
File "D:\Applications\invokeAI\installer_files\env\envs\invokeai\lib\site-packages\picklescan\scanner.py", line 349, in scan_file_path
with open(path, "rb") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Applications\invokeAI\configandmodels\models\ldm\stable-diffusion-v1\v1-5-pruned-emaonly.ckpt'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You appear to have a missing or misconfigured model file(s).
The script will now exit and run configure_invokeai.py to help fix the problem.
After reconfiguration is done, please relaunch invoke.py.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
configure_invokeai is launching....`

#

Going to skip, the console may close before I can copy.

peak plover
#

See that bit about “no such file”?

#

You already hit the error

#

You can close

azure forge
#

What am I missing?

peak plover
#

Shouldn’t go through model installs except on first run

#

Look at the logs right after the “scanning model” bit - maybe 20 lines down and beyond

#

Can’t find the .ckpt file you downloaded. Is it in the right folder?

azure forge
#

D:\Applications\invokeAI\configandmodels\models\

#

v1-5-pruned-emaonly.ckpt

peak plover
#

you configured it as D:\\Applications\\invokeAI\\configandmodels\\models\\ldm\\stable-diffusion-v1\\v1-5-pruned-emaonly.ckpt

#

(ignore the dupe \s)

#

so move the file to > models\ldm\stable-diffusion-v1\

#

and you should see it work.

azure forge
#

We got it! 👌