bbc-mc / sdweb-eagle-pnginfo Goto Github PK
View Code? Open in Web Editor NEWSend your creation image to Eagle with PNGinfo. Extension for Stable Diffusion UI by AUTOMATIC1111
Send your creation image to Eagle with PNGinfo. Extension for Stable Diffusion UI by AUTOMATIC1111
Is it possible to use eagle in Colab?
I checked the "Send all images to Eagle" checkbox, but Stable Diffusion images linked to Google Drive are not saved to eagle.
素敵なエクステンションをありがとうございます。
最近、SDXLの登場もあり、モデルを階層化するようになりました。
例えばmodels/Stable-diffusionに「XL」「SD1.5」というフォルダを作り、
Additinal tag patternに「Model」を指定して生成すると、Eagleでは
「Model: フォルダ名_モデルファイル名」というタグになります。
Save Generation info as Annotationがtrueの時のEagleのメモでは
「 Model: モデルファイル名」となっています。
現行使用は担保しつつ、Additinal tag patternに「Model_filename」のような
新たなパターン名を追加して、純粋なファイル名のみをタグ付けできるような
エンハンスは可能でしょうか?
私は過去にeagle-pnginfoを通さずに生成した画像が6GBあります。これらをこの拡張機能を通して保存する方法はありますか?
もしないなら、outputを参照してeagle-pnginfoを動作させる機能を追加して欲しいです。
Hello, would you be able to add a feature to this to scan all AI images in a pre-existing folder and then add their corresponding tags to eagle?
I received the following error when I ran the image generation in Google colab.
Is it not possible to use Google Colab?
アップスケールした画像には、promptなどの情報が含まれていないので不具合を起こしているように思います。
以下、エラー時のトレースバックです。
webui-docker-auto-1 | Traceback (most recent call last):
webui-docker-auto-1 | File "/stable-diffusion-webui/modules/script_callbacks.py", line 159, in image_saved_callback
webui-docker-auto-1 | c.callback(params)
webui-docker-auto-1 | File "/stable-diffusion-webui/extensions/sdweb-eagle-pnginfo/scripts/eagle-pnginfo.py", line 49, in on_image_saved
webui-docker-auto-1 | pos_prompt = params.p.prompt
webui-docker-auto-1 | AttributeError: 'NoneType' object has no attribute 'prompt'
module 'modules.shared' has no attribute 'loaded_hypernetwork'
module 'modules.shared' has no attribute 'loaded_hypernetwork'
'KDiffusionSampler' object has no attribute 'default_eta'
get_attr(...)
を利用して安全に値を取得するのが良さそうです- "Hypernet": lambda self: (None if shared.loaded_hypernetwork is None else shared.loaded_hypernetwork.name),
+ "Hypernet": lambda self: (None if getattr(shared, 'loaded_hypernetwork', None) is None else getattr(shared.loaded_hypernetwork, 'name', None)),
- "Hypernet strength": lambda self: (None if shared.loaded_hypernetwork is None or shared.opts.sd_hypernetwork_strength >= 1 else shared.opts.sd_hypernetwork_strength),
+ "Hypernet strength": lambda self: (None if getattr(shared, 'loaded_hypernetwork', None) is None or shared.opts.sd_hypernetwork_strength >= 1 else shared.opts.sd_hypernetwork_strength),
- "Eta": lambda self: (None if self.p.sampler is None or self.p.sampler.eta == self.p.sampler.default_eta else self.p.sampler.eta),
+ "Eta": lambda self: (None if self.p.sampler is None or self.p.sampler.eta == getattr(self.p.sampler, 'default_eta', None) else self.p.sampler.eta),
shared
から値を取得する際には存在チェックをしてから取得するのがベターかと思いますhttps://github.com/adieyal/sd-dynamic-prompts
Dynamic Promptsを使用している前提での話になり恐縮ですが、
promptに __seasons__
と入力している場合、期待される出力結果としては {summer|winter|autumn|spring}
のいずれかになります。
これが例えばsummerで生成された場合、メモ欄には summer
と記録されますがタグ覧では __seasons__
で記録されます。
promptの取得先に差があるようですが、これを summer
に統一する事は可能でしょうか?
他の拡張機能の影響による話のため対応する義務はなく、検討のみ頂けると幸いです。
設定:
Send all image to Eagle: checked
Save Generation info as Annotation: checked
Save positive prompt to Eagle as tags: checked
Save negative prompt as: None
Additinal tag pattern: Model
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.