mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-11-05 01:27:20 +00:00
[GH-ISSUE #28] Install BUG las version 22.03.2023 #25
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pharmapsychotic/clip-interrogator-ext#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ffdown on GitHub (Mar 22, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/28
@ffdown commented on GitHub (Mar 22, 2023):
remove all directory with "~"
give us at start:
@AndrewEdgers commented on GitHub (Mar 23, 2023):
Same here
@xbwtyz commented on GitHub (Mar 24, 2023):
+1
Error loading script: clip_interrogator_ext.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\stable-diffusion-webui\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 10, in
from clip_interrogator import Config, Interrogator, list_caption_models, list_clip_models
ImportError: cannot import name 'list_caption_models' from 'clip_interrogator' (D:\stable-diffusion-webui\venv\lib\site-packages\clip_interrogator_init.py)
Edit: It seems that manually updating the clip_interrogator and restarting the environment fixed the issue?
@ffdown commented on GitHub (Mar 24, 2023):
Edit: It seems that manually updating the clip_interrogator and restarting the environment fixed the issue?no it's not. Update in extension that same.
E:\AI\SDP\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release warnings.warn( Error loading script: clip_interrogator_ext.py Traceback (most recent call last): File "E:\AI\SDP\modules\scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\AI\SDP\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "E:\AI\SDP\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 10, in <module> from clip_interrogator import Config, Interrogator, list_caption_models, list_clip_models ImportError: cannot import name 'list_caption_models' from 'clip_interrogator' (E:\AI\SDP\venv\lib\site-packages\clip_interrogator\__init__.py)@xbwtyz commented on GitHub (Mar 24, 2023):
Idk what to tell you. I tried multiple times for the extension to work, then I updated my clip_interrogator which was a 5.x version, restarted my venv, and the extension worked. Sorry that doesn't resolve your issue.
@mart-hill commented on GitHub (Mar 24, 2023):
Is this extension using transformers? Or rather, protobuf module is using it, hence there might lie the issue, maybe either re-add transformers 4.27.2 (or .3, depending, which one is cached), or reboot the OS, so the cache gets refreshed? I hope I'm not mixing things up... 🙂

Dreambooth extension in "dev2" branch changed "transformers" package version, again, hence my rant about that package.
@xbwtyz commented on GitHub (Mar 28, 2023):
And its back:
Error loading script: clip_interrogator_ext.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\stable-diffusion-webui\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 9, in
import clip_interrogator
File "D:\stable-diffusion-webui\venv\lib\site-packages\clip_interrogator_init.py", line 1, in
from .clip_interrogator import Config, Interrogator, LabelTable, list_caption_models, list_clip_models, load_list
File "D:\stable-diffusion-webui\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 12, in
from transformers import AutoProcessor, AutoModelForCausalLM, BlipForConditionalGeneration, Blip2ForConditionalGeneration
ImportError: cannot import name 'Blip2ForConditionalGeneration' from 'transformers' (D:\stable-diffusion-webui\venv\lib\site-packages\transformers_init_.py)
@pharmapsychotic commented on GitHub (Mar 28, 2023):
@xbwtyz please try deleting the clip-interrogator-ext folder from your extensions folder to remove it. then install it again on the extensions tab.
@mart-hill commented on GitHub (Mar 30, 2023):
Even after latest update (clip_interrogator 0.5.4) the extension still seems to have trouble with protobuf installing - still creates these ~ folders (~0otobuf or similarly named), for some reason, and the
ERROR: Could not install packages due to an OSError: [WinError 5] : 'E:\\AI\\SDP\\venv\\Lib\\site-packages\\google\\~0otobuf\\internal\\_api_implementation.cp310-win_amd64.pyd' Check the permissions.message from the OP still persists. Even if installed from the scratch. Which packages should be removed from the venv library, manually, to try again?Edit: Wait, wait, is this "E:\AI\SDP..." folder path hardcoded? My folder is totally different, maybe that's why it fails. Gotta test. It didn't help though. I have a feeling it's conflicting with Dreambooth extension.
@xbwtyz commented on GitHub (Mar 30, 2023):
@pharmapsychotic this did not resolve the issue.