d3x-at / sd-parsers Goto Github PK
View Code? Open in Web Editor NEWA Python library to read metadata from images created by Stable Diffusion.
License: MIT License
A Python library to read metadata from images created by Stable Diffusion.
License: MIT License
When using pip to install the package, it is installed as sdparsers and not sd_parsers. Importing the library now requires sdparsers instead of sd_parsers. Please either refactor code or fix the documentation in README.md.
i`m trying to read comfyui metadata, and have this error:
PS D:\rep\pnginfo> File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\sdparsers\parsers\comfyui.py", line 139, in _get_prompt positive_id, positive_prompt = get_prompt( File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\sdparsers\parsers\comfyui.py", line 131, in get_prompt parts = list(self._get_parts(image_data, source_id, text_keys)) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\sdparsers\parsers\comfyui.py", line 163, in _get_parts yield node['inputs'][text_key].strip() AttributeError: 'list' object has no attribute 'strip'
Would it be an idea to have the ability to save SD info to images?
Could have it save by which parser you choose?
I've been considering adding that to Promptvision, but your idea of using this as a lib is much better.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.