Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 27/01/2024, à 18:55

Black Bloc

InvokeAI - [Errno 2] No such file or directory

Salut à tous big_smile

Après avoir installé Invoke AI
..Stable Diffusion webUI étant trop gourmand pour mon vieux pc portable avec Ubuntu 22.04
( RAM 4G , Intel® Core™ i5-4200M CPU @ 2.50GHz × 4  , NV108 / Mesa Intel® HD Graphics 4600 (HSW GT2) )

mais voila il semble y avoir un petit problème de répertoire et j'me retrouve coincé pour générer mes images .. hmm

[Errno 2] No such file or directory: '/home/user/invokeai/configs\\stable-diffusion\\v1-inference.yaml'

Capture-d-cran-du-2024-01-27-17-10-46-2.png

..une idée svp pour arranger ça ?
merki smile


. . BWAAAH

Hors ligne

#2 Le 27/01/2024, à 19:03

xubu1957

Re : InvokeAI - [Errno 2] No such file or directory

Bonjour,

Fournis les retours de :

sudo apt update

d'éventuels paquets cassés :

dpkg -l | grep -v ^ii
ls -l /var/crash

et :

echo $XDG_SESSION_TYPE

pour voir si c'est Wayland ou x11, en te servant du Retour utilisable de commande.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#3 Le 27/01/2024, à 19:29

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

black_panther@ubunapi:~$ sudo apt update
Atteint :1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Atteint :3 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Atteint :4 http://security.ubuntu.com/ubuntu jammy-security InRelease 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
4 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
black_panther@ubunapi:~$ dpkg -l | grep -v ^ii
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                           Version                                     Architecture Description
+++-=============================================-===========================================-============-=============
black_panther@ubunapi:~$ ls -l /var/crash
total 0
black_panther@ubunapi:~$ echo $XDG_SESSION_TYPE
wayland

smile réponse trèèèès rapide merci beaucoup


. . BWAAAH

Hors ligne

#4 Le 27/01/2024, à 19:34

xubu1957

Re : InvokeAI - [Errno 2] No such file or directory

Montre les cartes graphiques :

lspci -vnn | grep -A 12 '\''[030[02]\]' | grep -Ei "vga|3d|display|kernel"

et :

ubuntu-drivers devices
dpkg -l | grep nvidia
snap list

Dernière modification par xubu1957 (Le 27/01/2024, à 19:35)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#5 Le 27/01/2024, à 19:35

nany

Re : InvokeAI - [Errno 2] No such file or directory

Bonjour,



Black Bloc a écrit :
[Errno 2] No such file or directory: '/home/user/invokeai/configs\\stable-diffusion\\v1-inference.yaml'

https://i.ibb.co/wyhSS2D/Capture-d-cran-du-2024-01-27-17-10-46-2.png

Ta capture n’indique pas la même chose que toi :

FileNotFoundError: [Errno 2] No such file or directory: '/home/black_panther/configs\\stable-diffusion\\v1-inference.yaml'

Il manquerait donc le fichier configs\\stable-diffusion\\v1-inference.yaml dans ton répertoire personnel.

Hors ligne

#6 Le 27/01/2024, à 19:49

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

@xubu1957

black_panther@ubunapi:~$ lspci -vnn | grep -A 12 '\''[030[02]\]' | grep -Ei "vga|3d|display|kernel"
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
	Kernel driver in use: i915
	Kernel modules: i915
01:00.0 3D controller [0302]: NVIDIA Corporation GK208M [GeForce GT 740M] [10de:1292] (rev a1)
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau
black_panther@ubunapi:~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001292sv000017AAsd00003809bc03sc02i00
vendor   : NVIDIA Corporation
model    : GK208M [GeForce GT 740M]
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
black_panther@ubunapi:~$ dpkg -l | grep nvidia
black_panther@ubunapi:~$
black_panther@ubunapi:~$ snap list
Nom                        Version           Révision  Suivi            Éditeur        Notes
bare                       1.0               5         latest/stable    canonical✓     base
chromium                   121.0.6167.85     2738      latest/stable    canonical✓     -
core                       16-2.60.4         16202     latest/stable    canonical✓     core
core20                     20231123          2105      latest/stable    canonical✓     base
core22                     20231123          1033      latest/stable    canonical✓     base
cups                       2.4.7-3           1024      latest/stable    openprinting✓  -
firefox                    121.0.1-1         3626      latest/stable/…  mozilla✓       -
gimp                       2.10.36           418       latest/stable    snapcrafters✪  -
gnome-3-38-2004            0+git.efb213a     143       latest/stable/…  canonical✓     -
gnome-42-2204              0+git.ff35a85     141       latest/stable    canonical✓     -
gtk-common-themes          0.1-81-g442e511   1535      latest/stable/…  canonical✓     -
gtk2-common-themes         0.1               13        latest/stable    canonical✓     -
snap-store                 41.3-59-gf884f48  575       latest/stable/…  canonical✓     -
snapd                      2.61.1            20671     latest/stable    canonical✓     snapd
snapd-desktop-integration  0.9               83        latest/stable/…  canonical✓     -

@nany

nany a écrit :

oui effectivement j'ai écrit "USER" volontairement pour éviter toute confusion avec un nom de dossier..

par contre ce que je comprend pas c'est pourquoi au début on a " / " pour indiquer un dossier puis " \\ " ..une info à me donner svp ?  .


