#model installation help!

1 messages · Page 1 of 1 (latest)

gray forum
#

Could someone help me with this?

** model Anything V3 + Inkpunk could not be loaded: expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
  File "c:\users\frelse\desktop\invokeai\ldm\invoke\model_cache.py", line 80, in get_model
    requested_model, width, height, hash = self._load_model(model_name)
  File "c:\users\frelse\desktop\invokeai\ldm\invoke\model_cache.py", line 222, in _load_model
    if not os.path.isabs(config):
  File "C:\Users\Frelse\Desktop\invokeAI\installer_files\env\envs\invokeai\lib\ntpath.py", line 89, in isabs
    s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not NoneType```
burnt kite
#

Is this a v2 model by chance?

gray forum
#

Negative, a normal 1.5 model

#

or 1.4

#

I was trying to load Anything + Inkpunk

modern pumice
#

try changing the name to "Anything plus Inkpunk" I ran into problems using anything other than letters/numbers in the name as well as the description

gray forum
#

This is what happens now

#

I don't even know man 😭

#

thanks for the advice though @modern pumice

gray forum
#

I had put a space between two of the terms

#

something like

[...]
Complex

LA:
  description: ComplexLA style
  weights: models\ldm\stable-diffusion-v1\COMPLEX LA (ComplexLA style).ckpt
  config: 
  width: 512
  height: 512
  vae: null
  default: false
Inkpunk:
  description: nvinkpunk
  weights: models\ldm\stable-diffusion-v1\INKPUNK (nvinkpunk).ckpt
  config: 
  width: 512
[...]```
#

but the models refuse to swap still

burnt kite
#

Spaces in filenames are no good

#

Try to change them to single connected strings

gray forum
#
>> Loading Nixeu222 from C:\Users\Frelse\invokeainnklk\models\ldm\stable-diffusion-v1\NIXEU 222 (m_nixeu).ckpt
** model Nixeu222 could not be loaded: expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
  File "c:\users\frelse\desktop\invokeai\ldm\invoke\model_cache.py", line 80, in get_model
    requested_model, width, height, hash = self._load_model(model_name)
  File "c:\users\frelse\desktop\invokeai\ldm\invoke\model_cache.py", line 222, in _load_model
    if not os.path.isabs(config):
  File "C:\Users\Frelse\Desktop\invokeAI\installer_files\env\envs\invokeai\lib\ntpath.py", line 89, in isabs
    s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not NoneType```
#

As soon as I figure this out im making a tutorial for us dumbest assumable users haha

burnt kite
#

😜

gray forum
#

Do all models need a config?

burnt kite
#

All models need a config entry in the yaml file, yes

gray forum
#

I see

#

Okay, that was the issue, finally managed to change models

#

conclusions:
· No spaces in model names in the .yaml else you want a barrage of errors bigger than the constitution
· Config entry needs to be set always and should be manually copied from the one in the sd1.4 entry