Comments (10)
remove all directory with "~"
give us at start:
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)
from clip-interrogator-ext.
Same here
from clip-interrogator-ext.
+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?
from clip-interrogator-ext.
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)
from clip-interrogator-ext.
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.
from clip-interrogator-ext.
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.
from clip-interrogator-ext.
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)
from clip-interrogator-ext.
@xbwtyz please try deleting the clip-interrogator-ext folder from your extensions folder to remove it. then install it again on the extensions tab.
from clip-interrogator-ext.
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.
from clip-interrogator-ext.
@pharmapsychotic this did not resolve the issue.
from clip-interrogator-ext.
Related Issues (20)
- Easy way to locate and delete the CLIP models? HOT 1
- No Interrogator Tab HOT 1
- throws Exception <class 'RuntimeError'> error HOT 11
- Are you interested in developing extensions for ComfyUI?
- TypeError: Config.__init__() got an unexpected keyword argument 'blip_model' HOT 1
- Bug for WebUI 1.6.0 HOT 6
- please,I encountered trouble during insttallation. HOT 2
- Can I delete these files?
- Widely differing results between clip-interrogator-ext vs other Clip Interrogators HOT 7
- Model Zoo Description HOT 3
- Extension bug in Automatic1111 WebUI 1.6.0
- MPS backend out of memory OSX
- API /interrogator/prompt image problem
- custom models error: AttributeError: 'NoneType' object has no attribute 'split'
- Exception <class 'RuntimeError'> HOT 1
- add new output mode in BATCH tab
- add new output mode in BATCH tab
- Model fails to load on second GPU
- 出现错误,无法反推提示词 HOT 1
- TypeError: Object of type BlipTextConfig is not JSON serializable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clip-interrogator-ext.