2.5 KiB
2.5 KiB
sd-webui-e621-prompt
Request tags of an image from e621, inspired by sd-webui-gelbooru-prompt.
Note: I'm not a Python developer and haven't touched this language for a few years. This extension was hacked together using some other sd-webui extensions sources, stackoverflow answers and pure luck. Feel free to submit PR's fixing this unholy mess.
Features
- Extract tags from e621 link, post id or md5 hash
- Drag and drop saved images to calculate their md5 automatically
- Configurable prefixes for tag categories (species, character, artist, etc)
- Replace underscores with spaces. Or not.
- Exclude unwanted tags
- Append wanted tags
- Connect to e621 via proxy, for more... "special" parts of the world
Requirements
- Python 3.10+ (will NOT work with the Python 3.9)
- sd-webui v1.7.0 (but may work with the previous versions, extension code hasn't changed much since sd-webui v1.3.2)
Development
- Clone into
extensionsfolder cp .env.example .envfor settingPYTHONPATH. It is required for IDE autocompletions to work (tested with vscode, if you use PyCharm your mileage may vary). If you using unix-like OS, replace semicolon with a colon
Something wrong?
Open an issue on Github if there is some weird error, or use Discussions tab for general questions.
Please adhere to the Github TOS and do not post any NSFW imagery or tags in the issues or discussions.
How to change categories, selected by default
- Reset form
- Refresh browser window
- Select needed categories in the order you want them to appear in the final result
- Navigate to "Settings" -> "Defaults"
- Verify that only "Categories" field is updated
- Apply and restart sd-webui (not required, but preferred)
Model-specific settings
Fluffusion R1
- Replace underscores with spaces checked
- Prefix for artists:
by(with a space) - Do not select "rating" category
Fluffyrock / Furryrock / Yiffymix v2.1, v2.2
- Replace underscores with spaces checked
- Prefix for artists:
by(with a space) - Do not select "meta" category
Changelog
20.02.2024
- Fixed deprecation warning
- Tested with latest sd-webui, still working :)
14.06.2023
- Fixed escaping of parentheses
- Fixed incorrect path in ui_config and Defaults
- Tags are no longer in random order
- Added more tags, excluded by default
- Changed some defaults
- Added a little bit of docs in README
13.06.2023
- First release
