Comments (4)
You were correct, this makes the whole check unnecessary. Thanks for the pointer!
That should also make it work with Python 3.7 out of the box.
from a1111-sd-webui-tagcomplete.
I might be wrong but doesn't both of these produce the same result without the check?
Huh I actually never thought about that, since it wasn't mentioned in the Wiki about extension development.
But from a quick look it seems like it would work. I'll try it out later.
from a1111-sd-webui-tagcomplete.
The error states that is_relative_to can't be found. This is a python version problem, that attribute was only added in python 3.9. For local it isn't a problem since 3.10.6 is recommended for the webui, but it seems Colab is running 3.7.x by default, which I wasn't aware of. You can technically change the version since you have full access to the instance Debian backend, but it seems pretty annoying to do.
One workaround is the option used in #45, which I originally didn't want to use, but now that I know it's needed on colab maybe I should use it after all or add a version check / fallback to it.
from a1111-sd-webui-tagcomplete.
Wow lol you are right, I forgot about the python version requirment. Thanks, I managed to get around it somehow. By the way I was looking at the code and looking at what that was trying to do.
a1111-sd-webui-tagcomplete/scripts/tag_autocomplete_helper.py
Lines 7 to 24 in 372a499
From what I can see line 8-24 is trying to get the tags base path. I was looking through what the scripts.basedir() does in the documentation(code) from automatic111webui and found this.
def basedir():
"""returns the base directory for the current script. For scripts in the main scripts directory,
this is the main directory (where webui.py resides), and for scripts in extensions directory
(ie extensions/aesthetic/script/aesthetic.py), this is extension's directory (extensions/aesthetic)
"""
return current_basedir
I might be wrong but doesn't both of these produce the same result without the check?
If it was not installed as an extension then it would return .../stable-diff-webui/.
If it was an extension it would return .../stable-diff-webui/extensions/a111-sd-webui-tagcomplete/.
Either way when appending 'tags' to scripts.basedir(), you get the right path.
import os
def get_tags_base_path():
return os.path.join(scripts.basedir(), "tags")
(I have not tested the code)
Anyways thanks for the help.
from a1111-sd-webui-tagcomplete.
Related Issues (20)
- A111 Refresh Button on Extra Networks hangs infinitely HOT 7
- In some cases, i can't search tags by aliases. HOT 4
- Wrong format used for LyCORIS HOT 3
- Wildcard autocompletion in the prompt box cutoff from colon HOT 1
- [Feature Request] - Allow for names of Styles (found on the right side pulldown) to be included for autocomplete. HOT 4
- launch error and feature dont work
- Loras in hidden directories are suggested when they shouldn't
- Embedding suggestions not working under Diffusers backend. [SDNext] HOT 6
- Is it possible to update danbooru.csv? HOT 1
- (Feature request) stable-diffusion-webui-dataset-tag-editor support update HOT 1
- [Feature request] Fuzzy matching HOT 9
- New tag lists: EnglishDictionary.csv and Derpibooru.csv HOT 3
- Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. HOT 1
- 3.0.0无法弹出tag选项框 HOT 12
- Tag frequency database error - "module scripts.tag_frequency_db not in sys.modules" HOT 8
- XL embedding previews. HOT 4
- Making tagcomplete compatible with wildcard parser-wrap string changes HOT 5
- The extension breaks the ability to go to the beginning and end of a line using the Home and End buttons HOT 1
- Frequency database error - table fails to get created HOT 1
- [Feature Request] Dynamic Tag List Switching HOT 1
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 a1111-sd-webui-tagcomplete.