CurtisDS / sd-model-preview-xd

Displays preview files for models.
MIT License
74 stars 8 forks source link

I'm developing something: MgM (Model Gallery Maker) {collaboration} #11

Closed cibernicola closed 1 year ago

cibernicola commented 1 year ago

Hello, since a few days ago I am developing a plugin for WebUI whose function is to generate a gallery for the models downloaded from civitai.com. It parses the Json data of each model and generates an html. It is in embryonic stage but it is functional and, together with model-preview-xd, it works quite well.

I have several more ideas to improve it, maybe we could collaborate?

some examples:

image image image

it is a fact that model management is a problem as well as something very important and useful.

CurtisDS commented 1 year ago

For me personally, I wrote something that scrapes civitai and creates an minimal offline version of their web page: image

What did you have in mind in terms of collaborating?

cibernicola commented 1 year ago

Integrate mgm inside model preview, for example, in order to automaitze and optmize as much as possible sort, get, an use all galeries.

CurtisDS commented 1 year ago

Thanks for the suggestion but right now Im going to decline. While Civitai is a great site for getting models from its not the only site to get models from so this feature wouldn't work for everyone. And to be honest, if I were going to do something like this I would probably adapt my own code that I'm already using. There are a couple reasons why I havent already done that:

  1. Civitai is changing regularly and so the extension would require a lot more maintenance.
  2. Some people are very particular with how they want things to look, so you're not going to please everyone anyway. And if someone isn't particular with how they want things to look they can always just use Ctrl+S on the civitai page right now and save the current page, with images, instructions and trigger words to use as their preview page without me having to do anything.

But by all means continue to work on your extension. Even as a separate extension I'm sure it would help some people.

TFWol commented 1 year ago

For me personally, I wrote something that scrapes civitai and creates an minimal offline version of their web page

@CurtisDS Nice. Would you mind sharing the snippet? Would be better than the time consuming thing I'm doing.

CurtisDS commented 1 year ago

@TFWol here is the code I use to create my preview pages for models from civitai: https://github.com/CurtisDS/minified-civitai/

TFWol commented 1 year ago

Sweet! Thanks a bunch, I'll be trying this out shortly.

cibernicola commented 1 year ago

I am close to finishing something, the idea is to unify criteria and efforts: Unite the work done by Civitai Helper, create a decent gallery locally that is accessible in the model preview tab xD.

An example: image

unai-ndz commented 1 year ago

Quick and dirty wrapper around minified-civitai/ to calculate the hashes of the models in a folder and match them to ids for minified-civitai to use. It also generates a simple .md with some info about the model and downloads the preview images, both in the folder where each model is located.

https://gist.github.com/unai-ndz/ca380c7aa65c9f2aa3b55df2bb0faab1 screenshots_3

CurtisDS commented 1 year ago

Quick and dirty wrapper around minified-civitai/ to calculate the hashes of the models in a folder and match them to ids for minified-civitai to use. It also generates a simple .md with some info about the model and downloads the preview images, both in the folder where each model is located.

have you looked at generateHTMLPreviews.py? most of that functionality already exists. Just FYI.