. . BWAAAH

Hors ligne

#7 Le 27/01/2024, à 20:14

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

@nany

Capture-d-cran-du-2024-01-27-19-06-39-2.png


. . BWAAAH

Hors ligne

#8 Le 28/01/2024, à 00:17

nany

Re : InvokeAI - [Errno 2] No such file or directory

Alors il y a une erreur dans le code. En effet les « \\ » devrait être « / ».
C’est soit file_ qui est mal défini dans .venv/lib/python3.10/site-packages/omegaconf/omegaconf.py, soit original_config_file dans .venv/lib/python3.10/site-packages/invokeai/backend/model_management/convert_ckpt_to_diffusers.py, soit encore plus haut dans le code (il faudrait remonter les fichiers un à un jusqu’à trouver l’erreur).

N’ayant pas le code sous les yeux, je ne peux en dire davantage.

Hors ligne

#9 Le 28/01/2024, à 00:50

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

@nany

avec l'éditeur de texte j'ai fais la recherche pour trouver   \\
...mais rien null part (  omegaconf.py  et  convert_ckpt_to_diffusers.py )
neutral


. . BWAAAH

Hors ligne

#10 Le 28/01/2024, à 01:08

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

...et sinon j'ai trouvé ça dans le rapport d'erreur de InvokeAI
Là il revient souvent ce symbole   \

"error": "Traceback (most recent call last):\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/services/invocation_processor/invocation_processor_default.py\", line 104, in __process\n    outputs = invocation.invoke_internal(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/invocations/baseinvocation.py\", line 669, in invoke_internal\n    output = self.invoke(context)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py\", line 115, in decorate_context\n    return func(*args, **kwargs)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/invocations/compel.py\", line 69, in invoke\n    tokenizer_info = context.services.model_manager.get_model(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/services/model_manager/model_manager_default.py\", line 112, in get_model\n    model_info = self.mgr.get_model(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/model_manager.py\", line 490, in get_model\n    model_path = model_class.convert_if_required(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/models/stable_diffusion.py\", line 127, in convert_if_required\n    return _convert_ckpt_and_cache(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/models/stable_diffusion.py\", line 289, in _convert_ckpt_and_cache\n    convert_ckpt_to_diffusers(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/convert_ckpt_to_diffusers.py\", line 1728, in convert_ckpt_to_diffusers\n    pipe = download_from_original_stable_diffusion_ckpt(checkpoint_path, **kwargs)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/convert_ckpt_to_diffusers.py\", line 1277, in download_from_original_stable_diffusion_ckpt\n    original_config = OmegaConf.load(original_config_file)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/omegaconf/omegaconf.py\", line 189, in load\n    with io.open(os.path.abspath(file_), \"r\", encoding=\"utf-8\") as f:\nFileNotFoundError: [Errno 2] No such file or directory: '/home/black_panther/configs\\\\stable-diffusion\\\\v1-inference.yaml'\n",


. . BWAAAH

Hors ligne

#11 Le 28/01/2024, à 01:35

nany

Re : InvokeAI - [Errno 2] No such file or directory

Aïe ! Mes yeux !


"error": "Traceback (most recent call last):\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/services/invocation_processor/invocation_processor_default.py\", line 104, in __process\n    outputs = invocation.invoke_internal(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/invocations/baseinvocation.py\", line 669, in invoke_internal\n    output = self.invoke(context)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py\", line 115, in decorate_context\n    return func(*args, **kwargs)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/invocations/compel.py\", line 69, in invoke\n    tokenizer_info = context.services.model_manager.get_model(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/app/services/model_manager/model_manager_default.py\", line 112, in get_model\n    model_info = self.mgr.get_model(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/model_manager.py\", line 490, in get_model\n    model_path = model_class.convert_if_required(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/models/stable_diffusion.py\", line 127, in convert_if_required\n    return _convert_ckpt_and_cache(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/models/stable_diffusion.py\", line 289, in _convert_ckpt_and_cache\n    convert_ckpt_to_diffusers(\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/convert_ckpt_to_diffusers.py\", line 1728, in convert_ckpt_to_diffusers\n    pipe = download_from_original_stable_diffusion_ckpt(checkpoint_path, **kwargs)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/invokeai/backend/model_management/convert_ckpt_to_diffusers.py\", line 1277, in download_from_original_stable_diffusion_ckpt\n    original_config = OmegaConf.load(original_config_file)\n  File \"/home/black_panther/.venv/lib/python3.10/site-packages/omegaconf/omegaconf.py\", line 189, in load\n    with io.open(os.path.abspath(file_), \"r\", encoding=\"utf-8\") as f:\nFileNotFoundError: [Errno 2] No such file or directory: '/home/black_panther/configs\\\\stable-diffusion\\\\v1-inference.yaml'\n",

Comme ça c’est mieux.

En fait ça correspond à ce qu’on peut lire dans ta première capture d’écran.
Comme je l’ai dit, il faut remonter dans les différents fichier cités.

Hors ligne

#12 Le 28/01/2024, à 02:56

Black Bloc

Re : InvokeAI - [Errno 2] No such file or directory

ok donc je vais devoir passer tout les fichiers un à un ...
smile mmm trop bien ! ( ..non là  j'rigole )


. . BWAAAH

Hors ligne