diff --git a/Prompt_Generator/.github/ISSUE_TEMPLATE/bug_report.md b/Prompt_Generator/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000000000000000000000000000000000000..5f0fb531d6dcfe85f5572ff2b55d4accd6f5566b --- /dev/null +++ b/Prompt_Generator/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,30 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**What fork of Webui are you using (Eg: Automatic1111, vladmandic):** + + +**Additional context** +Add any other context about the problem here. diff --git a/Prompt_Generator/.github/ISSUE_TEMPLATE/custom.md b/Prompt_Generator/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000000000000000000000000000000000000..48d5f81fa422964dd1eea360efdecfc5dc9a6c87 --- /dev/null +++ b/Prompt_Generator/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/Prompt_Generator/.github/ISSUE_TEMPLATE/feature_request.md b/Prompt_Generator/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000000000000000000000000000000000000..bbcbbe7d61558adde3cbfd0c7a63a67c27ed6d30 --- /dev/null +++ b/Prompt_Generator/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/Prompt_Generator/.gitignore b/Prompt_Generator/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..a955dcd77bdcb17122cbb73ee977991e505c74c6 --- /dev/null +++ b/Prompt_Generator/.gitignore @@ -0,0 +1 @@ +/style.css \ No newline at end of file diff --git a/Prompt_Generator/README.md b/Prompt_Generator/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ef3e98d142ed4209abc709aa73208cab71edf3a6 --- /dev/null +++ b/Prompt_Generator/README.md @@ -0,0 +1,60 @@ +# Prompt Generator + +Adds a tab to the webui that allows the user to generate a prompt from a small base prompt. Based on [FredZhang7/distilgpt2-stable-diffusion-v2](https://huggingface.co/FredZhang7/distilgpt2-stable-diffusion-v2) and [Gustavosta/MagicPrompt-Stable-Diffusion](https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion). I did nothing apart from porting it to [AUTOMATIC1111 WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) + + + +![Screenshot 2023-04-29 000027](https://user-images.githubusercontent.com/8998556/235261664-2c92689d-9915-4543-8d6a-57a8ecd0f484.png) + + +## Installation + +1. Install [AUTOMATIC1111's Stable Diffusion Webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) +2. Clone this repository into the `extensions` folder inside the webui + +## Usage + +1. Write in the prompt in the *Start of the prompt* text box +2. Select which model you want to use +3. Click Generate and wait + +The initial use of the model may take longer as it needs to be downloaded to your machine for offline use. The model will be used on your device and will be stored in the default location of `*username*/.cache/huggingface/hub/models`. The entire process of generating results will be done on your local machine and not require internet access. + +## Parameters Explanation + +- **Start of the prompt**: As the name suggests, the start of the prompt that the generator should start with +- **Temperature**: A higher temperature will produce more diverse results, but with a higher risk of less coherent text +- **Top K**: Strategy is to sample from a shortlist of the top K tokens. This approach allows the other high-scoring tokens a chance of being picked. +- **Max Length**: the maximum number of tokens for the output of the model +- **Repetition Penalty**: The parameter for repetition penalty. 1.0 means no penalty. See [this paper](https://arxiv.org/pdf/1909.05858.pdf) for more details. Default setting is 1.2 +- **How Many To Generate**: The number of results to generate +- **Use blacklist?**: Using `.\extensions\stable-diffusion-webui-Prompt_Generator\blacklist.txt`. It will delete any matches to the generated result (case insensitive). Each item to be filtered out should be on a new line. *Be aware that it simply deletes it and doesn't generate more to make up for the lost words* +- **Use punctuation**: Allows the use of commas in the output + +## Models + +There are two 'default' models provided: + +### FredZhang7 + +Made by [FredZhang7](https://huggingface.co/FredZhang7) under creativeml-openrail-m license. + +Useful to get styles for a prompt. Eg: "A cat sitting" -> "A cat sitting on a chair, digital art. The room is made of clay and metal with the sun shining through in front trending at Artstation 4k uhd..." + +### MagicPrompt + +Made by [Gustavosta](https://huggingface.co/Gustavosta) under the MIT license. + +Useful to get more natural language prompts. Eg: "A cat sitting" -> "A cat sitting in a chair, wearing pair of sunglasses" + +*Be aware that sometimes the model fails to produce anything or less than the wanted amount, either try again or use a new prompt in that case* + +## Install more models + +To install more model to use, ensure that the models are hosted on [huggingface.co](https://huggingface.co) and edit the json file at `.\extensions\stable-diffusion-webui-Prompt_Generator\models.json` with the relevant information. Use the models in the file as an example + +You might need to restart the extension/reload the UI if new items are added onto the list + +## Credits + +Credits to both [FredZhang7](https://huggingface.co/FredZhang7) and [Gustavosta](https://huggingface.co/Gustavosta) diff --git a/Prompt_Generator/blacklist.txt b/Prompt_Generator/blacklist.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Prompt_Generator/install.py b/Prompt_Generator/install.py new file mode 100644 index 0000000000000000000000000000000000000000..c22dc0899df5b489bf4ef88e8f5fbdb1dccf9924 --- /dev/null +++ b/Prompt_Generator/install.py @@ -0,0 +1,5 @@ +import launch +if not launch.is_installed("transformers"): + launch.run_pip("install --upgrade transformers", "Requirement of Prompt-Maker") +if not launch.is_installed("torch"): + launch.run_pip("install --upgrade torch", "Requirement of Prompt-Maker") \ No newline at end of file diff --git a/Prompt_Generator/javascript/prompt_generator_hints.js b/Prompt_Generator/javascript/prompt_generator_hints.js new file mode 100644 index 0000000000000000000000000000000000000000..f2d1821d2595a2d4fdb5872126584b4f4c3e0901 --- /dev/null +++ b/Prompt_Generator/javascript/prompt_generator_hints.js @@ -0,0 +1,42 @@ +//Basically copied and adapted from AUTOMATIC1111 implementation of the main UI +// mouseover tooltips for various UI elements in the form of "UI element label"="Tooltip text". + +prompt_generator_titles = { + "Temperature": "A higher temperature will produce more diverse results, but with a higher risk of less coherent text", + "Max Length": "The maximum number of tokens for the output of the model", + "Top K": "Strategy is to sample from a shortlist of the top K tokens. This approach allows the other high-scoring tokens a chance of being picked.", + "Repetition Penalty": "The parameter for repetition penalty. 1.0 means no penalty. Default setting is 1.2. Paper explaining it is linked to Github's readme", + "How Many To Generate":"The number of results to generate. Not guaranteed if models fails to create them", + "Generate Using Magic Prompt":"Be aware that sometimes the model fails to produce anything or less than the wanted amount, either try again or use a new prompt in that case" +} + +onUiUpdate(function(){ + gradioApp().querySelectorAll('span, button, select, p').forEach(function(span){ + tooltip = prompt_generator_titles[span.textContent]; + + if(!tooltip){ + tooltip = prompt_generator_titles[span.value]; + } + + if(!tooltip){ + for (const c of span.classList) { + if (c in prompt_generator_titles) { + tooltip = prompt_generator_titles[c]; + break; + } + } + } + + if(tooltip){ + span.title = tooltip; + } + }) + + gradioApp().querySelectorAll('select').forEach(function(select){ + if (select.onchange != null) return; + + select.onchange = function(){ + select.title = prompt_generator_titles[select.value] || ""; + } + }) +}) diff --git a/Prompt_Generator/licence b/Prompt_Generator/licence new file mode 100644 index 0000000000000000000000000000000000000000..ff52a7ccbf10e7650135b038763b836277b4c97b --- /dev/null +++ b/Prompt_Generator/licence @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 imrayya + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Prompt_Generator/models.json b/Prompt_Generator/models.json new file mode 100644 index 0000000000000000000000000000000000000000..6080a8fd1dd393c57543c9b8b45b0e203c6e0dcb --- /dev/null +++ b/Prompt_Generator/models.json @@ -0,0 +1,12 @@ +[ + { + "Title":"Gustavosta", + "Tokenizer":"gpt2", + "Model":"Gustavosta/MagicPrompt-Dalle" + }, + { + "Title":"FredZhang7", + "Tokenizer":"distilgpt2", + "Model":"FredZhang7/distilgpt2-stable-diffusion-v2" + } +] \ No newline at end of file diff --git a/Prompt_Generator/scripts/prompt_generator.py b/Prompt_Generator/scripts/prompt_generator.py new file mode 100644 index 0000000000000000000000000000000000000000..9e301703ae7d46da90cabd3153f21af1383264dc --- /dev/null +++ b/Prompt_Generator/scripts/prompt_generator.py @@ -0,0 +1,270 @@ +""" +Copyright 2023 Imrayya + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +""" + + +import json +import re + +import gradio as gr +import modules +from pathlib import Path +from modules import script_callbacks +import modules.scripts as scripts +from transformers import GPT2LMHeadModel, GPT2Tokenizer + +result_prompt = "" +models = {} +max_no_results = 20 # TODO move to setting panel +base_dir = scripts.basedir() +model_file = Path(base_dir, "models.json") + + +class Model: + ''' + Small strut to hold data for the text generator + ''' + + def __init__(self, name, model, tokenizer) -> None: + self.name = name + self.model = model + self.tokenizer = tokenizer + pass + + +def populate_models(): + """Get the models that this extension can use via models.json + """ + # TODO add button to refresh and update model list + path = model_file + with open(path, 'r') as f: + data = json.load(f) + for item in data: + name = item["Title"] + model = item["Model"] + tokenizer = item["Tokenizer"] + models[name] = Model(name, model, tokenizer) + + +def add_to_prompt(prompt): # A holder TODO figure out how to get rid of it + return prompt + + +def get_list_blacklist(): + # Set the directory you want to start from + file_path = './extensions/stable-diffusion-webui-Prompt_Generator/blacklist.txt' + things_to_black_list = [] + with open(file_path, 'r') as f: + # Read each line in the file and append it to the list + for line in f: + things_to_black_list.append(line.rstrip()) + + return things_to_black_list + + +def on_ui_tabs(): + # Method to create the extended prompt + def generate_longer_generic(prompt, temperature, top_k, + max_length, repetition_penalty, + num_return_sequences, name, use_punctuation=False, + use_blacklist=False): # TODO make the progress bar work + """Generates a longer string from the input + + Args: + prompt (str): As the name suggests, the start of the prompt that the generator should start with. + + temperature (float): A higher temperature will produce more diverse results, but with a higher risk of less coherent text + + top_k (float): Strategy is to sample from a shortlist of the top K tokens. This approach allows the other high-scoring tokens a chance of being picked. + + max_length (int): the maximum number of tokens for the output of the model + + repetition_penalty (float): The parameter for repetition penalty. 1.0 means no penalty. Default setting is 1.2 + + num_return_sequences (int): The number of results to generate + + name (str): Which Model to use + + use_punctuation (bool): Allows the use of commas in the output. Defaults to False. + + use_blacklist (bool): It will delete any matches to the generated result (case insensitive). Each item to be filtered out should be on a new line. Defaults to False. + + Returns: + Returns only an error otherwise saves it in result_prompt + """ + try: + print("[Prompt_Generator]:","Loading Tokenizer") + tokenizer = GPT2Tokenizer.from_pretrained(models[name].tokenizer) + tokenizer.add_special_tokens({'pad_token': '[PAD]'}) + print("[Prompt_Generator]:","Loading Model") + model = GPT2LMHeadModel.from_pretrained(models[name].model) + except Exception as e: + print("[Prompt_Generator]:",f"Exception encountered while attempting to install tokenizer") + return gr.update(), f"Error: {e}" + try: + print("[Prompt_Generator]:",f"Generate new prompt from: \"{prompt}\" with {name}") + input_ids = tokenizer(prompt, return_tensors='pt').input_ids + if (use_punctuation): + output = model.generate(input_ids, do_sample=True, temperature=temperature, + top_k=round(top_k), max_length=max_length, + num_return_sequences=num_return_sequences, + repetition_penalty=float( + repetition_penalty), + early_stopping=True) + else: + output = model.generate(input_ids, do_sample=True, temperature=temperature, + top_k=round(top_k), max_length=max_length, + num_return_sequences=num_return_sequences, + repetition_penalty=float( + repetition_penalty), + penalty_alpha=0.6, no_repeat_ngram_size=1, + early_stopping=True) + print("[Prompt_Generator]:","Generation complete!") + tempString = "" + if (use_blacklist): + blacklist = get_list_blacklist() + for i in range(len(output)): + + tempString += tokenizer.decode( + output[i], skip_special_tokens=True) + "\n" + + if (use_blacklist): + for to_check in blacklist: + tempString = re.sub( + to_check, "", tempString, flags=re.IGNORECASE) + if (i == 0): + global result_prompt + + result_prompt = tempString + # print(result_prompt) + except Exception as e: + print("[Prompt_Generator]:", + f"Exception encountered while attempting to generate prompt: {e}") + return gr.update(), f"Error: {e}" + + def ui_dynamic_result_visible(num): + """Makes the results visible""" + k = int(num) + return [gr.Row.update(visible=True)]*k + [gr.Row.update(visible=False)]*(max_no_results-k) + + def ui_dynamic_result_prompts(): + """Populates the results with the prompts""" + + lines = result_prompt.splitlines() + num = len(lines) + result_list = [] + for i in range(int(max_no_results)): + if (i < num): + result_list.append(lines[i]) + else: + result_list.append("") + return result_list + + def ui_dynamic_result_batch(): + return result_prompt + + def save_prompt_to_file(path, append: bool): + if len(result_prompt) == 0: + print("[Prompt_Generator]:","Prompt is empty") + return + with open(path, encoding="utf-8", mode="a" if append else "w") as f: + f.write(result_prompt) + print("[Prompt_Generator]:","Prompt written to: ", path) + + # ---------------------------------------------------------------------------- + # UI structure + txt2img_prompt = modules.ui.txt2img_paste_fields[0][0] + img2img_prompt = modules.ui.img2img_paste_fields[0][0] + + with gr.Blocks(analytics_enabled=False) as prompt_generator: + # Handles UI for prompt creation + with gr.Column(): + with gr.Row(): + prompt_textbox = gr.Textbox( + lines=2, elem_id="promptTxt", label="Start of the prompt") + with gr.Column(): + gr.HTML( + "Mouse over the labels to access tooltips that provide explanations for the parameters.") + with gr.Row(): + temp_slider = gr.Slider( + elem_id="temp_slider", label="Temperature", interactive=True, minimum=0, maximum=1, value=0.9) + maxLength_slider = gr.Slider( + elem_id="max_length_slider", label="Max Length", interactive=True, minimum=1, maximum=200, step=1, value=90) + topK_slider = gr.Slider( + elem_id="top_k_slider", label="Top K", value=8, minimum=1, maximum=20, step=1, interactive=True) + with gr.Column(): + with gr.Row(): + repetitionPenalty_slider = gr.Slider( + elem_id="repetition_penalty_slider", label="Repetition Penalty", value=1.2, minimum=0.1, maximum=10, interactive=True) + numReturnSequences_slider = gr.Slider( + elem_id="num_return_sequences_slider", label="How Many To Generate", value=5, minimum=1, maximum=max_no_results, interactive=True, step=1) + with gr.Column(): + with gr.Row(): + useBlacklist_checkbox = gr.Checkbox(label="Use blacklist?") + gr.HTML(value="
\".\extensions\stable-diffusion-webui-Prompt_Generator\\blacklist.txt
\".artists to study extension by camenduru | github | twitter | youtube | hi-res images
All images generated with CompVis/stable-diffusion-v1-4 + artists.csv | License: Attribution 4.0 International (CC BY 4.0)
+ +
+ +## Previews + ++ +
+ ++ Copyright © 2021-present Catppuccin Org +
+ + diff --git a/catpuccin/assets/.gitkeep b/catpuccin/assets/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/catpuccin/assets/frappe.webp b/catpuccin/assets/frappe.webp new file mode 100644 index 0000000000000000000000000000000000000000..b622167c9ac9f8c8eb41dc2252c02adbfb7ebbb7 --- /dev/null +++ b/catpuccin/assets/frappe.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac07e5b65cb6e497cc74239d0f75a50d1404e4ea3bf7b9ff31d1e9aa015b8328 +size 97892 diff --git a/catpuccin/assets/latte.webp b/catpuccin/assets/latte.webp new file mode 100644 index 0000000000000000000000000000000000000000..23bebdc93d8ea11f205167d9ac368bf114c2b781 --- /dev/null +++ b/catpuccin/assets/latte.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9601899d6c4ebefd194a37e0fb73cd18f8357cf9a2cf92928dd77062fa17377c +size 97186 diff --git a/catpuccin/assets/macchiato.webp b/catpuccin/assets/macchiato.webp new file mode 100644 index 0000000000000000000000000000000000000000..07390ca0fb8dad1704a18f794f9384f047b43550 --- /dev/null +++ b/catpuccin/assets/macchiato.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a28da672b33dfa9a59c63ae61341b759820991300fbdd18d84965a278be7491b +size 99938 diff --git a/catpuccin/assets/mocha.webp b/catpuccin/assets/mocha.webp new file mode 100644 index 0000000000000000000000000000000000000000..4305182e9a26dc864d5fcc3bd8883f18d00c5898 --- /dev/null +++ b/catpuccin/assets/mocha.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6afa967e0ac158c16a8819defae9b9c5a6393eb858dcd037855209ab7deca0b0 +size 103522 diff --git a/catpuccin/assets/res.webp b/catpuccin/assets/res.webp new file mode 100644 index 0000000000000000000000000000000000000000..004e86174e12e52a94f369ec62ff1f95a01ecd62 --- /dev/null +++ b/catpuccin/assets/res.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1541e93373eb7da7a50ba1d2ed1234468423ec9eaae85261e88fa5061689350f +size 863074 diff --git a/catpuccin/flavors/frappe.css b/catpuccin/flavors/frappe.css new file mode 100644 index 0000000000000000000000000000000000000000..335347c1f74e2e3a4143c84e61706659b21afb73 --- /dev/null +++ b/catpuccin/flavors/frappe.css @@ -0,0 +1,354 @@ +:root { + --ctp-rosewater: #f2d5cf; + --ctp-flamingo: #eebebe; + --ctp-pink: #f4b8e4; + --ctp-mauve: #ca9ee6; + --ctp-red: #e78284; + --ctp-maroon: #ea999c; + --ctp-peach: #ef9f76; + --ctp-yellow: #e5c890; + --ctp-green: #a6d189; + --ctp-teal: #81c8be; + --ctp-sky: #99d1db; + --ctp-sapphire: #85c1dc; + --ctp-blue: #8caaee; + --ctp-lavender: #babbf1; + --ctp-text: #c6d0f5; + --ctp-subtext1: #b5bfe2; + --ctp-subtext0: #a5adce; + --ctp-overlay2: #949cbb; + --ctp-overlay1: #838ba7; + --ctp-overlay0: #737994; + --ctp-surface2: #626880; + --ctp-surface1: #51576d; + --ctp-surface0: #414559; + --ctp-base: #303446; + --ctp-mantle: #292c3c; + --ctp-crust: #232634; + --shadow: #010409; + --ctp-accent: var(--ctp-maroon); + color-scheme: light; +} + +:root, +.dark { + --body-background-fill: var(--background-fill-primary); + --body-text-color: var(--ctp-subtext0); + --color-accent-soft: var(--ctp-surface0); + --background-fill-primary: var(--ctp-mantle); + --background-fill-secondary: var(--ctp-base); + --border-color-accent: var(--ctp-surface0); + --border-color-primary: var(--ctp-surface1); + --link-text-color-active: var(--ctp-subtext0); + --link-text-color: var(--ctp-subtext0); + --link-text-color-hover: var(--ctp-accent); + --link-text-color-visited: var(--ctp-subtext0); + --body-text-color-subdued: var(--ctp-subtext0); + --shadow-spread: 1px; + --block-background-fill: var(--ctp-mantle); + --block-border-color: var(--border-color-primary); + --block_border_width: None; + --block-info-text-color: var(--body-text-color-subdued); + --block-label-background-fill: var(--background-fill-secondary); + --block-label-border-color: var(--border-color-primary); + --block_label_border_width: None; + --block-label-text-color: var(--ctp-text); + --block_shadow: None; + --block_title_background_fill: None; + --block_title_border_color: None; + --block_title_border_width: None; + --block-title-text-color: var(--ctp-text); + --panel-background-fill: var(--background-fill-secondary); + --panel-border-color: var(--border-color-primary); + --panel_border_width: None; + --checkbox-background-color: var(--ctp-surface1); + --checkbox-background-color-focus: var(--checkbox-background-color); + --checkbox-background-color-hover: var(--checkbox-background-color); + --checkbox-background-color-selected: var(--ctp-accent); + --checkbox-border-color: var(--ctp-surface0); + --checkbox-border-color-focus: var(--ctp-overlay0); + --checkbox-border-color-hover: var(--ctp-surface0); + --checkbox-border-color-selected: var(--ctp-overlay0); + --checkbox-border-width: var(--input-border-width); + --checkbox-label-background-fill: var(--ctp-surface0); + --checkbox-label-background-fill-hover: var(--ctp-surface0); + --checkbox-label-background-fill-selected: var( + --checkbox-label-background-fill + ); + --checkbox-label-border-color: var(--border-color-primary); + --checkbox-label-border-color-hover: var(--checkbox-label-border-color); + --checkbox-label-border-width: var(--input-border-width); + --checkbox-label-text-color: var(--body-text-color); + --checkbox-label-text-color-selected: var(--checkbox-label-text-color); + --error-background-fill: var(--background-fill-primary); + --error-border-color: var(--border-color-primary); + --error_border_width: None; + --error-text-color: var(--ctp-red); + --input-background-fill: var(--ctp-base); + --input-background-fill-focus: var(--input-background-fill); + --input-background-fill-hover: var(--input-background-fill); + --input-border-color: var(--border-color-primary); + --input-border-color-focus: var(--neutral-700); + --input-border-color-hover: var(--input-border-color); + --input_border_width: None; + --input-placeholder-color: var(--neutral-500); + --input_shadow: None; + --input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), + var(--shadow-inset); + --loader_color: None; + --slider_color: None; + --stat-background-fill: linear-gradient( + to right, + var(--primary-400), + var(--primary-600) + ); + --table-border-color: var(--neutral-700); + --table-even-background-fill: var(--neutral-950); + --table-odd-background-fill: var(--neutral-900); + --table-row-focus: var(--color-accent-soft); + --button-border-width: var(--input-border-width); + --button-cancel-background-fill: var(--ctp-red); + --button-cancel-background-fill-hover: var(--ctp-red); + --button-cancel-border-color: var(--ctp-red); + --button-cancel-border-color-hover: var(--button-cancel-border-color); + --button-cancel-text-color: var(--ctp-base); + --button-cancel-text-color-hover: var(--button-cancel-text-color); + --button-primary-background-fill: var(--ctp-accent); + --button-primary-background-fill-hover: var(--ctp-accent); + --button-primary-border-color: var(--ctp-accent); + --button-primary-border-color-hover: var(--button-primary-border-color); + --button-primary-text-color: var(--ctp-base); + --button-primary-text-color-hover: var(--button-primary-text-color); + --button-secondary-background-fill: var(--ctp-surface0); + --button-secondary-background-fill-hover: var(--ctp-surface0); + --button-secondary-border-color: var(--ctp-surface0); + --button-secondary-border-color-hover: var(--button-secondary-border-color); + --button-secondary-text-color: var(--ctp-text); + --button-secondary-text-color-hover: var(--button-secondary-text-color); +} + +.gradio-button:hover { + filter: brightness(130%); +} + +input[type='range']::-ms-track { + background: transparent; +} + +input[type='range']::-ms-fill-lower { + background: var(--ctp-accent); + border-radius: 10px; +} +input[type='range']::-ms-fill-upper { + background: var(--ctp-overlay0); + border-radius: 10px; +} + +input[type='range']:focus::-ms-fill-lower { + background: var(--ctp-accent); +} +input[type='range']:focus::-ms-fill-upper { + background: var(--ctp-overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type='number'] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--ctp-accent); + color: var(--shadow); +} + +.dark .progressDiv, +.progressDiv { + background-color: var(--ctp-surface0); +} + +input[type='range'] { + font-size: 1.5rem; +} + +input[type='range'] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--ctp-surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type='range'].win10-thumb { + color: var(--ctp-accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type='range'] { + color: var(--ctp-accent); + --track-color: var(--ctp-surface0); + } + + input[type='range'].win10-thumb { + color: var(--ctp-accent); + } +} + +/* === range commons === */ +input[type='range'] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type='range']:active { + cursor: grabbing; +} + +input[type='range']:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type='range'], +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + position: relative; +} + +input[type='range']::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 + 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / + 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type='range']:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type='range']:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type='range']::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / + 100% calc(var(--track-height) + 1px); +} + +input[type='range']:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type='range'], +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + background: #fff0; +} + +input[type='range']::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type='range']:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type='range']::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type='range']::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + filter: brightness(100%); +} + +input[type='range']:hover::-moz-range-thumb, +input[type='range']:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type='range']:active::-moz-range-thumb, +input[type='range']:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type='range']:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/latte.css b/catpuccin/flavors/latte.css new file mode 100644 index 0000000000000000000000000000000000000000..ae914653355cb841ac32899595ce609e8493a4d9 --- /dev/null +++ b/catpuccin/flavors/latte.css @@ -0,0 +1,354 @@ +:root { + --ctp-rosewater: #dc8a78; + --ctp-flamingo: #dd7878; + --ctp-pink: #ea76cb; + --ctp-mauve: #8839ef; + --ctp-red: #d20f39; + --ctp-maroon: #e64553; + --ctp-peach: #fe640b; + --ctp-yellow: #df8e1d; + --ctp-green: #40a02b; + --ctp-teal: #179299; + --ctp-sky: #04a5e5; + --ctp-sapphire: #209fb5; + --ctp-blue: #1e66f5; + --ctp-lavender: #7287fd; + --ctp-text: #4c4f69; + --ctp-subtext1: #5c5f77; + --ctp-subtext0: #6c6f85; + --ctp-overlay2: #7c7f93; + --ctp-overlay1: #8c8fa1; + --ctp-overlay0: #9ca0b0; + --ctp-surface2: #acb0be; + --ctp-surface1: #bcc0cc; + --ctp-surface0: #ccd0da; + --ctp-base: #eff1f5; + --ctp-mantle: #e6e9ef; + --ctp-crust: #dce0e8; + --shadow: #dbdfef; + --ctp-accent: var(--ctp-maroon); + color-scheme: light; +} + +:root, +.dark { + --body-background-fill: var(--background-fill-primary); + --body-text-color: var(--ctp-subtext0); + --color-accent-soft: var(--ctp-surface0); + --background-fill-primary: var(--ctp-mantle); + --background-fill-secondary: var(--ctp-base); + --border-color-accent: var(--ctp-surface0); + --border-color-primary: var(--ctp-surface1); + --link-text-color-active: var(--ctp-subtext0); + --link-text-color: var(--ctp-subtext0); + --link-text-color-hover: var(--ctp-accent); + --link-text-color-visited: var(--ctp-subtext0); + --body-text-color-subdued: var(--ctp-subtext0); + --shadow-spread: 1px; + --block-background-fill: var(--ctp-mantle); + --block-border-color: var(--border-color-primary); + --block_border_width: None; + --block-info-text-color: var(--body-text-color-subdued); + --block-label-background-fill: var(--background-fill-secondary); + --block-label-border-color: var(--border-color-primary); + --block_label_border_width: None; + --block-label-text-color: var(--ctp-text); + --block_shadow: None; + --block_title_background_fill: None; + --block_title_border_color: None; + --block_title_border_width: None; + --block-title-text-color: var(--ctp-text); + --panel-background-fill: var(--background-fill-secondary); + --panel-border-color: var(--border-color-primary); + --panel_border_width: None; + --checkbox-background-color: var(--ctp-surface1); + --checkbox-background-color-focus: var(--checkbox-background-color); + --checkbox-background-color-hover: var(--checkbox-background-color); + --checkbox-background-color-selected: var(--ctp-accent); + --checkbox-border-color: var(--ctp-surface0); + --checkbox-border-color-focus: var(--ctp-overlay0); + --checkbox-border-color-hover: var(--ctp-surface0); + --checkbox-border-color-selected: var(--ctp-overlay0); + --checkbox-border-width: var(--input-border-width); + --checkbox-label-background-fill: var(--ctp-surface0); + --checkbox-label-background-fill-hover: var(--ctp-surface0); + --checkbox-label-background-fill-selected: var( + --checkbox-label-background-fill + ); + --checkbox-label-border-color: var(--border-color-primary); + --checkbox-label-border-color-hover: var(--checkbox-label-border-color); + --checkbox-label-border-width: var(--input-border-width); + --checkbox-label-text-color: var(--body-text-color); + --checkbox-label-text-color-selected: var(--checkbox-label-text-color); + --error-background-fill: var(--background-fill-primary); + --error-border-color: var(--border-color-primary); + --error_border_width: None; + --error-text-color: var(--ctp-red); + --input-background-fill: var(--ctp-base); + --input-background-fill-focus: var(--input-background-fill); + --input-background-fill-hover: var(--input-background-fill); + --input-border-color: var(--border-color-primary); + --input-border-color-focus: var(--neutral-700); + --input-border-color-hover: var(--input-border-color); + --input_border_width: None; + --input-placeholder-color: var(--neutral-500); + --input_shadow: None; + --input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), + var(--shadow-inset); + --loader_color: None; + --slider_color: None; + --stat-background-fill: linear-gradient( + to right, + var(--primary-400), + var(--primary-600) + ); + --table-border-color: var(--neutral-700); + --table-even-background-fill: var(--neutral-950); + --table-odd-background-fill: var(--neutral-900); + --table-row-focus: var(--color-accent-soft); + --button-border-width: var(--input-border-width); + --button-cancel-background-fill: var(--ctp-red); + --button-cancel-background-fill-hover: var(--ctp-red); + --button-cancel-border-color: var(--ctp-red); + --button-cancel-border-color-hover: var(--button-cancel-border-color); + --button-cancel-text-color: var(--ctp-base); + --button-cancel-text-color-hover: var(--button-cancel-text-color); + --button-primary-background-fill: var(--ctp-accent); + --button-primary-background-fill-hover: var(--ctp-accent); + --button-primary-border-color: var(--ctp-accent); + --button-primary-border-color-hover: var(--button-primary-border-color); + --button-primary-text-color: var(--ctp-base); + --button-primary-text-color-hover: var(--button-primary-text-color); + --button-secondary-background-fill: var(--ctp-surface0); + --button-secondary-background-fill-hover: var(--ctp-surface0); + --button-secondary-border-color: var(--ctp-surface0); + --button-secondary-border-color-hover: var(--button-secondary-border-color); + --button-secondary-text-color: var(--ctp-text); + --button-secondary-text-color-hover: var(--button-secondary-text-color); +} + +.gradio-button:hover { + filter: brightness(130%); +} + +input[type='range']::-ms-track { + background: transparent; +} + +input[type='range']::-ms-fill-lower { + background: var(--ctp-accent); + border-radius: 10px; +} +input[type='range']::-ms-fill-upper { + background: var(--ctp-overlay0); + border-radius: 10px; +} + +input[type='range']:focus::-ms-fill-lower { + background: var(--ctp-accent); +} +input[type='range']:focus::-ms-fill-upper { + background: var(--ctp-overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type='number'] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--ctp-accent); + color: var(--shadow); +} + +.dark .progressDiv, +.progressDiv { + background-color: var(--ctp-surface0); +} + +input[type='range'] { + font-size: 1.5rem; +} + +input[type='range'] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--ctp-surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type='range'].win10-thumb { + color: var(--ctp-accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type='range'] { + color: var(--ctp-accent); + --track-color: var(--ctp-surface0); + } + + input[type='range'].win10-thumb { + color: var(--ctp-accent); + } +} + +/* === range commons === */ +input[type='range'] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type='range']:active { + cursor: grabbing; +} + +input[type='range']:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type='range'], +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + position: relative; +} + +input[type='range']::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 + 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / + 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type='range']:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type='range']:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type='range']::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / + 100% calc(var(--track-height) + 1px); +} + +input[type='range']:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type='range'], +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + background: #fff0; +} + +input[type='range']::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type='range']:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type='range']::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type='range']::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + filter: brightness(100%); +} + +input[type='range']:hover::-moz-range-thumb, +input[type='range']:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type='range']:active::-moz-range-thumb, +input[type='range']:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type='range']:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/legacy/frappe.css b/catpuccin/flavors/legacy/frappe.css new file mode 100644 index 0000000000000000000000000000000000000000..81d47f14c4b1cbdfec608429e5a40c60e3bc4f77 --- /dev/null +++ b/catpuccin/flavors/legacy/frappe.css @@ -0,0 +1,566 @@ +/* legacy */ +:root, *, #context-menu { + --rosewater: #f2d5cf; + --flamingo: #eebebe; + --pink: #f4b8e4; + --mauve: #ca9ee6; + --red: #e78284; + --maroon: #ea999c; + --peach: #ef9f76; + --yellow: #e5c890; + --green: #a6d189; + --teal: #81c8be; + --sky: #99d1db; + --sapphire: #85c1dc; + --blue: #8caaee; + --lavender: #babbf1; + --text: #c6d0f5; + --subtext1: #b5bfe2; + --subtext0: #a5adce; + --overlay2: #949cbb; + --overlay1: #838ba7; + --overlay0: #737994; + --surface2: #626880; + --surface1: #51576d; + --surface0: #414559; + --base: #303446; + --mantle: #292c3c; + --crust: #232634; + --shadow: #010409; + --accent: var(--maroon); + color-scheme: light; +} + +select, option { + background-color: var(--base); +} + +#setting_sd_model_checkpoint > :first-child{ + background-color: var(--base); +} + +#txt2img_prompt_container, +#img2img_prompt_container { + background-color: var(--mantle); +} + + +.dark .bg-white\/90, .bg-white\/90 { +background-color: var(--base); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box span.text-gray-500, .gr-block.gr-box span.text-gray-500, +.dark label.block span, label.block span { +background-color: var(--base); +border: transparent; +} + +.dark .dark\:text-gray-200, .\:text-gray-200{ +color: var(--text); +} + +.dark .dark\:bg-gray-950, .\:bg-gray-950 { + background-color: var(--crust); +} + +.dark .dark\:bg-gray-900, .\:bg-gray-900 { + background-color: var(--base); + border-radius: 10px; +} + +.dark .dark\:border-gray-700, .\:border-gray-700 { + border-color: var(--surface0); +} + +.dark .gr-panel, .gr-panel { + background-color: var(--mantle); +} + + +textarea, .gr-text-input { + background-color: var(--base) !important; +} + +.dark .bg-white, .bg-white { + background-color: var(--mantle); +} + +.dark .gr-compact, .gr-compact { + background-color: var(--base); +} + +.dark .gr-input, .gr-input { + border-color: var(--surface0); +} +.dark .gr-form, .gr-form, +.dark .gr-box, .gr-box { + background-color: transparent; + color: var(--text); +} +.dark .gr-check-radio, .gr-check-radio { + background-color: var(--base); +} + +.dark .gr-check-radio:focus, .gr-check-radio:focus, +.dark .gr-check-radio:checked, .gr-check-radio:checked { + background-color: var(--accent); +} + +.dark .gr-button-primary:hover, .gr-button-primary:hover { +filter: brightness(130%); +} +.dark .gr-button-primary, .gr-button-primary { +background-color: var(--accent) !important; +color: var(--shadow) +} + + +.dark .gr-button-secondary:hover, .gr-button-secondary:hover { +filter: brightness(120%); +} + +button, input, optgroup, select, textarea { +color: var(--accent); +} + +.dark .gr-input-label, .gr-input-label, +.dark .gr-button-secondary,.gr-button-secondary, +.gr-input-label, +.gr-button-secondary { + --tw-gradient-from: none; + --tw-gradient-to: none; + --tw-gradient-stops: none; + background-color: var(--base); + color: var(--text) +} + +.gr-button, +.dark .gr-button { +border-color:var(--surface0); +background-color: var(--base); +background-image: unset; +} + + +.livePreview { + background-color: var(--base) !important; + height: 60vh !important; + width: 100% !important; + border-radius: 10px !important; +} + +.gr-padded { +padding: .825rem .75rem; +} + + +#mode_extras > :first-child > .bg-white { +background-color: var(--base); +} + +#interrogate_col { +justify-content: center; +gap: 10px; +/* background: var(--base); */ +/* border-top-left-radius: 10px !important; */ +/* border-top-right-radius: 10px !important; */ +/* padding-top: 20px; */ +} + +#txt2img_toprow, +#img2img_toprow { +background-color: unset; +} + +#txt2img_actions_column, #img2img_actions_column { +padding: 10px; +margin: 5px; +border-radius: 10px !important; +background-color: var(--base); +} + +#img_inpaint_mask > div:nth-child(3), +#img_inpaint_base > div:nth-child(3){ +border-width: 1px; +border-color:var(--surface0); + +} + +#img2img_settings { +border-radius: 10px; +} + +#mode_img2img > :not(:first-child) { +border-width: 0px; +} + + +#txt2img_gallery, +#img2img_gallery, +#extras_gallery { +background-color: var(--base) !important; +} + +#img2img_copy_to_img2img > :not(:first-child) { +border-width: 1px !important; +border-color: var(--surface0) !important; +border-radius: 10px !important; +margin-left: 10px; +} + +#txt2img_interrupt, #img2img_interrupt { +background-color: var(--red) !important; +color: var(--mantle); +} + +#txt2img_skip, #img2img_skip { +background-color: var(--maroon) !important; +color: var(--mantle); +} + +#txt2img_batch_count, +#txt2img_width { + margin-bottom: 0.625vw; +} + +#txt2img_script_container > div > div { + margin: 0px 1vh 0.9vw 1vh; +} + +#txt2img_script_container:last-child > div{ + margin: unset; +} + +.boder, +.dark .border, .border, +.dark .border-gray-100, .border-gray-100, +.dark .border-gray-200, .border-gray-200, +.dark .border-gray-300, .border-gray-300, +.dark .\!border, .\!border, +.dark .\!border-gray-300, .\!border-gray-300 { + border-color: var(--surface0); +} + + +.container { +background-color: var(--crust); +} + +fieldset span.text-gray-500, +.gr-block.gr-box span.text-gray-500, +label.block span { +box-shadow: unset; +} + +.dark .text-gray-500, .text-gray-500 { +color: var(--text); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box, .gr-block.gr-box, +span.text-gray-500, +.dark label.block span, label.block span { + background-color: transparent; + border: transparent; +} + +.dark .text-gray-700, .text-gray-700, +.dark .text-gray-800, .text-gray-800, +.dark .text-gray-900, .text-gray-900, +.dark .\!text-gray-700, .\!text-gray-700, +.dark .\!text-gray-800, .\!text-gray-800 { +color: var(--text); +} + +#txt2img_settings > div { + margin-top: 2vh; + flex-grow: 0; + min-width: 30%; +} + +#tabs > :first-child { + background-color: var(--crust); +} + +#tabs{ + background-color: var(--mantle); +} + +#tab_txt2img > div { + background-color: var(--mantle); +} + +#tabs > div{ + border-width: 0px !important; + border-color:var(--surface0); +} + +#tabs > div:nth-child(1) { + flex-wrap: wrap-reverse; + background-color: var(--crust); +} +.tabs > :first-child { + border: none !important; + margin-bottom: -1px; + gap: 3px 0px; + background-color: var(--mantle); + padding-top: 5px; + z-index: 10; +} + +#img2img_img2img_tab { +border-width: 0px !important; +} + +#mode_img2img > div:nth-child(1) > .bg-white { +background-color: var(--base); +} + +#tab_extensions table td, #tab_extensions table th { +border: 1px solid var(--surface0); +} + +#extras_resize_mode > :first-child { +background-color: var(--base); +} + +#extras_resize_mode > :not(:first-child) { +background-color: var(--mantle) !important; +padding-top: 20px; +border-color: transparent; +border-radius: 0px 10px 10px 10px; +margin-bottom: 20px; + +} + +.tabs > :first-child > button { + border-radius: 8px 8px 0px 0px; + /* outline: 1px solid var(--base) !important; */ + border-color: var(--surface0); + border-width: 0px; + border-bottom-width: 0px; +} + + +#quicksettings { + background-color: transparent; +} + +input[type="range"]::-ms-track { + background: transparent; +} + +input[type="range"]::-ms-fill-lower { + background: var(--accent); + border-radius: 10px; +} +input[type="range"]::-ms-fill-upper { + background: var(--overlay0); + border-radius: 10px; +} + +input[type="range"]:focus::-ms-fill-lower { + background: var(--accent); +} +input[type="range"]:focus::-ms-fill-upper { + background: var(--overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type="number"] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--accent); + color: var(--shadow); +} + +.dark .progressDiv, .progressDiv { + background-color: var(--surface0); +} + +input[type="range"] { + font-size: 1.5rem; +} + +input[type="range"] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type="range"].win10-thumb { + color: var(--accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type="range"] { + color: var(--accent); + --track-color: var(--surface0); + } + + input[type="range"].win10-thumb { + color: var(--accent); + } +} + +/* === range commons === */ +input[type="range"] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type="range"]:active { + cursor: grabbing; +} + +input[type="range"]:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type="range"], +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + position: relative; +} + +input[type="range"]::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type="range"]:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type="range"]:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type="range"]::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / 100% calc(var(--track-height) + 1px); +} + +input[type="range"]:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type="range"], +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + background: #fff0; +} + +input[type="range"]::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type="range"]:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type="range"]::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type="range"]::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + filter: brightness(100%); +} + +input[type="range"]:hover::-moz-range-thumb, +input[type="range"]:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type="range"]:active::-moz-range-thumb, +input[type="range"]:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type="range"]:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/legacy/latte.css b/catpuccin/flavors/legacy/latte.css new file mode 100644 index 0000000000000000000000000000000000000000..ce49c9200f089a228b28a02effa6e840b762025f --- /dev/null +++ b/catpuccin/flavors/legacy/latte.css @@ -0,0 +1,566 @@ +/* legacy */ +:root, *, #context-menu{ + --rosewater: #dc8a78; + --flamingo: #dd7878; + --pink: #ea76cb; + --mauve: #8839ef; + --red: #d20f39; + --maroon: #e64553; + --peach: #fe640b; + --yellow: #df8e1d; + --green: #40a02b; + --teal: #179299; + --sky: #04a5e5; + --sapphire: #209fb5; + --blue: #1e66f5; + --lavender: #7287fd; + --text: #4c4f69; + --subtext1: #5c5f77; + --subtext0: #6c6f85; + --overlay2: #7c7f93; + --overlay1: #8c8fa1; + --overlay0: #9ca0b0; + --surface2: #acb0be; + --surface1: #bcc0cc; + --surface0: #ccd0da; + --base: #eff1f5; + --mantle: #e6e9ef; + --crust: #dce0e8; + --shadow: #dbdfef; + --accent: var(--maroon); + color-scheme: light; +} + +select, option { + background-color: var(--base); +} + +#setting_sd_model_checkpoint > :first-child{ + background-color: var(--base); +} + +#txt2img_prompt_container, +#img2img_prompt_container { + background-color: var(--mantle); +} + + +.dark .bg-white\/90, .bg-white\/90 { +background-color: var(--base); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box span.text-gray-500, .gr-block.gr-box span.text-gray-500, +.dark label.block span, label.block span { +background-color: var(--base); +border: transparent; +} + +.dark .dark\:text-gray-200, .\:text-gray-200{ +color: var(--text); +} + +.dark .dark\:bg-gray-950, .\:bg-gray-950 { + background-color: var(--crust); +} + +.dark .dark\:bg-gray-900, .\:bg-gray-900 { + background-color: var(--base); + border-radius: 10px; +} + +.dark .dark\:border-gray-700, .\:border-gray-700 { + border-color: var(--surface0); +} + +.dark .gr-panel, .gr-panel { + background-color: var(--mantle); +} + + +textarea, .gr-text-input { + background-color: var(--base) !important; +} + +.dark .bg-white, .bg-white { + background-color: var(--mantle); +} + +.dark .gr-compact, .gr-compact { + background-color: var(--base); +} + +.dark .gr-input, .gr-input { + border-color: var(--surface0); +} +.dark .gr-form, .gr-form, +.dark .gr-box, .gr-box { + background-color: transparent; + color: var(--text); +} +.dark .gr-check-radio, .gr-check-radio { + background-color: var(--base); +} + +.dark .gr-check-radio:focus, .gr-check-radio:focus, +.dark .gr-check-radio:checked, .gr-check-radio:checked { + background-color: var(--accent); +} + +.dark .gr-button-primary:hover, .gr-button-primary:hover { +filter: brightness(130%); +} +.dark .gr-button-primary, .gr-button-primary { +background-color: var(--accent) !important; +color: var(--shadow) +} + + +.dark .gr-button-secondary:hover, .gr-button-secondary:hover { +filter: brightness(120%); +} + +button, input, optgroup, select, textarea { +color: var(--accent); +} + +.dark .gr-input-label, .gr-input-label, +.dark .gr-button-secondary,.gr-button-secondary, +.gr-input-label, +.gr-button-secondary { + --tw-gradient-from: none; + --tw-gradient-to: none; + --tw-gradient-stops: none; + background-color: var(--base); + color: var(--text) +} + +.gr-button, +.dark .gr-button { +border-color:var(--surface0); +background-color: var(--base); +background-image: unset; +} + + +.livePreview { + background-color: var(--base) !important; + height: 60vh !important; + width: 100% !important; + border-radius: 10px !important; +} + +.gr-padded { +padding: .825rem .75rem; +} + + +#mode_extras > :first-child > .bg-white { +background-color: var(--base); +} + +#interrogate_col { +justify-content: center; +gap: 10px; +/* background: var(--base); */ +/* border-top-left-radius: 10px !important; */ +/* border-top-right-radius: 10px !important; */ +/* padding-top: 20px; */ +} + +#txt2img_toprow, +#img2img_toprow { +background-color: unset; +} + +#txt2img_actions_column, #img2img_actions_column { +padding: 10px; +margin: 5px; +border-radius: 10px !important; +background-color: var(--base); +} + +#img_inpaint_mask > div:nth-child(3), +#img_inpaint_base > div:nth-child(3){ +border-width: 1px; +border-color:var(--surface0); + +} + +#img2img_settings { +border-radius: 10px; +} + +#mode_img2img > :not(:first-child) { +border-width: 0px; +} + + +#txt2img_gallery, +#img2img_gallery, +#extras_gallery { +background-color: var(--base) !important; +} + +#img2img_copy_to_img2img > :not(:first-child) { +border-width: 1px !important; +border-color: var(--surface0) !important; +border-radius: 10px !important; +margin-left: 10px; +} + +#txt2img_interrupt, #img2img_interrupt { +background-color: var(--red) !important; +color: var(--mantle); +} + +#txt2img_skip, #img2img_skip { +background-color: var(--maroon) !important; +color: var(--mantle); +} + +#txt2img_batch_count, +#txt2img_width { + margin-bottom: 0.625vw; +} + +#txt2img_script_container > div > div { + margin: 0px 1vh 0.9vw 1vh; +} + +#txt2img_script_container:last-child > div{ + margin: unset; +} + +.boder, +.dark .border, .border, +.dark .border-gray-100, .border-gray-100, +.dark .border-gray-200, .border-gray-200, +.dark .border-gray-300, .border-gray-300, +.dark .\!border, .\!border, +.dark .\!border-gray-300, .\!border-gray-300 { + border-color: var(--surface0); +} + + +.container { +background-color: var(--crust); +} + +fieldset span.text-gray-500, +.gr-block.gr-box span.text-gray-500, +label.block span { +box-shadow: unset; +} + +.dark .text-gray-500, .text-gray-500 { +color: var(--text); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box, .gr-block.gr-box, +span.text-gray-500, +.dark label.block span, label.block span { + background-color: transparent; + border: transparent; +} + +.dark .text-gray-700, .text-gray-700, +.dark .text-gray-800, .text-gray-800, +.dark .text-gray-900, .text-gray-900, +.dark .\!text-gray-700, .\!text-gray-700, +.dark .\!text-gray-800, .\!text-gray-800 { +color: var(--text); +} + +#txt2img_settings > div { + margin-top: 2vh; + flex-grow: 0; + min-width: 30%; +} + +#tabs > :first-child { + background-color: var(--crust); +} + +#tabs{ + background-color: var(--mantle); +} + +#tab_txt2img > div { + background-color: var(--mantle); +} + +#tabs > div{ + border-width: 0px !important; + border-color:var(--surface0); +} + +#tabs > div:nth-child(1) { + flex-wrap: wrap-reverse; + background-color: var(--crust); +} +.tabs > :first-child { + border: none !important; + margin-bottom: -1px; + gap: 3px 0px; + background-color: var(--mantle); + padding-top: 5px; + z-index: 10; +} + +#img2img_img2img_tab { +border-width: 0px !important; +} + +#mode_img2img > div:nth-child(1) > .bg-white { +background-color: var(--base); +} + +#tab_extensions table td, #tab_extensions table th { +border: 1px solid var(--surface0); +} + +#extras_resize_mode > :first-child { +background-color: var(--base); +} + +#extras_resize_mode > :not(:first-child) { +background-color: var(--mantle) !important; +padding-top: 20px; +border-color: transparent; +border-radius: 0px 10px 10px 10px; +margin-bottom: 20px; + +} + +.tabs > :first-child > button { + border-radius: 8px 8px 0px 0px; + /* outline: 1px solid var(--base) !important; */ + border-color: var(--surface0); + border-width: 0px; + border-bottom-width: 0px; +} + + +#quicksettings { + background-color: transparent; +} + +input[type="range"]::-ms-track { + background: transparent; +} + +input[type="range"]::-ms-fill-lower { + background: var(--accent); + border-radius: 10px; +} +input[type="range"]::-ms-fill-upper { + background: var(--overlay0); + border-radius: 10px; +} + +input[type="range"]:focus::-ms-fill-lower { + background: var(--accent); +} +input[type="range"]:focus::-ms-fill-upper { + background: var(--overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type="number"] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--accent); + color: var(--shadow); +} + +.dark .progressDiv, .progressDiv { + background-color: var(--surface0); +} + +input[type="range"] { + font-size: 1.5rem; +} + +input[type="range"] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type="range"].win10-thumb { + color: var(--accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type="range"] { + color: var(--accent); + --track-color: var(--surface0); + } + + input[type="range"].win10-thumb { + color: var(--accent); + } +} + +/* === range commons === */ +input[type="range"] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type="range"]:active { + cursor: grabbing; +} + +input[type="range"]:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type="range"], +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + position: relative; +} + +input[type="range"]::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type="range"]:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type="range"]:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type="range"]::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / 100% calc(var(--track-height) + 1px); +} + +input[type="range"]:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type="range"], +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + background: #fff0; +} + +input[type="range"]::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type="range"]:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type="range"]::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type="range"]::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + filter: brightness(100%); +} + +input[type="range"]:hover::-moz-range-thumb, +input[type="range"]:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type="range"]:active::-moz-range-thumb, +input[type="range"]:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type="range"]:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/legacy/macchiato.css b/catpuccin/flavors/legacy/macchiato.css new file mode 100644 index 0000000000000000000000000000000000000000..1da485065616a1a6477721a4306b6a1c488cc4b6 --- /dev/null +++ b/catpuccin/flavors/legacy/macchiato.css @@ -0,0 +1,566 @@ +/* legacy */ +:root, *, #context-menu{ + --rosewater: #f4dbd6; + --flamingo: #f0c6c6; + --pink: #f5bde6; + --mauve: #c6a0f6; + --red: #ed8796; + --maroon: #ee99a0; + --peach: #f5a97f; + --yellow: #eed49f; + --green: #a6da95; + --teal: #8bd5ca; + --sky: #91d7e3; + --sapphire: #7dc4e4; + --blue: #8aadf4; + --lavender: #b7bdf8; + --text: #cad3f5; + --subtext1: #b8c0e0; + --subtext0: #a5adcb; + --overlay2: #939ab7; + --overlay1: #8087a2; + --overlay0: #6e738d; + --surface2: #5b6078; + --surface1: #494d64; + --surface0: #363a4f; + --base: #24273a; + --mantle: #1e2030; + --crust: #181926; + --shadow: #010409; + --accent: var(--maroon); + color-scheme: dark; +} + +select, option { + background-color: var(--base); +} + +#setting_sd_model_checkpoint > :first-child{ + background-color: var(--base); +} + +#txt2img_prompt_container, +#img2img_prompt_container { + background-color: var(--mantle); +} + + +.dark .bg-white\/90, .bg-white\/90 { +background-color: var(--base); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box span.text-gray-500, .gr-block.gr-box span.text-gray-500, +.dark label.block span, label.block span { +background-color: var(--base); +border: transparent; +} + +.dark .dark\:text-gray-200, .\:text-gray-200{ +color: var(--text); +} + +.dark .dark\:bg-gray-950, .\:bg-gray-950 { + background-color: var(--crust); +} + +.dark .dark\:bg-gray-900, .\:bg-gray-900 { + background-color: var(--base); + border-radius: 10px; +} + +.dark .dark\:border-gray-700, .\:border-gray-700 { + border-color: var(--surface0); +} + +.dark .gr-panel, .gr-panel { + background-color: var(--mantle); +} + + +textarea, .gr-text-input { + background-color: var(--base) !important; +} + +.dark .bg-white, .bg-white { + background-color: var(--mantle); +} + +.dark .gr-compact, .gr-compact { + background-color: var(--base); +} + +.dark .gr-input, .gr-input { + border-color: var(--surface0); +} +.dark .gr-form, .gr-form, +.dark .gr-box, .gr-box { + background-color: transparent; + color: var(--text); +} +.dark .gr-check-radio, .gr-check-radio { + background-color: var(--base); +} + +.dark .gr-check-radio:focus, .gr-check-radio:focus, +.dark .gr-check-radio:checked, .gr-check-radio:checked { + background-color: var(--accent); +} + +.dark .gr-button-primary:hover, .gr-button-primary:hover { +filter: brightness(130%); +} +.dark .gr-button-primary, .gr-button-primary { +background-color: var(--accent) !important; +color: var(--shadow) +} + + +.dark .gr-button-secondary:hover, .gr-button-secondary:hover { +filter: brightness(120%); +} + +button, input, optgroup, select, textarea { +color: var(--accent); +} + +.dark .gr-input-label, .gr-input-label, +.dark .gr-button-secondary,.gr-button-secondary, +.gr-input-label, +.gr-button-secondary { + --tw-gradient-from: none; + --tw-gradient-to: none; + --tw-gradient-stops: none; + background-color: var(--base); + color: var(--text) +} + +.gr-button, +.dark .gr-button { +border-color:var(--surface0); +background-color: var(--base); +background-image: unset; +} + + +.livePreview { + background-color: var(--base) !important; + height: 60vh !important; + width: 100% !important; + border-radius: 10px !important; +} + +.gr-padded { +padding: .825rem .75rem; +} + + +#mode_extras > :first-child > .bg-white { +background-color: var(--base); +} + +#interrogate_col { +justify-content: center; +gap: 10px; +/* background: var(--base); */ +/* border-top-left-radius: 10px !important; */ +/* border-top-right-radius: 10px !important; */ +/* padding-top: 20px; */ +} + +#txt2img_toprow, +#img2img_toprow { +background-color: unset; +} + +#txt2img_actions_column, #img2img_actions_column { +padding: 10px; +margin: 5px; +border-radius: 10px !important; +background-color: var(--base); +} + +#img_inpaint_mask > div:nth-child(3), +#img_inpaint_base > div:nth-child(3){ +border-width: 1px; +border-color:var(--surface0); + +} + +#img2img_settings { +border-radius: 10px; +} + +#mode_img2img > :not(:first-child) { +border-width: 0px; +} + + +#txt2img_gallery, +#img2img_gallery, +#extras_gallery { +background-color: var(--base) !important; +} + +#img2img_copy_to_img2img > :not(:first-child) { +border-width: 1px !important; +border-color: var(--surface0) !important; +border-radius: 10px !important; +margin-left: 10px; +} + +#txt2img_interrupt, #img2img_interrupt { +background-color: var(--red) !important; +color: var(--mantle); +} + +#txt2img_skip, #img2img_skip { +background-color: var(--maroon) !important; +color: var(--mantle); +} + +#txt2img_batch_count, +#txt2img_width { + margin-bottom: 0.625vw; +} + +#txt2img_script_container > div > div { + margin: 0px 1vh 0.9vw 1vh; +} + +#txt2img_script_container:last-child > div{ + margin: unset; +} + +.boder, +.dark .border, .border, +.dark .border-gray-100, .border-gray-100, +.dark .border-gray-200, .border-gray-200, +.dark .border-gray-300, .border-gray-300, +.dark .\!border, .\!border, +.dark .\!border-gray-300, .\!border-gray-300 { + border-color: var(--surface0); +} + + +.container { +background-color: var(--crust); +} + +fieldset span.text-gray-500, +.gr-block.gr-box span.text-gray-500, +label.block span { +box-shadow: unset; +} + +.dark .text-gray-500, .text-gray-500 { +color: var(--text); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box, .gr-block.gr-box, +span.text-gray-500, +.dark label.block span, label.block span { + background-color: transparent; + border: transparent; +} + +.dark .text-gray-700, .text-gray-700, +.dark .text-gray-800, .text-gray-800, +.dark .text-gray-900, .text-gray-900, +.dark .\!text-gray-700, .\!text-gray-700, +.dark .\!text-gray-800, .\!text-gray-800 { +color: var(--text); +} + +#txt2img_settings > div { + margin-top: 2vh; + flex-grow: 0; + min-width: 30%; +} + +#tabs > :first-child { + background-color: var(--crust); +} + +#tabs{ + background-color: var(--mantle); +} + +#tab_txt2img > div { + background-color: var(--mantle); +} + +#tabs > div{ + border-width: 0px !important; + border-color:var(--surface0); +} + +#tabs > div:nth-child(1) { + flex-wrap: wrap-reverse; + background-color: var(--crust); +} +.tabs > :first-child { + border: none !important; + margin-bottom: -1px; + gap: 3px 0px; + background-color: var(--mantle); + padding-top: 5px; + z-index: 10; +} + +#img2img_img2img_tab { +border-width: 0px !important; +} + +#mode_img2img > div:nth-child(1) > .bg-white { +background-color: var(--base); +} + +#tab_extensions table td, #tab_extensions table th { +border: 1px solid var(--surface0); +} + +#extras_resize_mode > :first-child { +background-color: var(--base); +} + +#extras_resize_mode > :not(:first-child) { +background-color: var(--mantle) !important; +padding-top: 20px; +border-color: transparent; +border-radius: 0px 10px 10px 10px; +margin-bottom: 20px; + +} + +.tabs > :first-child > button { + border-radius: 8px 8px 0px 0px; + /* outline: 1px solid var(--base) !important; */ + border-color: var(--surface0); + border-width: 0px; + border-bottom-width: 0px; +} + + +#quicksettings { + background-color: transparent; +} + +input[type="range"]::-ms-track { + background: transparent; +} + +input[type="range"]::-ms-fill-lower { + background: var(--accent); + border-radius: 10px; +} +input[type="range"]::-ms-fill-upper { + background: var(--overlay0); + border-radius: 10px; +} + +input[type="range"]:focus::-ms-fill-lower { + background: var(--accent); +} +input[type="range"]:focus::-ms-fill-upper { + background: var(--overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type="number"] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--accent); + color: var(--shadow); +} + +.dark .progressDiv, .progressDiv { + background-color: var(--surface0); +} + +input[type="range"] { + font-size: 1.5rem; +} + +input[type="range"] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type="range"].win10-thumb { + color: var(--accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type="range"] { + color: var(--accent); + --track-color: var(--surface0); + } + + input[type="range"].win10-thumb { + color: var(--accent); + } +} + +/* === range commons === */ +input[type="range"] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type="range"]:active { + cursor: grabbing; +} + +input[type="range"]:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type="range"], +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + position: relative; +} + +input[type="range"]::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type="range"]:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type="range"]:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type="range"]::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / 100% calc(var(--track-height) + 1px); +} + +input[type="range"]:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type="range"], +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + background: #fff0; +} + +input[type="range"]::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type="range"]:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type="range"]::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type="range"]::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + filter: brightness(100%); +} + +input[type="range"]:hover::-moz-range-thumb, +input[type="range"]:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type="range"]:active::-moz-range-thumb, +input[type="range"]:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type="range"]:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/legacy/mocha.css b/catpuccin/flavors/legacy/mocha.css new file mode 100644 index 0000000000000000000000000000000000000000..21b2a1b8b7cedb8c6ddd3b6db8ed1355575147e9 --- /dev/null +++ b/catpuccin/flavors/legacy/mocha.css @@ -0,0 +1,568 @@ +/* legacy */ +:root, +*, +#context-menu { + --rosewater: #f5e0dc; + --flamingo: #f2cdcd; + --pink: #f5c2e7; + --mauve: #cba6f7; + --red: #f38ba8; + --maroon: #eba0ac; + --peach: #fab387; + --yellow: #f9e2af; + --green: #a6e3a1; + --teal: #94e2d5; + --sky: #89dceb; + --sapphire: #74c7ec; + --lavender: #b4befe; + --blue: #89b4fa; + --text: #cdd6f4; + --subtext1: #bac2de; + --subtext0: #a6adc8; + --overlay2: #9399b2; + --overlay1: #7f849c; + --overlay0: #6c7086; + --surface2: #585b70; + --surface1: #45475a; + --surface0: #313244; + --base: #1e1e2e; + --mantle: #181825; + --crust: #11111b; + --shadow: #010409; + --accent: var(--maroon); + color-scheme: dark; +} + +select, option { + background-color: var(--base); +} + +#setting_sd_model_checkpoint > :first-child{ + background-color: var(--base); +} + +#txt2img_prompt_container, +#img2img_prompt_container { + background-color: var(--mantle); +} + + +.dark .bg-white\/90, .bg-white\/90 { +background-color: var(--base); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box span.text-gray-500, .gr-block.gr-box span.text-gray-500, +.dark label.block span, label.block span { +background-color: var(--base); +border: transparent; +} + +.dark .dark\:text-gray-200, .\:text-gray-200{ +color: var(--text); +} + +.dark .dark\:bg-gray-950, .\:bg-gray-950 { + background-color: var(--crust); +} + +.dark .dark\:bg-gray-900, .\:bg-gray-900 { + background-color: var(--base); + border-radius: 10px; +} + +.dark .dark\:border-gray-700, .\:border-gray-700 { + border-color: var(--surface0); +} + +.dark .gr-panel, .gr-panel { + background-color: var(--mantle); +} + + +textarea, .gr-text-input { + background-color: var(--base) !important; +} + +.dark .bg-white, .bg-white { + background-color: var(--mantle); +} + +.dark .gr-compact, .gr-compact { + background-color: var(--base); +} + +.dark .gr-input, .gr-input { + border-color: var(--surface0); +} +.dark .gr-form, .gr-form, +.dark .gr-box, .gr-box { + background-color: transparent; + color: var(--text); +} +.dark .gr-check-radio, .gr-check-radio { + background-color: var(--base); +} + +.dark .gr-check-radio:focus, .gr-check-radio:focus, +.dark .gr-check-radio:checked, .gr-check-radio:checked { + background-color: var(--accent); +} + +.dark .gr-button-primary:hover, .gr-button-primary:hover { +filter: brightness(130%); +} +.dark .gr-button-primary, .gr-button-primary { +background-color: var(--accent) !important; +color: var(--shadow) +} + + +.dark .gr-button-secondary:hover, .gr-button-secondary:hover { +filter: brightness(120%); +} + +button, input, optgroup, select, textarea { +color: var(--accent); +} + +.dark .gr-input-label, .gr-input-label, +.dark .gr-button-secondary,.gr-button-secondary, +.gr-input-label, +.gr-button-secondary { + --tw-gradient-from: none; + --tw-gradient-to: none; + --tw-gradient-stops: none; + background-color: var(--base); + color: var(--text) +} + +.gr-button, +.dark .gr-button { +border-color:var(--surface0); +background-color: var(--base); +background-image: unset; +} + + +.livePreview { + background-color: var(--base) !important; + height: 60vh !important; + width: 100% !important; + border-radius: 10px !important; +} + +.gr-padded { +padding: .825rem .75rem; +} + + +#mode_extras > :first-child > .bg-white { +background-color: var(--base); +} + +#interrogate_col { +justify-content: center; +gap: 10px; +/* background: var(--base); */ +/* border-top-left-radius: 10px !important; */ +/* border-top-right-radius: 10px !important; */ +/* padding-top: 20px; */ +} + +#txt2img_toprow, +#img2img_toprow { +background-color: unset; +} + +#txt2img_actions_column, #img2img_actions_column { +padding: 10px; +margin: 5px; +border-radius: 10px !important; +background-color: var(--base); +} + +#img_inpaint_mask > div:nth-child(3), +#img_inpaint_base > div:nth-child(3){ +border-width: 1px; +border-color:var(--surface0); + +} + +#img2img_settings { +border-radius: 10px; +} + +#mode_img2img > :not(:first-child) { +border-width: 0px; +} + + +#txt2img_gallery, +#img2img_gallery, +#extras_gallery { +background-color: var(--base) !important; +} + +#img2img_copy_to_img2img > :not(:first-child) { +border-width: 1px !important; +border-color: var(--surface0) !important; +border-radius: 10px !important; +margin-left: 10px; +} + +#txt2img_interrupt, #img2img_interrupt { +background-color: var(--red) !important; +color: var(--mantle); +} + +#txt2img_skip, #img2img_skip { +background-color: var(--maroon) !important; +color: var(--mantle); +} + +#txt2img_batch_count, +#txt2img_width { + margin-bottom: 0.625vw; +} + +#txt2img_script_container > div > div { + margin: 0px 1vh 0.9vw 1vh; +} + +#txt2img_script_container:last-child > div{ + margin: unset; +} + +.boder, +.dark .border, .border, +.dark .border-gray-100, .border-gray-100, +.dark .border-gray-200, .border-gray-200, +.dark .border-gray-300, .border-gray-300, +.dark .\!border, .\!border, +.dark .\!border-gray-300, .\!border-gray-300 { + border-color: var(--surface0); +} + + +.container { +background-color: var(--crust); +} + +fieldset span.text-gray-500, +.gr-block.gr-box span.text-gray-500, +label.block span { +box-shadow: unset; +} + +.dark .text-gray-500, .text-gray-500 { +color: var(--text); +} + +.dark fieldset span.text-gray-500, fieldset span.text-gray-500, +.dark .gr-block.gr-box, .gr-block.gr-box, +span.text-gray-500, +.dark label.block span, label.block span { + background-color: transparent; + border: transparent; +} + +.dark .text-gray-700, .text-gray-700, +.dark .text-gray-800, .text-gray-800, +.dark .text-gray-900, .text-gray-900, +.dark .\!text-gray-700, .\!text-gray-700, +.dark .\!text-gray-800, .\!text-gray-800 { +color: var(--text); +} + +#txt2img_settings > div { + margin-top: 2vh; + flex-grow: 0; + min-width: 30%; +} + +#tabs > :first-child { + background-color: var(--crust); +} + +#tabs{ + background-color: var(--mantle); +} + +#tab_txt2img > div { + background-color: var(--mantle); +} + +#tabs > div{ + border-width: 0px !important; + border-color:var(--surface0); +} + +#tabs > div:nth-child(1) { + flex-wrap: wrap-reverse; + background-color: var(--crust); +} +.tabs > :first-child { + border: none !important; + margin-bottom: -1px; + gap: 3px 0px; + background-color: var(--mantle); + padding-top: 5px; + z-index: 10; +} + +#img2img_img2img_tab { +border-width: 0px !important; +} + +#mode_img2img > div:nth-child(1) > .bg-white { +background-color: var(--base); +} + +#tab_extensions table td, #tab_extensions table th { +border: 1px solid var(--surface0); +} + +#extras_resize_mode > :first-child { +background-color: var(--base); +} + +#extras_resize_mode > :not(:first-child) { +background-color: var(--mantle) !important; +padding-top: 20px; +border-color: transparent; +border-radius: 0px 10px 10px 10px; +margin-bottom: 20px; + +} + +.tabs > :first-child > button { + border-radius: 8px 8px 0px 0px; + /* outline: 1px solid var(--base) !important; */ + border-color: var(--surface0); + border-width: 0px; + border-bottom-width: 0px; +} + + +#quicksettings { + background-color: transparent; +} + +input[type="range"]::-ms-track { + background: transparent; +} + +input[type="range"]::-ms-fill-lower { + background: var(--accent); + border-radius: 10px; +} +input[type="range"]::-ms-fill-upper { + background: var(--overlay0); + border-radius: 10px; +} + +input[type="range"]:focus::-ms-fill-lower { + background: var(--accent); +} +input[type="range"]:focus::-ms-fill-upper { + background: var(--overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type="number"] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--accent); + color: var(--shadow); +} + +.dark .progressDiv, .progressDiv { + background-color: var(--surface0); +} + +input[type="range"] { + font-size: 1.5rem; +} + +input[type="range"] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type="range"].win10-thumb { + color: var(--accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type="range"] { + color: var(--accent); + --track-color: var(--surface0); + } + + input[type="range"].win10-thumb { + color: var(--accent); + } +} + +/* === range commons === */ +input[type="range"] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type="range"]:active { + cursor: grabbing; +} + +input[type="range"]:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type="range"], +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-webkit-slider-runnable-track, +input[type="range"]::-webkit-slider-thumb { + position: relative; +} + +input[type="range"]::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type="range"]:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type="range"]:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type="range"]::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / 100% calc(var(--track-height) + 1px); +} + +input[type="range"]:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type="range"], +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + background: #fff0; +} + +input[type="range"]::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type="range"]:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type="range"]::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type="range"]::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type="range"]::-moz-range-track, +input[type="range"]::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type="range"]::-moz-range-thumb, +input[type="range"]::-moz-range-progress { + filter: brightness(100%); +} + +input[type="range"]:hover::-moz-range-thumb, +input[type="range"]:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type="range"]:active::-moz-range-thumb, +input[type="range"]:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type="range"]:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/macchiato.css b/catpuccin/flavors/macchiato.css new file mode 100644 index 0000000000000000000000000000000000000000..4fedf947ccc514149ea32cb72dcb94ac741a2818 --- /dev/null +++ b/catpuccin/flavors/macchiato.css @@ -0,0 +1,354 @@ +:root { + --ctp-rosewater: #f4dbd6; + --ctp-flamingo: #f0c6c6; + --ctp-pink: #f5bde6; + --ctp-mauve: #c6a0f6; + --ctp-red: #ed8796; + --ctp-maroon: #ee99a0; + --ctp-peach: #f5a97f; + --ctp-yellow: #eed49f; + --ctp-green: #a6da95; + --ctp-teal: #8bd5ca; + --ctp-sky: #91d7e3; + --ctp-sapphire: #7dc4e4; + --ctp-blue: #8aadf4; + --ctp-lavender: #b7bdf8; + --ctp-text: #cad3f5; + --ctp-subtext1: #b8c0e0; + --ctp-subtext0: #a5adcb; + --ctp-overlay2: #939ab7; + --ctp-overlay1: #8087a2; + --ctp-overlay0: #6e738d; + --ctp-surface2: #5b6078; + --ctp-surface1: #494d64; + --ctp-surface0: #363a4f; + --ctp-base: #24273a; + --ctp-mantle: #1e2030; + --ctp-crust: #181926; + --shadow: #010409; + --ctp-accent: var(--ctp-maroon); + color-scheme: dark; +} + +:root, +.dark { + --body-background-fill: var(--background-fill-primary); + --body-text-color: var(--ctp-subtext0); + --color-accent-soft: var(--ctp-surface0); + --background-fill-primary: var(--ctp-mantle); + --background-fill-secondary: var(--ctp-base); + --border-color-accent: var(--ctp-surface0); + --border-color-primary: var(--ctp-surface1); + --link-text-color-active: var(--ctp-subtext0); + --link-text-color: var(--ctp-subtext0); + --link-text-color-hover: var(--ctp-accent); + --link-text-color-visited: var(--ctp-subtext0); + --body-text-color-subdued: var(--ctp-subtext0); + --shadow-spread: 1px; + --block-background-fill: var(--ctp-mantle); + --block-border-color: var(--border-color-primary); + --block_border_width: None; + --block-info-text-color: var(--body-text-color-subdued); + --block-label-background-fill: var(--background-fill-secondary); + --block-label-border-color: var(--border-color-primary); + --block_label_border_width: None; + --block-label-text-color: var(--ctp-text); + --block_shadow: None; + --block_title_background_fill: None; + --block_title_border_color: None; + --block_title_border_width: None; + --block-title-text-color: var(--ctp-text); + --panel-background-fill: var(--background-fill-secondary); + --panel-border-color: var(--border-color-primary); + --panel_border_width: None; + --checkbox-background-color: var(--ctp-surface1); + --checkbox-background-color-focus: var(--checkbox-background-color); + --checkbox-background-color-hover: var(--checkbox-background-color); + --checkbox-background-color-selected: var(--ctp-accent); + --checkbox-border-color: var(--ctp-surface0); + --checkbox-border-color-focus: var(--ctp-overlay0); + --checkbox-border-color-hover: var(--ctp-surface0); + --checkbox-border-color-selected: var(--ctp-overlay0); + --checkbox-border-width: var(--input-border-width); + --checkbox-label-background-fill: var(--ctp-surface0); + --checkbox-label-background-fill-hover: var(--ctp-surface0); + --checkbox-label-background-fill-selected: var( + --checkbox-label-background-fill + ); + --checkbox-label-border-color: var(--border-color-primary); + --checkbox-label-border-color-hover: var(--checkbox-label-border-color); + --checkbox-label-border-width: var(--input-border-width); + --checkbox-label-text-color: var(--body-text-color); + --checkbox-label-text-color-selected: var(--checkbox-label-text-color); + --error-background-fill: var(--background-fill-primary); + --error-border-color: var(--border-color-primary); + --error_border_width: None; + --error-text-color: var(--ctp-red); + --input-background-fill: var(--ctp-base); + --input-background-fill-focus: var(--input-background-fill); + --input-background-fill-hover: var(--input-background-fill); + --input-border-color: var(--border-color-primary); + --input-border-color-focus: var(--neutral-700); + --input-border-color-hover: var(--input-border-color); + --input_border_width: None; + --input-placeholder-color: var(--neutral-500); + --input_shadow: None; + --input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), + var(--shadow-inset); + --loader_color: None; + --slider_color: None; + --stat-background-fill: linear-gradient( + to right, + var(--primary-400), + var(--primary-600) + ); + --table-border-color: var(--neutral-700); + --table-even-background-fill: var(--neutral-950); + --table-odd-background-fill: var(--neutral-900); + --table-row-focus: var(--color-accent-soft); + --button-border-width: var(--input-border-width); + --button-cancel-background-fill: var(--ctp-red); + --button-cancel-background-fill-hover: var(--ctp-red); + --button-cancel-border-color: var(--ctp-red); + --button-cancel-border-color-hover: var(--button-cancel-border-color); + --button-cancel-text-color: var(--ctp-base); + --button-cancel-text-color-hover: var(--button-cancel-text-color); + --button-primary-background-fill: var(--ctp-accent); + --button-primary-background-fill-hover: var(--ctp-accent); + --button-primary-border-color: var(--ctp-accent); + --button-primary-border-color-hover: var(--button-primary-border-color); + --button-primary-text-color: var(--ctp-base); + --button-primary-text-color-hover: var(--button-primary-text-color); + --button-secondary-background-fill: var(--ctp-surface0); + --button-secondary-background-fill-hover: var(--ctp-surface0); + --button-secondary-border-color: var(--ctp-surface0); + --button-secondary-border-color-hover: var(--button-secondary-border-color); + --button-secondary-text-color: var(--ctp-text); + --button-secondary-text-color-hover: var(--button-secondary-text-color); +} + +.gradio-button:hover { + filter: brightness(130%); +} + +input[type='range']::-ms-track { + background: transparent; +} + +input[type='range']::-ms-fill-lower { + background: var(--ctp-accent); + border-radius: 10px; +} +input[type='range']::-ms-fill-upper { + background: var(--ctp-overlay0); + border-radius: 10px; +} + +input[type='range']:focus::-ms-fill-lower { + background: var(--ctp-accent); +} +input[type='range']:focus::-ms-fill-upper { + background: var(--ctp-overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type='number'] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--ctp-accent); + color: var(--shadow); +} + +.dark .progressDiv, +.progressDiv { + background-color: var(--ctp-surface0); +} + +input[type='range'] { + font-size: 1.5rem; +} + +input[type='range'] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--ctp-surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type='range'].win10-thumb { + color: var(--ctp-accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type='range'] { + color: var(--ctp-accent); + --track-color: var(--ctp-surface0); + } + + input[type='range'].win10-thumb { + color: var(--ctp-accent); + } +} + +/* === range commons === */ +input[type='range'] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type='range']:active { + cursor: grabbing; +} + +input[type='range']:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type='range'], +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + position: relative; +} + +input[type='range']::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 + 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / + 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type='range']:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type='range']:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type='range']::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / + 100% calc(var(--track-height) + 1px); +} + +input[type='range']:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type='range'], +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + background: #fff0; +} + +input[type='range']::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type='range']:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type='range']::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type='range']::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + filter: brightness(100%); +} + +input[type='range']:hover::-moz-range-thumb, +input[type='range']:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type='range']:active::-moz-range-thumb, +input[type='range']:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type='range']:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/flavors/mocha.css b/catpuccin/flavors/mocha.css new file mode 100644 index 0000000000000000000000000000000000000000..6fd7db7eec4fabb015e95e9cbc76e6ba468362ca --- /dev/null +++ b/catpuccin/flavors/mocha.css @@ -0,0 +1,354 @@ +:root { + --ctp-rosewater: #f5e0dc; + --ctp-flamingo: #f2cdcd; + --ctp-pink: #f5c2e7; + --ctp-mauve: #cba6f7; + --ctp-red: #f38ba8; + --ctp-maroon: #eba0ac; + --ctp-peach: #fab387; + --ctp-yellow: #f9e2af; + --ctp-green: #a6e3a1; + --ctp-teal: #94e2d5; + --ctp-sky: #89dceb; + --ctp-sapphire: #74c7ec; + --ctp-lavender: #b4befe; + --ctp-blue: #89b4fa; + --ctp-text: #cdd6f4; + --ctp-subtext1: #bac2de; + --ctp-subtext0: #a6adc8; + --ctp-overlay2: #9399b2; + --ctp-overlay1: #7f849c; + --ctp-overlay0: #6c7086; + --ctp-surface2: #585b70; + --ctp-surface1: #45475a; + --ctp-surface0: #313244; + --ctp-base: #1e1e2e; + --ctp-mantle: #181825; + --ctp-crust: #11111b; + --shadow: #010409; + --ctp-accent: var(--ctp-maroon); + color-scheme: dark; +} + +:root, +.dark { + --body-background-fill: var(--background-fill-primary); + --body-text-color: var(--ctp-subtext0); + --color-accent-soft: var(--ctp-surface0); + --background-fill-primary: var(--ctp-mantle); + --background-fill-secondary: var(--ctp-base); + --border-color-accent: var(--ctp-surface0); + --border-color-primary: var(--ctp-surface1); + --link-text-color-active: var(--ctp-subtext0); + --link-text-color: var(--ctp-subtext0); + --link-text-color-hover: var(--ctp-accent); + --link-text-color-visited: var(--ctp-subtext0); + --body-text-color-subdued: var(--ctp-subtext0); + --shadow-spread: 1px; + --block-background-fill: var(--ctp-mantle); + --block-border-color: var(--border-color-primary); + --block_border_width: None; + --block-info-text-color: var(--body-text-color-subdued); + --block-label-background-fill: var(--background-fill-secondary); + --block-label-border-color: var(--border-color-primary); + --block_label_border_width: None; + --block-label-text-color: var(--ctp-text); + --block_shadow: None; + --block_title_background_fill: None; + --block_title_border_color: None; + --block_title_border_width: None; + --block-title-text-color: var(--ctp-text); + --panel-background-fill: var(--background-fill-secondary); + --panel-border-color: var(--border-color-primary); + --panel_border_width: None; + --checkbox-background-color: var(--ctp-surface1); + --checkbox-background-color-focus: var(--checkbox-background-color); + --checkbox-background-color-hover: var(--checkbox-background-color); + --checkbox-background-color-selected: var(--ctp-accent); + --checkbox-border-color: var(--ctp-surface0); + --checkbox-border-color-focus: var(--ctp-overlay0); + --checkbox-border-color-hover: var(--ctp-surface0); + --checkbox-border-color-selected: var(--ctp-overlay0); + --checkbox-border-width: var(--input-border-width); + --checkbox-label-background-fill: var(--ctp-surface0); + --checkbox-label-background-fill-hover: var(--ctp-surface0); + --checkbox-label-background-fill-selected: var( + --checkbox-label-background-fill + ); + --checkbox-label-border-color: var(--border-color-primary); + --checkbox-label-border-color-hover: var(--checkbox-label-border-color); + --checkbox-label-border-width: var(--input-border-width); + --checkbox-label-text-color: var(--body-text-color); + --checkbox-label-text-color-selected: var(--checkbox-label-text-color); + --error-background-fill: var(--background-fill-primary); + --error-border-color: var(--border-color-primary); + --error_border_width: None; + --error-text-color: var(--ctp-red); + --input-background-fill: var(--ctp-base); + --input-background-fill-focus: var(--input-background-fill); + --input-background-fill-hover: var(--input-background-fill); + --input-border-color: var(--border-color-primary); + --input-border-color-focus: var(--neutral-700); + --input-border-color-hover: var(--input-border-color); + --input_border_width: None; + --input-placeholder-color: var(--neutral-500); + --input_shadow: None; + --input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), + var(--shadow-inset); + --loader_color: None; + --slider_color: None; + --stat-background-fill: linear-gradient( + to right, + var(--primary-400), + var(--primary-600) + ); + --table-border-color: var(--neutral-700); + --table-even-background-fill: var(--neutral-950); + --table-odd-background-fill: var(--neutral-900); + --table-row-focus: var(--color-accent-soft); + --button-border-width: var(--input-border-width); + --button-cancel-background-fill: var(--ctp-red); + --button-cancel-background-fill-hover: var(--ctp-red); + --button-cancel-border-color: var(--ctp-red); + --button-cancel-border-color-hover: var(--button-cancel-border-color); + --button-cancel-text-color: var(--ctp-base); + --button-cancel-text-color-hover: var(--button-cancel-text-color); + --button-primary-background-fill: var(--ctp-accent); + --button-primary-background-fill-hover: var(--ctp-accent); + --button-primary-border-color: var(--ctp-accent); + --button-primary-border-color-hover: var(--button-primary-border-color); + --button-primary-text-color: var(--ctp-base); + --button-primary-text-color-hover: var(--button-primary-text-color); + --button-secondary-background-fill: var(--ctp-surface0); + --button-secondary-background-fill-hover: var(--ctp-surface0); + --button-secondary-border-color: var(--ctp-surface0); + --button-secondary-border-color-hover: var(--button-secondary-border-color); + --button-secondary-text-color: var(--ctp-text); + --button-secondary-text-color-hover: var(--button-secondary-text-color); +} + +.gradio-button:hover { + filter: brightness(130%); +} + +input[type='range']::-ms-track { + background: transparent; +} + +input[type='range']::-ms-fill-lower { + background: var(--ctp-accent); + border-radius: 10px; +} +input[type='range']::-ms-fill-upper { + background: var(--ctp-overlay0); + border-radius: 10px; +} + +input[type='range']:focus::-ms-fill-lower { + background: var(--ctp-accent); +} +input[type='range']:focus::-ms-fill-upper { + background: var(--ctp-overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type='number'] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--ctp-accent); + color: var(--shadow); +} + +.dark .progressDiv, +.progressDiv { + background-color: var(--ctp-surface0); +} + +input[type='range'] { + font-size: 1.5rem; +} + +input[type='range'] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--ctp-surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type='range'].win10-thumb { + color: var(--ctp-accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type='range'] { + color: var(--ctp-accent); + --track-color: var(--ctp-surface0); + } + + input[type='range'].win10-thumb { + color: var(--ctp-accent); + } +} + +/* === range commons === */ +input[type='range'] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type='range']:active { + cursor: grabbing; +} + +input[type='range']:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type='range'], +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + position: relative; +} + +input[type='range']::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 + 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / + 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type='range']:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type='range']:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type='range']::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / + 100% calc(var(--track-height) + 1px); +} + +input[type='range']:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type='range'], +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + background: #fff0; +} + +input[type='range']::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type='range']:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type='range']::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type='range']::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + filter: brightness(100%); +} + +input[type='range']:hover::-moz-range-thumb, +input[type='range']:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type='range']:active::-moz-range-thumb, +input[type='range']:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type='range']:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/catpuccin/scripts/main.py b/catpuccin/scripts/main.py new file mode 100644 index 0000000000000000000000000000000000000000..9c79ad01c87ab8afdba1c5b594d15dc2b36e6671 --- /dev/null +++ b/catpuccin/scripts/main.py @@ -0,0 +1,67 @@ +import os +import re +import shutil +import gradio as gr +from modules import script_callbacks +from modules import shared, scripts +import modules.scripts as scripts + +accents = ['rosewater', 'flamingo', 'pink' , 'mauve' ,'red', 'maroon' ,'peach', 'yellow', 'green', 'teal', 'sky', 'blue', 'sapphire', 'lavender'] +flavors = ['latte', 'frappe', 'macchiato', 'mocha'] +script_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + +def on_ui_settings(): + section = ('ctp', 'Catppuccin Theme') + shared.opts.add_option("ctp_flavor", + shared.OptionInfo( + default='mocha', + label="Catppuccin Flavor", + component=gr.Radio, + component_args={"choices": flavors}, + onchange=on_ui_settings_change, + section=section)) + + shared.opts.add_option("accent_color", + shared.OptionInfo( + default='maroon', + label='Accent', + component=gr.Radio, + component_args={"choices": accents}, + onchange=on_accent_color_change, + section=section + )) + +def on_accent_color_change(): + # replace the accent color + with open(os.path.join(script_path,'style.css'), "r+") as file: + if gr.__version__ < '3.23.0': + pattern = re.compile(r"--accent:\s*(.*)") + text = re.sub(pattern, f'--accent: var(--{shared.opts.accent_color});', file.read(), count=1) + + else: + pattern = re.compile(r"--ctp-accent:\s*(.*)") + text = re.sub(pattern, f'--ctp-accent: var(--ctp-{shared.opts.accent_color});', file.read(), count=1) + file.seek(0) + file.write(text) + file.truncate() + +def on_ui_settings_change(): + # Move css over + if gr.__version__ < '3.23.0': + shutil.copy(os.path.join(script_path,f'flavors/legacy/{shared.opts.ctp_flavor}.css'), os.path.join(script_path, 'style.css')) + else: + shutil.copy(os.path.join(script_path,f'flavors/{shared.opts.ctp_flavor}.css'), os.path.join(script_path, 'style.css')) + # reappply accent color + on_accent_color_change() + +script_callbacks.on_ui_settings(on_ui_settings) + +# If the gradio version is legacy and the current theme is not, +# then copy the legacy theme over +if gr.__version__ < '3.23.0': + print('[Catppuccin Theme] Legacy Gradio detected!') + with open(os.path.join(script_path,'style.css'), "r") as file: + first_line = file.readline() + if not first_line.startswith('/* legacy */'): + print('[Catppuccin Theme] Setting up legacy theme... You may need to reload the ui to see changes') + shutil.copy(os.path.join(script_path,f'flavors/legacy/{shared.opts.ctp_flavor}.css'), os.path.join(script_path, 'style.css')) \ No newline at end of file diff --git a/catpuccin/style.css b/catpuccin/style.css new file mode 100644 index 0000000000000000000000000000000000000000..6fd7db7eec4fabb015e95e9cbc76e6ba468362ca --- /dev/null +++ b/catpuccin/style.css @@ -0,0 +1,354 @@ +:root { + --ctp-rosewater: #f5e0dc; + --ctp-flamingo: #f2cdcd; + --ctp-pink: #f5c2e7; + --ctp-mauve: #cba6f7; + --ctp-red: #f38ba8; + --ctp-maroon: #eba0ac; + --ctp-peach: #fab387; + --ctp-yellow: #f9e2af; + --ctp-green: #a6e3a1; + --ctp-teal: #94e2d5; + --ctp-sky: #89dceb; + --ctp-sapphire: #74c7ec; + --ctp-lavender: #b4befe; + --ctp-blue: #89b4fa; + --ctp-text: #cdd6f4; + --ctp-subtext1: #bac2de; + --ctp-subtext0: #a6adc8; + --ctp-overlay2: #9399b2; + --ctp-overlay1: #7f849c; + --ctp-overlay0: #6c7086; + --ctp-surface2: #585b70; + --ctp-surface1: #45475a; + --ctp-surface0: #313244; + --ctp-base: #1e1e2e; + --ctp-mantle: #181825; + --ctp-crust: #11111b; + --shadow: #010409; + --ctp-accent: var(--ctp-maroon); + color-scheme: dark; +} + +:root, +.dark { + --body-background-fill: var(--background-fill-primary); + --body-text-color: var(--ctp-subtext0); + --color-accent-soft: var(--ctp-surface0); + --background-fill-primary: var(--ctp-mantle); + --background-fill-secondary: var(--ctp-base); + --border-color-accent: var(--ctp-surface0); + --border-color-primary: var(--ctp-surface1); + --link-text-color-active: var(--ctp-subtext0); + --link-text-color: var(--ctp-subtext0); + --link-text-color-hover: var(--ctp-accent); + --link-text-color-visited: var(--ctp-subtext0); + --body-text-color-subdued: var(--ctp-subtext0); + --shadow-spread: 1px; + --block-background-fill: var(--ctp-mantle); + --block-border-color: var(--border-color-primary); + --block_border_width: None; + --block-info-text-color: var(--body-text-color-subdued); + --block-label-background-fill: var(--background-fill-secondary); + --block-label-border-color: var(--border-color-primary); + --block_label_border_width: None; + --block-label-text-color: var(--ctp-text); + --block_shadow: None; + --block_title_background_fill: None; + --block_title_border_color: None; + --block_title_border_width: None; + --block-title-text-color: var(--ctp-text); + --panel-background-fill: var(--background-fill-secondary); + --panel-border-color: var(--border-color-primary); + --panel_border_width: None; + --checkbox-background-color: var(--ctp-surface1); + --checkbox-background-color-focus: var(--checkbox-background-color); + --checkbox-background-color-hover: var(--checkbox-background-color); + --checkbox-background-color-selected: var(--ctp-accent); + --checkbox-border-color: var(--ctp-surface0); + --checkbox-border-color-focus: var(--ctp-overlay0); + --checkbox-border-color-hover: var(--ctp-surface0); + --checkbox-border-color-selected: var(--ctp-overlay0); + --checkbox-border-width: var(--input-border-width); + --checkbox-label-background-fill: var(--ctp-surface0); + --checkbox-label-background-fill-hover: var(--ctp-surface0); + --checkbox-label-background-fill-selected: var( + --checkbox-label-background-fill + ); + --checkbox-label-border-color: var(--border-color-primary); + --checkbox-label-border-color-hover: var(--checkbox-label-border-color); + --checkbox-label-border-width: var(--input-border-width); + --checkbox-label-text-color: var(--body-text-color); + --checkbox-label-text-color-selected: var(--checkbox-label-text-color); + --error-background-fill: var(--background-fill-primary); + --error-border-color: var(--border-color-primary); + --error_border_width: None; + --error-text-color: var(--ctp-red); + --input-background-fill: var(--ctp-base); + --input-background-fill-focus: var(--input-background-fill); + --input-background-fill-hover: var(--input-background-fill); + --input-border-color: var(--border-color-primary); + --input-border-color-focus: var(--neutral-700); + --input-border-color-hover: var(--input-border-color); + --input_border_width: None; + --input-placeholder-color: var(--neutral-500); + --input_shadow: None; + --input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), + var(--shadow-inset); + --loader_color: None; + --slider_color: None; + --stat-background-fill: linear-gradient( + to right, + var(--primary-400), + var(--primary-600) + ); + --table-border-color: var(--neutral-700); + --table-even-background-fill: var(--neutral-950); + --table-odd-background-fill: var(--neutral-900); + --table-row-focus: var(--color-accent-soft); + --button-border-width: var(--input-border-width); + --button-cancel-background-fill: var(--ctp-red); + --button-cancel-background-fill-hover: var(--ctp-red); + --button-cancel-border-color: var(--ctp-red); + --button-cancel-border-color-hover: var(--button-cancel-border-color); + --button-cancel-text-color: var(--ctp-base); + --button-cancel-text-color-hover: var(--button-cancel-text-color); + --button-primary-background-fill: var(--ctp-accent); + --button-primary-background-fill-hover: var(--ctp-accent); + --button-primary-border-color: var(--ctp-accent); + --button-primary-border-color-hover: var(--button-primary-border-color); + --button-primary-text-color: var(--ctp-base); + --button-primary-text-color-hover: var(--button-primary-text-color); + --button-secondary-background-fill: var(--ctp-surface0); + --button-secondary-background-fill-hover: var(--ctp-surface0); + --button-secondary-border-color: var(--ctp-surface0); + --button-secondary-border-color-hover: var(--button-secondary-border-color); + --button-secondary-text-color: var(--ctp-text); + --button-secondary-text-color-hover: var(--button-secondary-text-color); +} + +.gradio-button:hover { + filter: brightness(130%); +} + +input[type='range']::-ms-track { + background: transparent; +} + +input[type='range']::-ms-fill-lower { + background: var(--ctp-accent); + border-radius: 10px; +} +input[type='range']::-ms-fill-upper { + background: var(--ctp-overlay0); + border-radius: 10px; +} + +input[type='range']:focus::-ms-fill-lower { + background: var(--ctp-accent); +} +input[type='range']:focus::-ms-fill-upper { + background: var(--ctp-overlay0); +} + +/* Chrome, Safari, Edge, Opera */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* Firefox */ +input[type='number'] { + -moz-appearance: textfield; +} +.gr-box > div > div > input.gr-text-input { + width: 4em; +} + +.progressDiv .progress { + background: var(--ctp-accent); + color: var(--shadow); +} + +.dark .progressDiv, +.progressDiv { + background-color: var(--ctp-surface0); +} + +input[type='range'] { + font-size: 1.5rem; +} + +input[type='range'] { + color: var(--accent); + --thumb-height: 0.5em; + --track-height: 0.125em; + --track-color: var(--ctp-surface0); + --brightness-hover: 130%; + --brightness-down: 80%; + --clip-edges: 0.125em; +} + +input[type='range'].win10-thumb { + color: var(--ctp-accent); + + --thumb-height: 0.5em; + --thumb-width: 0.5em; + --clip-edges: 0.0125em; +} + +@media (prefers-color-scheme: dark) { + input[type='range'] { + color: var(--ctp-accent); + --track-color: var(--ctp-surface0); + } + + input[type='range'].win10-thumb { + color: var(--ctp-accent); + } +} + +/* === range commons === */ +input[type='range'] { + position: relative; + background: #fff0; + overflow: hidden; +} + +input[type='range']:active { + cursor: grabbing; +} + +input[type='range']:disabled { + filter: grayscale(1); + opacity: 0.3; + cursor: not-allowed; +} + +/* === WebKit specific styles === */ +input[type='range'], +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-webkit-slider-runnable-track, +input[type='range']::-webkit-slider-thumb { + position: relative; +} + +input[type='range']::-webkit-slider-thumb { + --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px); + --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px); + --clip-bottom: calc(var(--thumb-height) - var(--clip-top)); + --clip-further: calc(100% + 1px); + --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 + 100vmax currentColor; + + width: var(--thumb-width, var(--thumb-height)); + background: linear-gradient(currentColor 0 0) scroll no-repeat left center / + 50% calc(var(--track-height) + 1px); + background-color: currentColor; + box-shadow: var(--box-fill); + border-radius: var(--thumb-width, var(--thumb-height)); + + filter: brightness(100%); + clip-path: polygon( + 100% -1px, + var(--clip-edges) -1px, + 0 var(--clip-top), + -100vmax var(--clip-top), + -100vmax var(--clip-bottom), + 0 var(--clip-bottom), + var(--clip-edges) 100%, + var(--clip-further) var(--clip-further) + ); +} + +input[type='range']:hover::-webkit-slider-thumb { + filter: brightness(var(--brightness-hover)); + cursor: grab; +} + +input[type='range']:active::-webkit-slider-thumb { + filter: brightness(var(--brightness-down)); + cursor: grabbing; +} + +input[type='range']::-webkit-slider-runnable-track { + background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center / + 100% calc(var(--track-height) + 1px); +} + +input[type='range']:disabled::-webkit-slider-thumb { + cursor: not-allowed; +} + +/* === Firefox specific styles === */ +input[type='range'], +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb { + appearance: none; + transition: all ease 100ms; + height: var(--thumb-height); +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + background: #fff0; +} + +input[type='range']::-moz-range-thumb { + background: currentColor; + border: 0; + width: var(--thumb-width, var(--thumb-height)); + border-radius: var(--thumb-width, var(--thumb-height)); + cursor: grab; +} + +input[type='range']:active::-moz-range-thumb { + cursor: grabbing; +} + +input[type='range']::-moz-range-track { + width: 100%; + background: var(--track-color); +} + +input[type='range']::-moz-range-progress { + appearance: none; + background: currentColor; + transition-delay: 30ms; +} + +input[type='range']::-moz-range-track, +input[type='range']::-moz-range-progress { + height: calc(var(--track-height) + 1px); + border-radius: var(--track-height); +} + +input[type='range']::-moz-range-thumb, +input[type='range']::-moz-range-progress { + filter: brightness(100%); +} + +input[type='range']:hover::-moz-range-thumb, +input[type='range']:hover::-moz-range-progress { + filter: brightness(var(--brightness-hover)); +} + +input[type='range']:active::-moz-range-thumb, +input[type='range']:active::-moz-range-progress { + filter: brightness(var(--brightness-down)); +} + +input[type='range']:disabled::-moz-range-thumb { + cursor: not-allowed; +} + +/* all of the input range stuff is from this guy*/ +/* Shout out to them https://codepen.io/ShadowShahriar/pen/zYPPYrQ */ diff --git a/depthmap2mask-main/README.md b/depthmap2mask-main/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ec398f8ab7485b8dcbeb65679f4484ce4d197f31 --- /dev/null +++ b/depthmap2mask-main/README.md @@ -0,0 +1,132 @@ +# depthmap2mask + +Made as a script for the [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) repository. + + +## 💥 Installation 💥 + +Copy the url of that repository into the extension tab : + +![image](https://user-images.githubusercontent.com/15731540/204056273-fc27d1cf-48ac-4dc3-b737-95b4b1efd32e.png) + +OR copy that repository in your extension folder : + +![image](https://user-images.githubusercontent.com/15731540/203840272-83cccb24-4417-44bc-99df-e45eb5f3360c.png) + +You might need to restart the whole UI. Maybe twice. + +if you are on colab you can also add this line in a code block before starting the UI/after the installation cells : + + !git clone https://github.com/Extraltodeus/depthmap2mask.git /content/stable-diffusion-webui/extensions/depthmap2mask + +## The look + +![image](https://user-images.githubusercontent.com/15731540/204043153-09cbffd9-28ac-46be-ad99-fc7f2c8656a3.png) + +## What does this extension do? + +It creates masks for img2img based on a depth estimation made by [MiDaS](https://github.com/isl-org/MiDaS). + +![smallerone](https://user-images.githubusercontent.com/15731540/204043576-5dc02def-29f8-423e-a69e-d392f47d3602.png)![5050](https://user-images.githubusercontent.com/15731540/204043582-ae46d0b8-3c4b-43d5-b669-eaf2659ced14.png) + +## Where to find it after installing it? + +Go to your img2img tab then select it from the custom scripts list at the bottom. + +## Explanations of the different UI elements + +- Contrasts cut level + +![image](https://user-images.githubusercontent.com/15731540/204043824-6067bd9e-49d6-488b-8f99-47928c31ae46.png) + +This slider is **purely optional**. +The depthmap is in levels of gray. Each pixel has a value in between 0 and 255 depending if they are black (0) or white (255). That threshold slider will cut to black every pixel below the selected value and scale from black to white what is above its value. + +Or in a more human language, it will give more depth to your depthmaps while removing a lot of information. + +Example before/after with the slider's value around 220 and using the MiDaS-Large model: + +![00073--1 0- sampler -85-8 1-ac07d41f-20221125174853](https://user-images.githubusercontent.com/15731540/204044001-4e672bbe-4ff8-46ef-ae87-ec3377e7aa37.png)![00074--1 0- sampler -85-8 1-ac07d41f-20221125174934](https://user-images.githubusercontent.com/15731540/204044306-80c77ba3-3b38-4ea6-941c-f6c6006c8b4e.png) + +Using the MiDaS small model will give you similar if not more interesting results. + +![smallerone](https://user-images.githubusercontent.com/15731540/204043576-5dc02def-29f8-423e-a69e-d392f47d3602.png)![5050](https://user-images.githubusercontent.com/15731540/204043582-ae46d0b8-3c4b-43d5-b669-eaf2659ced14.png) + +So that's more of an extra-extra option or a way to make sure that your backgrounds are untouched by using a low value (like 50). + +- Match input size/Net width/Net height + +![image](https://user-images.githubusercontent.com/15731540/204044819-0618bf27-0692-4a20-922f-73e33822dc6f.png) + +Match input size (On by default) will make the depth analysis at the same size as the original image. Better not to touch it unless you are having performance issues. + +The sliders below will be the resolution of the analysis if Match input size is turned off. + +You can also just use these functionalities to test out different results. + +- Misc options + +![image](https://user-images.githubusercontent.com/15731540/204045429-778f3084-63ad-421d-ad43-af9a20c49621.png) + +- Override options : + + These two options simply overrides the inpainting Masked content method and mask blur. I added these because using "original" for Masked content and Mask Blur at 0 just works better. This saves you the clics needed to switch to the intpaint tab/reupload the image to that tab and select the right options. + +- MiDaS models : + + I'll let you try what suits your needs the most. + +- Turn the depthmap into absolute black/white + +![image](https://user-images.githubusercontent.com/15731540/204057815-1e7d1d38-2fbb-43a1-bb08-133e574138c2.png) + +This option will cut out the background of an image into pure black and make the foreground pure white. Like a clean cut. + +### Alpha Cropping + +You can also save a version of the input image which has had all the masked content replaced with transparent pixels. This is useful when extracting the subject from the background, so that it can be used in designs. + +![Image](https://i.imgur.com/yFX6LyQ.jpeg) + +Simply check the "Save alpha mask" option before generating. + +## Tips + +- Avoid using Euler a or you might get really bad results. Usually DDIM works best. + +## Credits/Citation + +Thanks to [thygate](https://github.com/thygate) for letting me blatantly copy-paste some of his functions for the depth analysis integration in the webui. + +This repository runs with [MiDaS](https://github.com/isl-org/MiDaS). + +``` +@ARTICLE {Ranftl2022, + author = "Ren\'{e} Ranftl and Katrin Lasinger and David Hafner and Konrad Schindler and Vladlen Koltun", + title = "Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-Shot Cross-Dataset Transfer", + journal = "IEEE Transactions on Pattern Analysis and Machine Intelligence", + year = "2022", + volume = "44", + number = "3" +} +``` +``` +@article{Ranftl2021, + author = {Ren\'{e} Ranftl and Alexey Bochkovskiy and Vladlen Koltun}, + title = {Vision Transformers for Dense Prediction}, + journal = {ICCV}, + year = {2021}, +} +``` + +## Bug reporting + +- Please check if similar issues exist before creating a new one. +- Make sure to do a "git pull" from your webui folder in order to have your webui up to date +- Provide as many details as possible when creating a new issue. + +## Examples using different MiDaS models and denoising strength +![00056-589874964- sampler -32-7-ac07d41f-20221125174017](https://user-images.githubusercontent.com/15731540/204048931-20b19823-bba9-44be-a4ff-4d3ae65dd120.png)![00064-1584461722- sampler -32-7-ac07d41f-20221125174328](https://user-images.githubusercontent.com/15731540/204048940-fada95f2-fcb0-4cf7-ba0c-6a1fd6b904ea.png)![00100-717650490- sampler -84-8 1-ac07d41f-20221125175700](https://user-images.githubusercontent.com/15731540/204048949-a4faf745-e9b5-437e-870d-be8ea7bd4b5d.png) + + +I forgot my settings but in the end it's all pretty easy to guess what you need. diff --git a/depthmap2mask-main/install.py b/depthmap2mask-main/install.py new file mode 100644 index 0000000000000000000000000000000000000000..b1c3e44b60ab7e5e7a13ba8bbac9b9166e4a53d8 --- /dev/null +++ b/depthmap2mask-main/install.py @@ -0,0 +1,2 @@ +import launch +launch.git_clone("https://github.com/isl-org/MiDaS.git", "repositories/midas", "midas", "1645b7e") diff --git a/depthmap2mask-main/scripts/depth2image_depthmask.py b/depthmap2mask-main/scripts/depth2image_depthmask.py new file mode 100644 index 0000000000000000000000000000000000000000..4300bcc644e350bbdcf467cdbdbb9929b7eb18bb --- /dev/null +++ b/depthmap2mask-main/scripts/depth2image_depthmask.py @@ -0,0 +1,117 @@ +from modules.processing import Processed, StableDiffusionProcessingImg2Img, process_images, images, fix_seed +from modules.shared import opts, cmd_opts, state +from PIL import Image, ImageOps +from math import ceil +import cv2 + +import modules.scripts as scripts +from modules import sd_samplers +from random import randint, shuffle +import random +from skimage.util import random_noise +import gradio as gr +import numpy as np +import sys +import os +import copy +import importlib.util + +def module_from_file(module_name, file_path): + spec = importlib.util.spec_from_file_location(module_name, file_path) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + +class Script(scripts.Script): + def title(self): + return "Depth aware img2img mask" + + def show(self, is_img2img): + return is_img2img + + def ui(self, is_img2img): + if not is_img2img: return + models = ["dpt_beit_large_512", + "dpt_beit_large_384", + "dpt_beit_base_384", + "dpt_swin2_large_384", + "dpt_swin2_base_384", + "dpt_swin2_tiny_256", + "dpt_swin_large_384", + "dpt_next_vit_large_384", + "dpt_levit_224", + "dpt_large_384", + "dpt_hybrid_384", + "midas_v21_384", + "midas_v21_small_256", + # "openvino_midas_v21_small_256" + ] + + treshold = gr.Slider(minimum=0, maximum=255, step=1, label='Contrasts cut level', value=0) + match_size = gr.Checkbox(label="Match input size",value=True) + net_width = gr.Slider(minimum=64, maximum=2048, step=64, label='Net width', value=384) + net_height = gr.Slider(minimum=64, maximum=2048, step=64, label='Net height', value=384) + with gr.Row(): + invert_depth = gr.Checkbox(label="Invert DepthMap",value=False) + save_depthmap = gr.Checkbox(label='Save depth map', value=False) + save_alpha_crop = gr.Checkbox(label='Save alpha crop', value=False) + override_mask_blur = gr.Checkbox(label='Override mask blur to 0', value=True) + override_fill = gr.Checkbox(label='Override inpaint to original', value=True) + clean_cut = gr.Checkbox(label='Turn the depthmap into absolute black/white', value=False) + model_type = gr.Dropdown(label="Model", choices=models, value="dpt_swin2_base_384", type="index", elem_id="model_type") + # model_type = gr.Dropdown(label="Model", choices=['dpt_large','dpt_hybrid','midas_v21','midas_v21_small'], value='dpt_large', type="index", elem_id="model_type") + return [save_depthmap,treshold,match_size,net_width,net_height,invert_depth,model_type,override_mask_blur,override_fill,clean_cut, save_alpha_crop] + + def run(self,p,save_depthmap,treshold,match_size,net_width,net_height,invert_depth,model_type,override_mask_blur,override_fill,clean_cut, save_alpha_crop): + def remap_range(value, minIn, MaxIn, minOut, maxOut): + if value > MaxIn: value = MaxIn; + if value < minIn: value = minIn; + finalValue = ((value - minIn) / (MaxIn - minIn)) * (maxOut - minOut) + minOut; + return finalValue; + def create_depth_mask_from_depth_map(img,save_depthmap,p,treshold,clean_cut, save_alpha_crop): + img = copy.deepcopy(img.convert("RGBA")) + mask_img = copy.deepcopy(img.convert("L")) + mask_datas = mask_img.getdata() + datas = img.getdata() + newData = [] + maxD = max(mask_datas) + if clean_cut and treshold == 0: + treshold = 128 + for i in range(len(mask_datas)): + if clean_cut and mask_datas[i] > treshold: + newrgb = 255 + elif mask_datas[i] > treshold and not clean_cut: + newrgb = int(remap_range(mask_datas[i],treshold,255,0,255)) + else: + newrgb = 0 + newData.append((newrgb,newrgb,newrgb,255)) + img.putdata(newData) + return img + + sdmg = module_from_file("depthmap_for_depth2img",'extensions/depthmap2mask/scripts/depthmap_for_depth2img.py') + sdmg = sdmg.SimpleDepthMapGenerator() #import midas + + img_x = p.width if match_size else net_width + img_y = p.height if match_size else net_height + + d_m = sdmg.calculate_depth_maps(p.init_images[0],img_x,img_y,model_type,invert_depth) + + if treshold > 0 or clean_cut: + d_m = create_depth_mask_from_depth_map(d_m,save_depthmap,p,treshold,clean_cut, save_alpha_crop) + + if save_depthmap: + images.save_image(d_m, p.outpath_samples, "", p.seed, p.prompt, opts.samples_format, p=p) + + if save_alpha_crop: + alpha_crop = p.init_images[0].copy() + alpha_crop.putalpha(d_m.convert("L")) + images.save_image(alpha_crop, p.outpath_samples, "alpha-crop", p.seed, p.prompt, opts.samples_format, p=p) + + p.image_mask = d_m + if override_mask_blur: p.mask_blur = 0 + if override_fill: p.inpainting_fill = 1 + proc = process_images(p) + proc.images.append(d_m) + if save_alpha_crop: + proc.images.append(alpha_crop) + return proc diff --git a/depthmap2mask-main/scripts/depthmap_for_depth2img.py b/depthmap2mask-main/scripts/depthmap_for_depth2img.py new file mode 100644 index 0000000000000000000000000000000000000000..03cb6072dee57242c736cacbcc72794fa7c3fc3b --- /dev/null +++ b/depthmap2mask-main/scripts/depthmap_for_depth2img.py @@ -0,0 +1,349 @@ +import torch, gc +import cv2 +import requests +import os.path +import contextlib +from PIL import Image +from modules.shared import opts, cmd_opts +from modules import processing, images, shared, devices +import os + +from torchvision.transforms import Compose + +from repositories.midas.midas.dpt_depth import DPTDepthModel +from repositories.midas.midas.midas_net import MidasNet +from repositories.midas.midas.midas_net_custom import MidasNet_small +from repositories.midas.midas.transforms import Resize, NormalizeImage, PrepareForNet + +import numpy as np + +def load_model(device, model_path, model_type="dpt_large_384", optimize=True, size=None, square=False): + """Load the specified network. + + Args: + device (device): the torch device used + model_path (str): path to saved model + model_type (str): the type of the model to be loaded + optimize (bool): optimize the model to half-integer on CUDA? + size (int, int): inference encoder image size + square (bool): resize to a square resolution? + + Returns: + The loaded network, the transform which prepares images as input to the network and the dimensions of the + network input + """ + if "openvino" in model_type: + from openvino.runtime import Core + + keep_aspect_ratio = not square + + if model_type == "dpt_beit_large_512": + model = DPTDepthModel( + path=model_path, + backbone="beitl16_512", + non_negative=True, + ) + net_w, net_h = 512, 512 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_beit_large_384": + model = DPTDepthModel( + path=model_path, + backbone="beitl16_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_beit_base_384": + model = DPTDepthModel( + path=model_path, + backbone="beitb16_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_swin2_large_384": + model = DPTDepthModel( + path=model_path, + backbone="swin2l24_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + keep_aspect_ratio = False + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_swin2_base_384": + model = DPTDepthModel( + path=model_path, + backbone="swin2b24_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + keep_aspect_ratio = False + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_swin2_tiny_256": + model = DPTDepthModel( + path=model_path, + backbone="swin2t16_256", + non_negative=True, + ) + net_w, net_h = 256, 256 + keep_aspect_ratio = False + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_swin_large_384": + model = DPTDepthModel( + path=model_path, + backbone="swinl12_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + keep_aspect_ratio = False + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_next_vit_large_384": + model = DPTDepthModel( + path=model_path, + backbone="next_vit_large_6m", + non_negative=True, + ) + net_w, net_h = 384, 384 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + # We change the notation from dpt_levit_224 (MiDaS notation) to levit_384 (timm notation) here, where the 224 refers + # to the resolution 224x224 used by LeViT and 384 is the first entry of the embed_dim, see _cfg and model_cfgs of + # https://github.com/rwightman/pytorch-image-models/blob/main/timm/models/levit.py + # (commit id: 927f031293a30afb940fff0bee34b85d9c059b0e) + elif model_type == "dpt_levit_224": + model = DPTDepthModel( + path=model_path, + backbone="levit_384", + non_negative=True, + head_features_1=64, + head_features_2=8, + ) + net_w, net_h = 224, 224 + keep_aspect_ratio = False + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_large_384": + model = DPTDepthModel( + path=model_path, + backbone="vitl16_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "dpt_hybrid_384": + model = DPTDepthModel( + path=model_path, + backbone="vitb_rn50_384", + non_negative=True, + ) + net_w, net_h = 384, 384 + resize_mode = "minimal" + normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) + + elif model_type == "midas_v21_384": + model = MidasNet(model_path, non_negative=True) + net_w, net_h = 384, 384 + resize_mode = "upper_bound" + normalization = NormalizeImage( + mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] + ) + + elif model_type == "midas_v21_small_256": + model = MidasNet_small(model_path, features=64, backbone="efficientnet_lite3", exportable=True, + non_negative=True, blocks={'expand': True}) + net_w, net_h = 256, 256 + resize_mode = "upper_bound" + normalization = NormalizeImage( + mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] + ) + + elif model_type == "openvino_midas_v21_small_256": + ie = Core() + uncompiled_model = ie.read_model(model=model_path) + model = ie.compile_model(uncompiled_model, "CPU") + net_w, net_h = 256, 256 + resize_mode = "upper_bound" + normalization = NormalizeImage( + mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] + ) + + else: + print(f"model_type '{model_type}' not implemented, use: --model_type large") + assert False + + if not "openvino" in model_type: + print("Model loaded, number of parameters = {:.0f}M".format(sum(p.numel() for p in model.parameters()) / 1e6)) + else: + print("Model loaded, optimized with OpenVINO") + + if "openvino" in model_type: + keep_aspect_ratio = False + + if size is not None: + net_w, net_h = size + + transform = Compose( + [ + Resize( + net_w, + net_h, + resize_target=None, + keep_aspect_ratio=keep_aspect_ratio, + ensure_multiple_of=32, + resize_method=resize_mode, + image_interpolation_method=cv2.INTER_CUBIC, + ), + normalization, + PrepareForNet(), + ] + ) + + if not "openvino" in model_type: + model.eval() + + if optimize and (device == torch.device("cuda")): + if not "openvino" in model_type: + model = model.to(memory_format=torch.channels_last) + model = model.half() + else: + print("Error: OpenVINO models are already optimized. No optimization to half-float possible.") + exit() + + if not "openvino" in model_type: + model.to(device) + + return model, transform + +class SimpleDepthMapGenerator(object): + def calculate_depth_maps(self,image,img_x,img_y,model_type_index,invert_depth): + try: + model = None + def download_file(filename, url): + print(f"download {filename} form {url}") + import sys + try: + with open(filename+'.tmp', "wb") as f: + response = requests.get(url, stream=True) + total_length = response.headers.get('content-length') + + if total_length is None: # no content length header + f.write(response.content) + else: + dl = 0 + total_length = int(total_length) + for data in response.iter_content(chunk_size=4096): + dl += len(data) + f.write(data) + done = int(50 * dl / total_length) + sys.stdout.write("\r[%s%s]" % ('=' * done, ' ' * (50-done)) ) + sys.stdout.flush() + os.rename(filename+'.tmp', filename) + except Exception as e: + os.remove(filename+'.tmp') + print("\n--------download fail------------\n") + raise e + + device = torch.device("cuda" if torch.cuda.is_available() else "cpu") + # model path and name + model_dir = "./models/midas" + # create path to model if not present + os.makedirs(model_dir, exist_ok=True) + print("Loading midas model weights ..") + device = torch.device("cuda" if torch.cuda.is_available() else "cpu") + models = ["dpt_beit_large_512", + "dpt_beit_large_384", + "dpt_beit_base_384", + "dpt_swin2_large_384", + "dpt_swin2_base_384", + "dpt_swin2_tiny_256", + "dpt_swin_large_384", + "dpt_next_vit_large_384", + "dpt_levit_224", + "dpt_large_384", + "dpt_hybrid_384", + "midas_v21_384", + "midas_v21_small_256", + # "openvino_midas_v21_small_256" + ] + model_path = model_dir + '/' + models[model_type_index] + '.pt' + if not os.path.exists(model_path): + if models.index("midas_v21_384") <= model_type_index: + download_file(model_path, "https://github.com/isl-org/MiDaS/releases/download/v2_1/"+ models[model_type_index] + ".pt") + elif models.index("midas_v21_384") > model_type_index > models.index("dpt_large_384"): + download_file(model_path, "https://github.com/isl-org/MiDaS/releases/download/v3/"+ models[model_type_index] + ".pt") + else: + download_file(model_path, "https://github.com/isl-org/MiDaS/releases/download/v3_1/"+ models[model_type_index] + ".pt") + model, transform = load_model(device, model_path, models[model_type_index], (img_x, img_y)) + + img = cv2.cvtColor(np.asarray(image), cv2.COLOR_BGR2RGB) / 255.0 + img_input = transform({"image": img})["image"] + precision_scope = torch.autocast if shared.cmd_opts.precision == "autocast" and device == torch.device("cuda") else contextlib.nullcontext + # compute + with torch.no_grad(), precision_scope("cuda"): + sample = torch.from_numpy(img_input).to(device).unsqueeze(0) + if device == torch.device("cuda"): + sample = sample.to(memory_format=torch.channels_last) + if not cmd_opts.no_half: + sample = sample.half() + prediction = model.forward(sample) + prediction = ( + torch.nn.functional.interpolate( + prediction.unsqueeze(1), + size=img.shape[:2], + mode="bicubic", + align_corners=False, + ) + .squeeze() + .cpu() + .numpy() + ) + # output + depth = prediction + numbytes=2 + depth_min = depth.min() + depth_max = depth.max() + max_val = (2**(8*numbytes))-1 + + # check output before normalizing and mapping to 16 bit + if depth_max - depth_min > np.finfo("float").eps: + out = max_val * (depth - depth_min) / (depth_max - depth_min) + else: + out = np.zeros(depth.shape) + # single channel, 16 bit image + img_output = out.astype("uint16") + + # # invert depth map + if invert_depth: + img_output = cv2.bitwise_not(img_output) + + # three channel, 8 bits per channel image + img_output2 = np.zeros_like(image) + img_output2[:,:,0] = img_output / 256.0 + img_output2[:,:,1] = img_output / 256.0 + img_output2[:,:,2] = img_output / 256.0 + img = Image.fromarray(img_output2) + return img + except Exception: + raise + finally: + del model + gc.collect() + devices.torch_gc() diff --git a/matic-promptgen/.gitignore b/matic-promptgen/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7df542410f97cd8681322fafb13cd21b3f6d89ae --- /dev/null +++ b/matic-promptgen/.gitignore @@ -0,0 +1,2 @@ +__pycache__ +/models diff --git a/matic-promptgen/LICENSE.txt b/matic-promptgen/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..99d862fe15e30a7fe143d84dc4f88773f89a5c1f --- /dev/null +++ b/matic-promptgen/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 AUTOMATIC1111 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/matic-promptgen/README.md b/matic-promptgen/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d54990ce3e69500d85e824f8fd9f9db09910636b --- /dev/null +++ b/matic-promptgen/README.md @@ -0,0 +1,46 @@ +# Prompt generator +An extension for [webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) that lets you generate prompts. + +![](screenshot.png) + +## Getting more models online +You can add models from huggingface to the selection of models in setting. The setting field +is `Hugginface model names for promptgen, separated by comma`, and its default value is +just: +``` +AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe +``` +Those are GPT2 finetunes I did on various datasets: + +- [AUTOMATIC/promptgen-lexart](https://huggingface.co/AUTOMATIC/promptgen-lexart): Finetuned distilgpt2 for 100 epochs on prompts scraped from lexica.art +- [AUTOMATIC/promptgen-majinai-safe](https://huggingface.co/AUTOMATIC/promptgen-majinai-safe): Finetuned distilgpt2 for 40 epochs on safe prompts scraped from majinai.art. +- [AUTOMATIC/promptgen-majinai-unsafe](https://huggingface.co/AUTOMATIC/promptgen-majinai-unsafe): Finetuned distilgpt2 for 40 epochs on unsafe prompts scraped from majinai.art. + +To add more models, add more items to the setting, for example like this: + +``` +AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe, succinctly/text2image-prompt-generator, microsoft/Promptist +``` + +Reloading UI is required to apply this setting. + +## Getting more models offline +Put your models into the `models` directort inside the extension. For example, my model can be +made fully offline by placing fines from https://huggingface.co/AUTOMATIC/promptgen-lexart/tree/main into +those directories: + +``` + + 📁 webui root directory + ┗━━ 📁 extensions + ┗━━ 📁 stable-diffusion-webui-promptgen + ┗━━ 📁 models + ┗━━ 📁 promptgen-lexart <----- any name can be used + ┣━━ 📄 config.json <----- each model has its own set of required files; + ┣━━ 📄 merges.txt mine requires all those + ┣━━ 📄 pytorch_model.bin + ┣━━ 📄 tokenizer_config.json + ┗━━ 📄 vocab.json +``` + +Reloading UI is required to see new models. diff --git a/matic-promptgen/explanation.html b/matic-promptgen/explanation.html new file mode 100644 index 0000000000000000000000000000000000000000..55977df7b95783a814fb595aab36ac9162ff0357 --- /dev/null +++ b/matic-promptgen/explanation.html @@ -0,0 +1,49 @@ +
+
+
+{html.escape(generated_text)} + |
++ to txt2img + to img2img + | +
+ +
+ +- Allows you to change your webui boot settings including: +GPU optimization, UI Theme, enable port listening, xformers, auto launch, etc. + +- Allows you to save all your settings to your webui-user.bat/other boot script for your webui. + +##### Model Management + ++ +
+ +- Allows you to view all your models and view the model civitai prompts and parameters from the covers. +You can easily send these civitai prompts to txt2img/img2img/inpainting/extra + +##### Model Downloader + ++ +
+ +- Allows you to search and download models from civitai.com or liandange.com, find the model type you want + ++ +
+ +- It also allows you to find 1.5, 2.1 official models, controlnet models or different vae models. + diff --git a/miaoshouai-assistant-main/README_CN.md b/miaoshouai-assistant-main/README_CN.md new file mode 100644 index 0000000000000000000000000000000000000000..da63f5993208a5366b4e113856353a7f32c1e2ad --- /dev/null +++ b/miaoshouai-assistant-main/README_CN.md @@ -0,0 +1,55 @@ +# 喵手助理 +[English](README.md) / [中文](README_CN.md) + +喵手助理 [Automatic1111 WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) + +1.6 增加了显存自动清理功能。在启动助手中启用后可以在每次生图后自动清理显存。 +1.5 重构了assets的读取方式,大幅减少了下载时间和插件大小(使用1.5+版本需要重新安装); 增加了一键下载封面功能。 +1.4 添加了使用GPT来生成咒语的功能; 修复了模型管理中对子文件夹的支持。 +1.3 增加了模型下载和管理功能中对LyCoris的支持(你需要将LoCoris模型放置在Lora目录下, 需要安装 LyCoris插件 ) +1.2 增加了模型搜索功能,可以直接在模型管理下load模型,增加了插件和模型源更新功能。 +1.1 模型管理下增加了对Lora, embedding and hypernetwork等模型的支持。修复了启动时与秋叶启动器的冲突。 + +### 安装 +在 Automatic1111 WebUI 中,前往 `扩展插件`-> `从URL安装`,在`扩展插件的git仓库网址`中复制以下地址。 + +```sh +https://github.com/miaoshouai/miaoshouai-assistant.git +``` + +点击`安装`,等待安装完成。然后前往`设置` -> `重新加载界面` + +### 使用方法 +##### 启动助手 + ++ +
+ +- 允许您更改 WebUI 启动设置,包括: +GPU 优化、UI 主题、启用端口监听、xformers、自动启动等。 + +- 允许您将所有设置保存到 webui-user.bat/其他启动脚本。 + +##### 模型管理 + ++ +
+ +- 允许您查看所有模型,并从封面查看模型 civitai 提示和参数。 +您可以非常容易的将 civitai 提示词发送到 txt2img/img2img/inpainting/extra + +##### 模型下载器 + ++ +
+ +- 允许您从 civitai.com 或 liandange.com 搜索和下载模型,找到您想要的模型类型 + ++ +
+ +- 喵手助理还能让您找到 1.5, 2.1 的官方模型、controlnet 模型以及不同的 vae 模型。 diff --git a/miaoshouai-assistant-main/configs/controlnet.json b/miaoshouai-assistant-main/configs/controlnet.json new file mode 100644 index 0000000000000000000000000000000000000000..25e889a65bc731891e4ae7f550ea8df318f97194 --- /dev/null +++ b/miaoshouai-assistant-main/configs/controlnet.json @@ -0,0 +1,698 @@ +[ + { + "id": 1, + "name": "Controlnet 1.0", + "description": "This repository hosts pruned .safetensors modules of ControlNet, by lllyasviel and T2I-Adapters, TencentARC Team\n\nThe modules are meant for this extension for AUTOMATIC1111/stable-diffusion-webui, but should work for different webuis too if they have it implemented. cheers!\uD83E\uDD42
", + "type": "Controlnet", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "lllyasviel", + "image": "https://huggingface.co/webui/ControlNet-modules-safetensors" + }, + "tags": [], + "modelVersions": [ + { + "id": 1, + "modelId": 7019, + "name": "Controlnet 1.0", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "control_canny-fp16.safetensors", + "id": 1, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_canny-fp16.safetensors", + "primary": false + }, + { + "name": "control_depth-fp16.safetensors", + "id": 2, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_depth-fp16.safetensors", + "primary": true + }, + { + "name": "control_hed-fp16.safetensors", + "id": 3, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_hed-fp16.safetensors", + "primary": false + }, + { + "name": "control_mlsd-fp16.safetensors", + "id": 4, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_mlsd-fp16.safetensors", + "primary": false + }, + { + "name": "control_normal-fp16.safetensors", + "id": 5, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors", + "primary": false + }, + { + "name": "control_openpose-fp16.safetensors", + "id": 6, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_openpose-fp16.safetensors", + "primary": false + }, + { + "name": "control_scribble-fp16.safetensors", + "id": 7, + "sizeKB": 741261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_scribble-fp16.safetensors", + "primary": false + }, + { + "name": "control_seg-fp16.safetensors", + "id": 8, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_seg-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_canny-fp16.safetensors", + "id": 9, + "sizeKB": 38261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_canny-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_color-fp16.safetensors", + "id": 10, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_color-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_depth-fp16.safetensors", + "id": 11, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_depth-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_keypose-fp16.safetensors", + "id": 12, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_keypose-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_openpose-fp16.safetensors", + "id": 13, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_openpose-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_seg-fp16.safetensors", + "id": 14, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_seg-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_sketch-fp16.safetensors", + "id": 15, + "sizeKB": 161261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_sketch-fp16.safetensors", + "primary": false + }, + { + "name": "t2iadapter_style-fp16.safetensors", + "id": 16, + "sizeKB": 78261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_style-fp16.safetensors", + "primary": false + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + }, + { + "id": 2, + "name": "Controlnet 1.1", + "description": "Stable Diffusion v2-1 Model Card\\nThis model card focuses on the model associated with the Stable Diffusion v2-1 model, codebase available here.\\n\\nThis stable-diffusion-2-1 model is fine-tuned from stable-diffusion-2 (768-v-ema.ckpt) with an additional 55k steps on the same dataset (with punsafe=0.1), and then fine-tuned for another 155k extra steps with punsafe=0.98.\\n\\nUse it with the stablediffusion repository: download the v2-1_768-ema-pruned.ckpt here.\\nUse it with \\uD83E\\uDDE8 diffusers\\nModel Details\\nDeveloped by: Robin Rombach, Patrick Esser\\n\\nModel type: Diffusion-based text-to-image generation model\\n\\nLanguage(s): English\\n\\nLicense: CreativeML Open RAIL++-M License\\n\\nModel Description: This is a model that can be used to generate and modify images based on text prompts. It is a Latent Diffusion Model that uses a fixed, pretrained text encoder (OpenCLIP-ViT/H).\\n\\nResources for more information: GitHub Repository.
\",", + "type": "Controlnet", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "lllyasviel", + "image": "https://huggingface.co/lllyasviel/ControlNet-v1-1" + }, + "tags": [], + "modelVersions": [ + { + "id": 2, + "modelId": 2, + "name": "Controlnet 1.1", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "control_v11e_sd15_ip2p.pth", + "id": 18, + "sizeKB": 1561261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p.pth", + "primary": false + }, + { + "name": "control_v11e_sd15_shuffle.pth", + "id": 19, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle.pth", + "primary": true + }, + { + "name": "control_v11f1p_sd15_depth.pth", + "id": 20, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_canny.pth", + "id": 21, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_inpaint.pth", + "id": 22, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_inpaint.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_lineart.pth", + "id": 23, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_mlsd.pth", + "id": 24, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_mlsd.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_normalbae.pth", + "id": 25, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_normalbae.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_openpose.pth", + "id": 26, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_scribble.pth", + "id": 27, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "PTH", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_scribble.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_seg.pth", + "id": 28, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth", + "primary": false + }, + { + "name": "control_v11p_sd15_softedge.pth", + "id": 29, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_softedge.pth", + "primary": false + }, + { + "name": "control_v11p_sd15s2_lineart_anime.pth", + "id": 30, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15s2_lineart_anime.pth", + "primary": false + }, + { + "name": "control_v11f1e_sd15_tile.pth", + "id": 31, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1e_sd15_tile.pth", + "primary": false + }, + { + "name": "control_v2p_sd15_mediapipe_face.pth", + "id": 32, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/CrucibleAI/ControlNetMediaPipeFace/resolve/main/control_v2p_sd15_mediapipe_face.pth", + "primary": false + }, + { + "name": "control_v2p_sd21_mediapipe_face.pth", + "id": 33, + "sizeKB": 1521261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/CrucibleAI/ControlNetMediaPipeFace/resolve/main/control_v2p_sd21_mediapipe_face.pth", + "primary": false + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + } +] \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/hugging_face.json b/miaoshouai-assistant-main/configs/hugging_face.json new file mode 100644 index 0000000000000000000000000000000000000000..cc25d9d1728951d69f02934b0ddd78eb870c4946 --- /dev/null +++ b/miaoshouai-assistant-main/configs/hugging_face.json @@ -0,0 +1,198 @@ +[ + { + "id": 1, + "name": "Negative Embeddings", + "description": "This is a collection of negative embeddings for Stable Diffusion negative prompts
", + "type": "TextualInversion", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "multiple authors", + "image": "" + }, + "tags": [], + "modelVersions": [ + { + "id": 1, + "modelId": 7019, + "name": "Controlnet 1.0", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "EasyNegative.safetensors", + "id": 1, + "sizeKB": 25261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/datasets/gsdf/EasyNegative/resolve/main/EasyNegative.safetensors", + "primary": false + }, + { + "name": "EasyNegativeV2.safetensors", + "id": 2, + "sizeKB": 50261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/embedding/EasyNegativeV2.safetensors", + "primary": true + }, + { + "name": "bad-hands-5.pt", + "id": 3, + "sizeKB": 7261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/yesyeahvh/bad-hands-5/resolve/main/bad-hands-5.pt", + "primary": false + }, + { + "name": "bad_prompt.pt", + "id": 4, + "sizeKB": 51261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/datasets/Nerfgun3/bad_prompt/blob/main/bad_prompt.pt", + "primary": false + }, + { + "name": "bad_prompt_version2.pt", + "id": 5, + "sizeKB": 25261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt", + "primary": false + }, + { + "name": "badquality.pt", + "id": 6, + "sizeKB": 34261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/p1atdev/badquality/resolve/main/badquality.pt", + "primary": false + }, + { + "name": "bad-artist-anime.pt", + "id": 7, + "sizeKB": 7261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/nick-x-hacker/bad-artist/resolve/main/bad-artist-anime.pt", + "primary": false + }, + { + "name": "bad-artist.pt", + "id": 8, + "sizeKB": 7261.130859375, + "type": "Model", + "format": "Pth", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/nick-x-hacker/bad-artist/resolve/main/bad-artist.pt", + "primary": false + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + } +] \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/model_hash.json b/miaoshouai-assistant-main/configs/model_hash.json new file mode 100644 index 0000000000000000000000000000000000000000..8cdbd2c2772e9c279df8053bfd6a3bbf7b094579 --- /dev/null +++ b/miaoshouai-assistant-main/configs/model_hash.json @@ -0,0 +1,671 @@ +{ + "elldrethsVividMix_v20VividEr.safetensors [0f7f264114]": "0f7f264114", + "fkingScifiV2_r41958.safetensors [d6a44b9b90]": "d6a44b9b90", + "furtasticv11_furtasticv11.safetensors [8708576421]": "8708576421", + "futagen_2.safetensors [08946cce7d]": "08946cce7d", + "galaxytimemachinesGTM_v1.safetensors [e406a20c1b]": "e406a20c1b", + "Grapefruit.safetensors [4fc8d3739f]": "4fc8d3739f", + "grapeGrapefruitHenta_grapefruitV11.safetensors [4a6e5cd1c8]": "4a6e5cd1c8", + "GrapeLikeDreamFruit.ckpt [c9278e23a7]": "c9278e23a7", + "gta5ArtworkDiffusion_v1.ckpt [607aa02fb8]": "607aa02fb8", + "hAS3Dkx10B_3Dkx10B.safetensors [1d45c7c094]": "1d45c7c094", + "HAs_3DKX 1.1.ckpt [998f6b580e]": "998f6b580e", + "hasdx_hasedsdx.safetensors [fafc72c6fd]": "fafc72c6fd", + "hassanblend1512And_hassanblend1512.safetensors [f05dd9e62f]": "f05dd9e62f", + "hassanBlendAllVersio_hassanBlend14.safetensors [b08fdba169]": "b08fdba169", + "Healys_Anime_Blend.ckpt [8416edf88c]": "8416edf88c", + "healySAnimeBlend_17.ckpt [8416edf88c]": "8416edf88c", + "homoerotic_v2.safetensors [b656369cf7]": "b656369cf7", + "Inkpunk-Diffusion-v2.ckpt [2182245415]": "2182245415", + "instruct-pix2pix-00-22000.safetensors [fbc31a67aa]": "fbc31a67aa", + "jaksCreepyCritter_sd21768px.ckpt [67d399388b]": "67d399388b", + "jhSSamdoesarts_v5.ckpt [dfba164825]": "dfba164825", + "kenshi_00.safetensors [8c19d5c981]": "8c19d5c981", + "knollingcase_v1.ckpt [cf836e65a7]": "cf836e65a7", + "kotosAbyssproto_v10.safetensors [35d51ba12c]": "35d51ba12c", + "ligneClaireAnime_v1.safetensors [672977e447]": "672977e447", + "majorXs2DPOVModel_2dpov11.ckpt [83f9dcde52]": "83f9dcde52", + "mandarine_3.ckpt [7a134798ee]": "7a134798ee", + "mixProV3_v3.safetensors [b6928134bb]": "b6928134bb", + "modernDisney_v1.ckpt [8067368533]": "8067368533", + "moistmix_v2.safetensors [6514f58b5e]": "6514f58b5e", + "openjourney-v2.ckpt [2fbe5ba6e2]": "2fbe5ba6e2", + "openjourneyAka_v1.ckpt [5d5ad06cc2]": "5d5ad06cc2", + "owlerartStyle_v2.safetensors [a31fe6f791]": "a31fe6f791", + "pastelMixStylizedAnime_pastelMixPrunedFP16.safetensors [d01a68ae76]": "d01a68ae76", + "pfg_111Safetensors.safetensors [ca42a7a009]": "ca42a7a009", + "princessZeldaLora_v1.safetensors [53d6abf3cb]": "53d6abf3cb", + "protogenV22Anime_22.safetensors [1254103966]": "1254103966", + "protogenX34Photoreal_1.safetensors [44f90a0972]": "44f90a0972", + "protogenX34Photorealism_1.safetensors [44f90a0972]": "44f90a0972", + "protogenX58RebuiltSc_10.safetensors [6a21b428a3]": "6a21b428a3", + "protogenX58RebuiltScifi_10.safetensors [6a21b428a3]": "6a21b428a3", + "purepornplusMerge_purepornplus10.ckpt [40c6475ecb]": "40c6475ecb", + "qgo10a_qgo10a.safetensors [7dd744682a]": "7dd744682a", + "ratnikamix_2.safetensors [b6a8298a89]": "b6a8298a89", + "realeldenapocalypse_Analogsexknoll.safetensors [7c7dfbd636]": "7c7dfbd636", + "realisticVisionV13_v12.safetensors [8194f84cdc]": "8194f84cdc", + "redshiftDiffusion_v1.ckpt [ed8c2ee432]": "ed8c2ee432", + "roboeticsMix_rmix01Ckpt.ckpt [a7bd5ab091]": "a7bd5ab091", + "RPG.ckpt [234bfa6e72]": "234bfa6e72", + "s1dlxbrew_02.safetensors [1bf13ffc5d]": "1bf13ffc5d", + "schoolAnime_schoolAnime.safetensors [36b0e74c02]": "36b0e74c02", + "schoolmax25d_11.ckpt [0ce764ebd5]": "0ce764ebd5", + "sd-v1-4.ckpt [fe4efff1e1]": "fe4efff1e1", + "sd-v1-5-inpainting.ckpt [c6bbc15e32]": "c6bbc15e32", + "shadyArtOFFICIAL_shadyArt1.safetensors [8f0cb2925d]": "8f0cb2925d", + "spybgsToolkitFor_v40YoutubeChannel.ckpt [f277c5bba1]": "f277c5bba1", + "StablyDiffuseds_Aesthetic_Mix.ckpt [03df69045a]": "03df69045a", + "stablydiffusedsWild_3.safetensors [11a67baf56]": "11a67baf56", + "superheroDiffusion_v1.ckpt [cac0a972cf]": "cac0a972cf", + "surugaModel_suruga12K.ckpt [7846746c94]": "7846746c94", + "synthwavepunk_v2.ckpt [dc4c67171e]": "dc4c67171e", + "theAllysMix_v10Safetensors.safetensors [a18773a6bc]": "a18773a6bc", + "theallysMixIIChurned_v10.safetensors [b000c45ea5]": "b000c45ea5", + "uberRealisticPornMerge_urpmv12.safetensors [fcfaf106f2]": "fcfaf106f2", + "unstableinkdream_v6.safetensors [d855c1d2ba]": "d855c1d2ba", + "v1-5-pruned.ckpt [e1441589a6]": "e1441589a6", + "v2-1_768-nonema-pruned.ckpt [4711ff4dd2]": "4711ff4dd2", + "wd-v1-3-full.ckpt [23ba8d0411]": "23ba8d0411", + "wlop_1.ckpt [b8cff3e33f]": "b8cff3e33f", + "yiffymix_.safetensors [d6deb44e68]": "d6deb44e68", + "\u5565\u73a9\u610f\u5b8c\u728a\u5b50F16.safetensors [dda725ba6e]": "dda725ba6e", + "v1-5-pruned-emaonly.ckpt [cc6cb27103]": "cc6cb27103", + "deliberate_v2.safetensors [9aba26abdf]": "9aba26abdf", + "deliberate_v2.safetensors [38108d96f8]": "38108d96f8", + "realisticVisionV20_v20.ckpt [eaf3051d80]": "eaf3051d80", + "deliberate_v2.safetensors [d75347f3f0]": "d75347f3f0", + "deliberate_v2.safetensors [b500405cde]": "b500405cde", + "deliberate_v2.safetensors [493484f455]": "493484f455", + "deliberate_v2.safetensors [ade8822b56]": "ade8822b56", + "realisticVisionV20_v20.ckpt [d11a449e0f]": "d11a449e0f", + "2dn_1.safetensors [83569a04f4]": "83569a04f4", + "21SDModernBuildings_midjourneyBuildings.ckpt [14e1e8d692]": "14e1e8d692", + "AbyssOrangeMix2_hard.safetensors [0fc198c490]": "0fc198c490", + "adobisRealFlexibleMix_v2.safetensors [9e8a2c7a5d]": "9e8a2c7a5d", + "allInOnePixelModel_v1.ckpt [d7fb6396ab]": "d7fb6396ab", + "aloeverasSimpmaker3K_simpmaker3K1.ckpt [2cae9bc4e0]": "2cae9bc4e0", + "analogDiffusion_10Safetensors.safetensors [51f6fff508]": "51f6fff508", + "analogDream3D_10.ckpt [4575363662]": "4575363662", + "anovel_speed.ckpt [89d59c3dde]": "89d59c3dde", + "anygenV37_anygenv37.ckpt [815c974757]": "815c974757", + "Anything-V3.0-pruned.ckpt [543bcbc212]": "543bcbc212", + "anytwam11Mixedmodel_anytwam11.safetensors [e9cb790ad3]": "e9cb790ad3", + "aoaokoPVCStyleModel_pvcAOAOKO.safetensors [cf64507cef]": "cf64507cef", + "Arcane_Diffusion.ckpt [7dd0e6760f]": "7dd0e6760f", + "arcaneDiffusion_v3.ckpt [7dd0e6760f]": "7dd0e6760f", + "artErosAerosATribute_aerosNovae.safetensors [70346f7a1e]": "70346f7a1e", + "aToZovyaRPGArtistsTools15_sd15V1.safetensors [e28b2e61fb]": "e28b2e61fb", + "ayonimix_V2.safetensors [7076f76b9d]": "7076f76b9d", + "babes_11.safetensors [79886b6484]": "79886b6484", + "Basil_mix_fixed.safetensors [0ff127093f]": "0ff127093f", + "biggerGirlsModel_biggergirlsV2.ckpt [f3c16c83de]": "f3c16c83de", + "cheeseDaddys_30.safetensors [4176564bea]": "4176564bea", + "chillout_west_mix.safetensors [b93a715b47]": "b93a715b47", + "chilloutmix_inpainting.inpainting.safetensors [ec749031ba]": "ec749031ba", + "chromaticcreamv1_chromaticcreamV1.ckpt [c979d60b4a]": "c979d60b4a", + "ChromaV5 (2.0).ckpt [e8004ba771]": "e8004ba771", + "clarity_14.safetensors [dc027dbbf9]": "dc027dbbf9", + "classicNegative1521_classicNegative768px.ckpt [2106fd3b8c]": "2106fd3b8c", + "Colorwater_v4.safetensors [1b175706ff]": "1b175706ff", + "comicBabes_v1.safetensors [9211801e30]": "9211801e30", + "comicDiffusion_v2.ckpt [d3c225cbc2]": "d3c225cbc2", + "corneos7thHeavenMix_100.safetensors [d289dfa4ed]": "d289dfa4ed", + "corneos7thHeavenMix_v1.safetensors [d289dfa4ed]": "d289dfa4ed", + "Counterfeit-V2.5_pruned.safetensors [a074b8864e]": "a074b8864e", + "CounterfeitV20_20.ckpt [8838e0d1fb]": "8838e0d1fb", + "cuteRichstyle15_cuteRichstyle.ckpt [24bc802fc5]": "24bc802fc5", + "cyberrealistic_v13.safetensors [23e4391b10]": "23e4391b10", + "cynthiaModela_v10.safetensors [c83fe90aa3]": "c83fe90aa3", + "deliberate_v11-inpainting.inpainting.safetensors [0d0792451f]": "0d0792451f", + "deliberate_v11.safetensors [d8691b4d16]": "d8691b4d16", + "dgspitzerArt_dgspitzerArtDiffusion.safetensors [8141c5f18e]": "8141c5f18e", + "diGiMDSToriyamaModel_toriyamaV1.ckpt [33c84ed0b3]": "33c84ed0b3", + "dreamlikeDiffusion10_10.ckpt [0aecbcfa2c]": "0aecbcfa2c", + "dreamlikePhotoreal20_dreamlikePhotoreal20.safetensors [92970aa785]": "92970aa785", + "dreamshaper_332BakedVaeClipFix.safetensors [13dfc9921f]": "13dfc9921f", + "DucHaitenAIart.safetensors [55fed17365]": "55fed17365", + "duchaitenaiart_V20.safetensors [55fed17365]": "55fed17365", + "dvarchMultiPrompt_dvarchExterior.ckpt [1ecb6b4e9c]": "1ecb6b4e9c", + "Elldreths_OG_4060_mix.ckpt [707ee16b5b]": "707ee16b5b", + "Elldreths_Retro_Mix.ckpt [57285e7bd5]": "57285e7bd5", + "ElldrethsImaginationMix.ckpt [64224f0599]": "64224f0599", + "elldrethsLucidMix_v10.safetensors [67abd65708]": "67abd65708", + "elldrethSOg4060Mix_v10.ckpt [707ee16b5b]": "707ee16b5b", + "elldrethsRetroMix_v10.safetensors [57285e7bd5]": "57285e7bd5", + "icomix_V02Pruned.safetensors [76b00ee812]": "76b00ee812", + "inkpunkDiffusion_v2-inpainting-fp16-no-ema.safetensors [0c666f32e8]": "0c666f32e8", + "inkpunkDiffusion_v2-inpainting.safetensors [1bd4ce2c12]": "1bd4ce2c12", + "inkpunkDiffusion_v2.ckpt [2182245415]": "2182245415", + "meinamix_meinaV8.safetensors [30953ab0de]": "30953ab0de", + "mimi_V3.safetensors [88f31afc3d]": "88f31afc3d", + "mini_town_v1.safetensors [ed94110348]": "ed94110348", + "pixhell_v20.safetensors [333825e530]": "333825e530", + "projectUnrealEngine5_projectUnrealEngine5B.ckpt [748ff6eab2]": "748ff6eab2", + "pyraMythraPneuma_50Epochs.safetensors [fc9d093614]": "fc9d093614", + "realisticVisionV20_v20.safetensors [c0d1994c73]": "c0d1994c73", + "realLifeTest_realLifeTest.ckpt [d6347268cc]": "d6347268cc", + "revAnimated_v11.safetensors [d725be5d18]": "d725be5d18", + "samdoesartsUltmerge_v1.ckpt [0df9497424]": "0df9497424", + "shanshui_v0-000002.safetensors [18cbf1953b]": "18cbf1953b", + "tmndMix_tmndMixPlus.safetensors [7d19f9efad]": "7d19f9efad", + "unstableinkdream_v73.safetensors [f036d7b40b]": "f036d7b40b", + "unstablephotorealv5_05.ckpt [6ef4ed10a6]": "6ef4ed10a6", + "yinmu.safetensors [c1b28e2883]": "c1b28e2883", + "protogenX58RebuiltScifi_10.ckpt [e0de8aae3e]": "e0de8aae3e", + "marvelWhatIf_v2.ckpt [2e051600d4]": "2e051600d4", + "meinamix_meinaV9.safetensors [eac6c08a19]": "eac6c08a19", + "mixProV4_v4.safetensors [61e23e57ea]": "61e23e57ea", + "revAnimated_v122.safetensors [4199bcdd14]": "4199bcdd14", + "wood_tile-000001.safetensors [7fd29f7f80]": "7fd29f7f80", + "wood_tile-000002.safetensors [058be7927f]": "058be7927f", + "wood_tile-000003.safetensors [c379ec75dd]": "c379ec75dd", + "wood_tile-000004.safetensors [4256b2614b]": "4256b2614b", + "wood_tile-000005.safetensors [e466a6d0d1]": "e466a6d0d1", + "wood_tile-000006.safetensors [a78cb62c5a]": "a78cb62c5a", + "wood_tile-000007.safetensors [046910b320]": "046910b320", + "wood_tile-000008.safetensors [828af323cb]": "828af323cb", + "wood_tile-000009.safetensors [4b2844ebad]": "4b2844ebad", + "wood_tile.safetensors [95e89ae856]": "95e89ae856", + "CounterfeitV25_25.safetensors [a074b8864e]": "a074b8864e", + "corneo_bound_missionary.pt": null, + "corneo_mercy.pt": null, + "emmsto.pt": null, + "incaseStyle_incaseAnythingV3.pt": null, + "pureerosface_v1.pt": null, + "RSC.pt": null, + "Toru8pWavenChibi_wavenchibiV10b.pt": null, + "mini_town_v1-state\\scaler.pt": null, + "shanshui_v0-000002-state\\scaler.pt": null, + "wood_tile-000001-state\\scaler.pt": null, + "wood_tile-000002-state\\scaler.pt": null, + "wood_tile-000003-state\\scaler.pt": null, + "wood_tile-000004-state\\scaler.pt": null, + "wood_tile-000005-state\\scaler.pt": null, + "wood_tile-000006-state\\scaler.pt": null, + "wood_tile-000007-state\\scaler.pt": null, + "wood_tile-000008-state\\scaler.pt": null, + "wood_tile-000009-state\\scaler.pt": null, + "wood_tile-state\\scaler.pt": null, + "2BLoRA YorHA edition.ckpt": null, + "Addams-000001.safetensors": null, + "Addams-000002.safetensors": null, + "Addams-000003.safetensors": null, + "Addams-000004.safetensors": null, + "Addams.safetensors": null, + "aliceNikke_v30.safetensors": null, + "android18DragonBall_one.safetensors": null, + "animeLineartMangaLike_v30MangaLike (1).safetensors": null, + "arknightsTexasThe_v10.safetensors": null, + "atomicHeartRobotMaid_001.safetensors": null, + "bigHeadDoll_v01.safetensors": null, + "blindbox_V1Mix.safetensors": null, + "bruceLee_bruceLeeV10.safetensors": null, + "childrensDrawingLora_v10.safetensors": null, + "ChineseInkPainting_v10.safetensors": null, + "chunLiStreetFighter_v10.safetensors": null, + "emery_rose-000001.safetensors": null, + "emery_rose-000002.safetensors": null, + "emery_rose.safetensors": null, + "gachaSplashLORA_gachaSplashFarShot.safetensors": null, + "gta5ArtworkDiffusion_v1.safetensors": null, + "gundamRX782OutfitStyle_v10.safetensors": null, + "gundamRX78_v2.safetensors": null, + "handpaintedRPGIcons_v1.safetensors": null, + "hanfu_v28.safetensors": null, + "harunoSakuraNaruto_lykonV1.safetensors": null, + "HuluwaGourdMan_v11.safetensors": null, + "hyperbreasts.ckpt": null, + "ink_spark-000002.safetensors": null, + "ink_spark-000004.safetensors": null, + "ink_spark-000006.safetensors": null, + "ink_spark-000008.safetensors": null, + "ink_spark.safetensors": null, + "japaneseDollLikeness_v10.safetensors": null, + "jimLeeDCComicsMarvel_offset.safetensors": null, + "koreanDollLikeness_v15.safetensors": null, + "Leslie_Cheung.safetensors": null, + "Lisa - LoRA Collection of Trauters.ckpt": null, + "liuyifei_10.safetensors": null, + "LORAFlatColor_flatColor.pt": null, + "makimaChainsawMan_offset.safetensors": null, + "mini town-000002.safetensors": null, + "mini town-000004.safetensors": null, + "mini town-000006.safetensors": null, + "mini town-000008.safetensors": null, + "mini town-000010.safetensors": null, + "mini town-000012.safetensors": null, + "mini town-000014.safetensors": null, + "mini town-000016.safetensors": null, + "mini town-000018.safetensors": null, + "mini town.safetensors": null, + "mini_town-000001.safetensors": null, + "mini_town-000002.safetensors": null, + "mini_town-000003.safetensors": null, + "mini_town-000004.safetensors": null, + "mini_town.safetensors": null, + "Moxin_10.safetensors": null, + "Moxin_1010.safetensors": null, + "murataYusukeOnePunchMan_1.safetensors": null, + "myHeroAcademiaHorikoshi_v1.safetensors": null, + "onePieceWanoSagaStyle_20.safetensors": null, + "oyamaMahiro_oyamaMahiro2.safetensors": null, + "realisticAerith_v1.safetensors": null, + "samdoesartsSamYang_offset.safetensors": null, + "samdoesartsSamYang_offsetRightFilesize.safetensors": null, + "shirtTugPoseLORA_shirtTug.safetensors": null, + "slumdunk-000002.safetensors": null, + "slumdunk-000004.safetensors": null, + "slumdunk-000006.safetensors": null, + "slumdunk-000008.safetensors": null, + "slumdunk.safetensors": null, + "studioGhibliStyle_offset.safetensors": null, + "taiwanDollLikeness_v10.safetensors": null, + "tifaMeenow_tifaV2.safetensors": null, + "urbanSamuraiClothing_urbansamuraiV03.safetensors": null, + "wanniya-000003.safetensors": null, + "xiaofu-000004.safetensors": null, + "yaeMikoRealistic_yaemikoMixed.safetensors": null, + "yojiShinkawaStyle_offset.safetensors": null, + "Zhang_Songwen.safetensors": null, + "\u753b\u98ce \u9ed1\u767d \u6d82\u9e26 \u4f5coskarsson.safetensors": null, + "\u771f\u4eba \u6768\u8d85\u8d8a \u4f5cmpmp.safetensors": null, + "\u78a7\u84dd\u5e7b\u60f3\u5154\u795e\u5c06makura.safetensors": null, + "\u7acb\u7ed8\u62c6\u5206lion\u4f18\u5316\u5668 tachie separation.safetensors": null, + "scaler.pt": null, + "AnimeScreenCap.pt": null, + "CGI_Animation-185.pt": null, + "corneo_anal.pt": null, + "CounterfeitV25_25.safetensors": null, + "lyriel_v15.safetensors": null, + "azl_v1-000002.safetensors": null, + "azl_v1-000004.safetensors": null, + "azl_v1-000006.safetensors": null, + "azl_v1-000008.safetensors": null, + "azl_v1-000010.safetensors": null, + "azl_v1-000012.safetensors": null, + "azl_v1-000014.safetensors": null, + "azl_v1-000016.safetensors": null, + "azl_v1-000018.safetensors": null, + "azl_v1.safetensors": null, + "Asuka.safetensors": null, + "wood_tile-long.safetensors": null, + "wood_tile-Square.safetensors": null, + "anthro.pt": null, + "bad-artist.pt": null, + "bad-hands-5.pt": null, + "bad_prompt.pt": null, + "bad_prompt_version2.pt": null, + "bad_quality.pt": null, + "bukkakAI.pt": null, + "CandyPunk.pt": null, + "CharTurner.pt": null, + "CutAway-420.pt": null, + "CutAway-460.pt": null, + "CutAway-500.pt": null, + "ely_neg_prompt.pt": null, + "evil_neg_prompt3.pt": null, + "InkPunk768.pt": null, + "kc32-v4-5000.pt": null, + "midjourney.pt": null, + "Remix.pt": null, + "schizo_neg_prompt.pt": null, + "SDA768.pt": null, + "Style-Empire.pt": null, + "VikingPunk.pt": null, + "webtoon.pt": null, + "ycy_zzj-1000-1050.pt": null, + "ycy_zzj-1000-1100.pt": null, + "ycy_zzj-1000-1150.pt": null, + "ycy_zzj-1000-1200.pt": null, + "ycy_zzj-1000-1250.pt": null, + "ycy_zzj-1000-1300.pt": null, + "ycy_zzj-1000-1350.pt": null, + "ycy_zzj-1000-1400.pt": null, + "ycy_zzj-1000-1450.pt": null, + "ycy_zzj-1000-1500.pt": null, + "ycy_zzj-1000-1550.pt": null, + "ycy_zzj-1000-1600.pt": null, + "ycy_zzj-1000-1650.pt": null, + "ycy_zzj-1000-1700.pt": null, + "ycy_zzj-1000-1750.pt": null, + "ycy_zzj-1000-1800.pt": null, + "ycy_zzj-1000-1850.pt": null, + "ycy_zzj-1000-1900.pt": null, + "ycy_zzj-1000-1950.pt": null, + "ycy_zzj-1000.pt": null, + "ycy_zzj-2000.pt": null, + "ycy_zzj.pt": null, + "facebombmix_v1Bakedvae.safetensors": null, + "mistoonSapphire_v10.safetensors": null, + "LowRA.safetensors": null, + "21SDModernBuildings_midjourneyBuildings.ckpt": null, + "2dn_1.safetensors": null, + "AbyssOrangeMix2_hard.safetensors": null, + "adobisRealFlexibleMix_v2.safetensors": null, + "allInOnePixelModel_v1.ckpt": null, + "aloeverasSimpmaker3K_simpmaker3K1.ckpt": null, + "analogDiffusion_10Safetensors.safetensors": null, + "analogDream3D_10.ckpt": null, + "anovel_speed.ckpt": null, + "anygenV37_anygenv37.ckpt": null, + "Anything-V3.0-pruned.ckpt": null, + "anytwam11Mixedmodel_anytwam11.safetensors": null, + "aoaokoPVCStyleModel_pvcAOAOKO.safetensors": null, + "arcaneDiffusion_v3.ckpt": null, + "Arcane_Diffusion.ckpt": null, + "artErosAerosATribute_aerosNovae.safetensors": null, + "aToZovyaRPGArtistsTools15_sd15V1.safetensors": null, + "ayonimix_V2.safetensors": null, + "babes_11.safetensors": null, + "Basil_mix_fixed.safetensors": null, + "biggerGirlsModel_biggergirlsV2.ckpt": null, + "cheeseDaddys_30.safetensors": null, + "chilloutmix_inpainting.inpainting.safetensors": null, + "chilloutmix_NiPrunedFp32Fix.safetensors": null, + "chillout_west_mix.safetensors": null, + "chromaticcreamv1_chromaticcreamV1.ckpt": null, + "ChromaV5 (2.0).ckpt": null, + "clarity_14.safetensors": null, + "classicNegative1521_classicNegative768px.ckpt": null, + "Colorwater_v4.safetensors": null, + "comicBabes_v1.safetensors": null, + "comicDiffusion_v2.ckpt": null, + "corneos7thHeavenMix_100.safetensors": null, + "corneos7thHeavenMix_v1.safetensors": null, + "Counterfeit-V2.5_pruned.safetensors": null, + "CounterfeitV20_20.ckpt": null, + "cuteRichstyle15_cuteRichstyle.ckpt": null, + "cyberrealistic_v13.safetensors": null, + "cynthiaModela_v10.safetensors": null, + "deliberate_v11-inpainting.inpainting.safetensors": null, + "deliberate_v11.safetensors": null, + "dgspitzerArt_dgspitzerArtDiffusion.safetensors": null, + "diGiMDSToriyamaModel_toriyamaV1.ckpt": null, + "dreamlikeDiffusion10_10.ckpt": null, + "dreamlikePhotoreal20_dreamlikePhotoreal20.safetensors": null, + "dreamshaper_332BakedVaeClipFix.safetensors": null, + "DucHaitenAIart.safetensors": null, + "duchaitenaiart_V20.safetensors": null, + "dvarchMultiPrompt_dvarchExterior.ckpt": null, + "edgeOfRealism_eorV20Fp16BakedVAE.safetensors": null, + "ElldrethsImaginationMix.ckpt": null, + "elldrethsLucidMix_v10.safetensors": null, + "elldrethSOg4060Mix_v10.ckpt": null, + "elldrethsRetroMix_v10.safetensors": null, + "elldrethsVividMix_v20VividEr.safetensors": null, + "Elldreths_OG_4060_mix.ckpt": null, + "Elldreths_Retro_Mix.ckpt": null, + "fkingScifiV2_r41958.safetensors": null, + "furtasticv11_furtasticv11.safetensors": null, + "futagen_2.safetensors": null, + "galaxytimemachinesGTM_v1.safetensors": null, + "Grapefruit.safetensors": null, + "grapeGrapefruitHenta_grapefruitV11.safetensors": null, + "GrapeLikeDreamFruit.ckpt": null, + "gta5ArtworkDiffusion_v1.ckpt": null, + "hAS3Dkx10B_3Dkx10B.safetensors": null, + "hasdx_hasedsdx.safetensors": null, + "hassanblend1512And_hassanblend1512.safetensors": null, + "hassanBlendAllVersio_hassanBlend14.safetensors": null, + "HAs_3DKX 1.1.ckpt": null, + "healySAnimeBlend_17.ckpt": null, + "Healys_Anime_Blend.ckpt": null, + "homoerotic_v2.safetensors": null, + "icomix_V02Pruned.safetensors": null, + "Inkpunk-Diffusion-v2.ckpt": null, + "inkpunkDiffusion_v2-inpainting-fp16-no-ema.safetensors": null, + "inkpunkDiffusion_v2-inpainting.safetensors": null, + "inkpunkDiffusion_v2.ckpt": null, + "instruct-pix2pix-00-22000.safetensors": null, + "jaksCreepyCritter_sd21768px.ckpt": null, + "jhSSamdoesarts_v5.ckpt": null, + "kenshi_00.safetensors": null, + "knollingcase_v1.ckpt": null, + "kotosAbyssproto_v10.safetensors": null, + "ligneClaireAnime_v1.safetensors": null, + "majorXs2DPOVModel_2dpov11.ckpt": null, + "mandarine_3.ckpt": null, + "marvelWhatIf_v2.ckpt": null, + "meinamix_meinaV8.safetensors": null, + "meinamix_meinaV9.safetensors": null, + "mimi_V3.safetensors": null, + "mini_town_v1.safetensors": null, + "mixProV3_v3.safetensors": null, + "mixProV4_v4.safetensors": null, + "modernDisney_v1.ckpt": null, + "moistmix_v2.safetensors": null, + "openjourney-v2.ckpt": null, + "openjourneyAka_v1.ckpt": null, + "owlerartStyle_v2.safetensors": null, + "pastelMixStylizedAnime_pastelMixPrunedFP16.safetensors": null, + "pfg_111Safetensors.safetensors": null, + "pixhell_v20.safetensors": null, + "princessZeldaLora_v1.safetensors": null, + "projectUnrealEngine5_projectUnrealEngine5B.ckpt": null, + "protogenV22Anime_22.safetensors": null, + "protogenX34Photorealism_1.safetensors": null, + "protogenX34Photoreal_1.safetensors": null, + "protogenX58RebuiltScifi_10.ckpt": null, + "protogenX58RebuiltScifi_10.safetensors": null, + "protogenX58RebuiltSc_10.safetensors": null, + "purepornplusMerge_purepornplus10.ckpt": null, + "pyraMythraPneuma_50Epochs.safetensors": null, + "qgo10a_qgo10a.safetensors": null, + "ratnikamix_2.safetensors": null, + "realeldenapocalypse_Analogsexknoll.safetensors": null, + "realisticVisionV13_v12.safetensors": null, + "realisticVisionV20_v20.safetensors": null, + "realLifeTest_realLifeTest.ckpt": null, + "redshiftDiffusion_v1.ckpt": null, + "revAnimated_v11.safetensors": null, + "revAnimated_v122.safetensors": null, + "roboeticsMix_rmix01Ckpt.ckpt": null, + "RPG.ckpt": null, + "s1dlxbrew_02.safetensors": null, + "samdoesartsUltmerge_v1.ckpt": null, + "schoolAnime_schoolAnime.safetensors": null, + "schoolmax25d_11.ckpt": null, + "sd-v1-4.ckpt": null, + "sd-v1-5-inpainting.ckpt": null, + "shadyArtOFFICIAL_shadyArt1.safetensors": null, + "shanshui_v0-000002.safetensors": null, + "spybgsToolkitFor_v40YoutubeChannel.ckpt": null, + "stablydiffusedsWild_3.safetensors": null, + "StablyDiffuseds_Aesthetic_Mix.ckpt": null, + "superheroDiffusion_v1.ckpt": null, + "surugaModel_suruga12K.ckpt": null, + "synthwavepunk_v2.ckpt": null, + "theallysMixIIChurned_v10.safetensors": null, + "theAllysMix_v10Safetensors.safetensors": null, + "tmndMix_tmndMixPlus.safetensors": null, + "toonyou_alpha3.safetensors": null, + "uberRealisticPornMerge_urpmv12.safetensors": null, + "unstableinkdream_v6.safetensors": null, + "unstableinkdream_v73.safetensors": null, + "unstablephotorealv5_05.ckpt": null, + "v1-5-pruned.ckpt": null, + "v2-1_768-nonema-pruned.ckpt": null, + "wd-v1-3-full.ckpt": null, + "wlop_1.ckpt": null, + "yiffymix_.safetensors": null, + "yinmu.safetensors": null, + "\u5565\u73a9\u610f\u5b8c\u728a\u5b50F16.safetensors": null, + "AnimeKiss.safetensors": null, + "gakkou-00008.safetensors": null, + "miniatureWorldStyle_v10.safetensors": null, + "WuMo2.safetensors": null, + "[LoCon] Octans\u516b\u5206\u5100 Style.safetensors": null, + "CounterfeitV30_v30.safetensors": null, + "flat2DAnimerge_v10.safetensors": null, + "miniature_V1.safetensors": null, + "rcnzsDumbMonkey_v10.safetensors": null, + "saucitySauce_ssumdPlus.safetensors": null, + "shanshui_v0.1.safetensors": null, + "vividWatercolors_10.safetensors": null, + "test\\3Guofeng3_v33.safetensors": null, + "test\\schoolAnime_schoolAnime.safetensors": null, + "beautifulRealistic_brav5.safetensors": null, + "80year03.safetensors": null, + "9khp2znuogB.safetensors": null, + "battle_uniform-v1.1-000001.safetensors": null, + "battle_uniform-v1.1-000002.safetensors": null, + "battle_uniform-v1.1-000003.safetensors": null, + "battle_uniform-v1.1-000004.safetensors": null, + "battle_uniform-v1.1-000005.safetensors": null, + "battle_uniform-v1.1-000006.safetensors": null, + "battle_uniform-v1.1-000007.safetensors": null, + "battle_uniform-v1.1-000008.safetensors": null, + "battle_uniform-v1.1-000009.safetensors": null, + "battle_uniform-v1.1.safetensors": null, + "battle_uniform-v1.2-000001.safetensors": null, + "battle_uniform-v1.2-000002.safetensors": null, + "battle_uniform-v1.2-000003.safetensors": null, + "battle_uniform-v1.2-000004.safetensors": null, + "battle_uniform-v1.2-000005.safetensors": null, + "battle_uniform-v1.2-000006.safetensors": null, + "battle_uniform-v1.2-000007.safetensors": null, + "battle_uniform-v1.2-000008.safetensors": null, + "battle_uniform-v1.2-000009.safetensors": null, + "battle_uniform-v1.2-000010.safetensors": null, + "battle_uniform-v1.2-000011.safetensors": null, + "battle_uniform-v1.2-000012.safetensors": null, + "battle_uniform-v1.2-000013.safetensors": null, + "battle_uniform-v1.2-000014.safetensors": null, + "battle_uniform-v1.2-000015.safetensors": null, + "battle_uniform-v1.2-000016.safetensors": null, + "battle_uniform-v1.2-000017.safetensors": null, + "battle_uniform-v1.2-000018.safetensors": null, + "battle_uniform-v1.2-000019.safetensors": null, + "battle_uniform-v1.2-000020.safetensors": null, + "battle_uniform-v1.2-000021.safetensors": null, + "battle_uniform-v1.2-000022.safetensors": null, + "battle_uniform-v1.2-000023.safetensors": null, + "battle_uniform-v1.2-000024.safetensors": null, + "battle_uniform-v1.2-000025.safetensors": null, + "battle_uniform-v1.2-000026.safetensors": null, + "battle_uniform-v1.2-000027.safetensors": null, + "battle_uniform-v1.2-000028.safetensors": null, + "battle_uniform-v1.2-000029.safetensors": null, + "battle_uniform-v1.2-000030.safetensors": null, + "battle_uniform-v1.2-000031.safetensors": null, + "battle_uniform-v1.2-000032.safetensors": null, + "battle_uniform-v1.2-000033.safetensors": null, + "battle_uniform-v1.2-000034.safetensors": null, + "battle_uniform-v1.2-000035.safetensors": null, + "battle_uniform-v1.2-000036.safetensors": null, + "battle_uniform-v1.2-000037.safetensors": null, + "battle_uniform-v1.2-000038.safetensors": null, + "battle_uniform-v1.2-000039.safetensors": null, + "battle_uniform-v1.2-000040.safetensors": null, + "battle_uniform-v1.2-000041.safetensors": null, + "battle_uniform-v1.2-000042.safetensors": null, + "battle_uniform-v1.2-000043.safetensors": null, + "battle_uniform-v1.2-000044.safetensors": null, + "battle_uniform-v1.2-000045.safetensors": null, + "battle_uniform-v1.2-000046.safetensors": null, + "battle_uniform-v1.2-000047.safetensors": null, + "battle_uniform-v1.2-000048.safetensors": null, + "battle_uniform-v1.2-000049.safetensors": null, + "battle_uniform-v1.2.safetensors": null, + "battle_uniform_v1-000002.safetensors": null, + "battle_uniform_v1-000004.safetensors": null, + "battle_uniform_v1-000006.safetensors": null, + "battle_uniform_v1-000008.safetensors": null, + "battle_uniform_v1-000010.safetensors": null, + "battle_uniform_v1-000012.safetensors": null, + "battle_uniform_v1-000014.safetensors": null, + "battle_uniform_v1-000016.safetensors": null, + "battle_uniform_v1-000018.safetensors": null, + "battle_uniform_v1-000020.safetensors": null, + "battle_uniform_v1-000022.safetensors": null, + "battle_uniform_v1-000024.safetensors": null, + "battle_uniform_v1-000026.safetensors": null, + "battle_uniform_v1-000028.safetensors": null, + "battle_uniform_v1-000030.safetensors": null, + "bookcover_V2_loha-000033.safetensors": null, + "Boxcomple-15.safetensors": null, + "childbookfinv2.safetensors": null, + "ChineseKungFu.safetensors": null, + "ClearVAE_V2.2.safetensors": null, + "Cthulhu_monster.safetensors": null, + "dunhuang_v20.safetensors": null, + "Elegant hanfu ruqun style.safetensors": null, + "Girls in Glass Jars v3.safetensors": null, + "Girls' Frontline-OTs-14[lightning]-V3.safetensors": null, + "hanfu_v30.safetensors": null, + "history_scroll_0.5.safetensors": null, + "howlbgsv3.safetensors": null, + "LAS.safetensors": null, + "Light and Shadow.safetensors": null, + "Lora-Custom-ModelLiXian.safetensors": null, + "lora_CelestialHarmony.safetensors": null, + "mafuyulightmakeup.safetensors": null, + "mafuyuLoraOfFace_origin.safetensors": null, + "mario.safetensors": null, + "miaoLan_165.safetensors": null, + "mini2dtest_V2_loha.safetensors": null, + "MultipleGirlsGroup.safetensors": null, + "nami_final_offset.safetensors": null, + "neowrsk.safetensors": null, + "niba_style_v1.safetensors": null, + "nico_robin_post_timeskip_offset.safetensors": null, + "phoenixMarie.safetensors": null, + "pixel_V1_loha-000024.safetensors": null, + "piying_v0.1-side_view.safetensors": null, + "Pmini_v3.5.18.safetensors": null, + "qy_bookcover_v1.safetensors": null, + "rageMode_v1.safetensors": null, + "shinkai_makoto_offset.safetensors": null, + "SurrealHarmony.safetensors": null, + "toonyou_lora.safetensors": null, + "toonyou_lycoris.safetensors": null, + "WaterMargin_v1.safetensors": null, + "zgf_v2_loha-000030.safetensors": null, + "2dposter_v1_loha-000015.safetensors": null, + "OF_Coconut_Kitty.safetensors": null, + "aZovyaPhotoreal_v2.safetensors": null, + "meinahentai_v4.safetensors": null, + "3DMM_V11.safetensors": null, + "anythingqingmix25D_v10.safetensors": null, + "anythingV3Inpainting_1-inpainting.ckpt": null, + "AnythingV5Ink_v32Ink.safetensors": null, + "couterfeitv30_v30.inpainting.safetensors": null, + "disneyPixarCartoon_v10.safetensors": null, + "dis_V1-000020.safetensors": null, + "ghostmix_v20Bakedvae.safetensors": null, + "guofengrealmix_v10.safetensors": null, + "majicMIX fantasy_v1.0.safetensors": null, + "majicmixRealistic_v4.safetensors": null, + "majicmixRealistic_v6.safetensors": null, + "miaoshouai-anything-v4-pruned.safetensors": null, + "niantu_v1.safetensors": null, + "oukaGufeng_s1.safetensors": null, + "pixarStyleModel_v10.ckpt": null, + "rpg_V4.inpainting.safetensors": null, + "rpg_V4.safetensors": null, + "rpg_v4_2.inpainting.safetensors": null, + "sdxl_base_pruned_no-ema.safetensors": null, + "sdxl_refiner_pruned_no-ema.safetensors": null, + "model_contest_1\\1-DangerAngelSavour10.safetensors-ckpt.safetensors": null, + "model_contest_1\\10-huacai1.0-ckpt.safetensors": null, + "model_contest_1\\11-CmixG-ckpt.safetensors": null, + "model_contest_1\\16-NewGufengV1.0-ckpt.safetensors": null, + "model_contest_1\\29-xxmix9realistic v4.0-ckpt.safetensors": null, + "model_contest_1\\32-Rely on Defenc-ckpt.safetensors": null, + "model_contest_1\\33-super_gufeng-ckpt.safetensors": null, + "model_contest_1\\35-Dream CNrealistic_MIXv11-ckpt.safetensors": null, + "model_contest_1\\38-version V1-ckpt.safetensors": null, + "model_contest_1\\40-Alpha Lyrae-ckpt.safetensors": null, + "model_contest_1\\41-tkf-ckpt.safetensors": null, + "model_contest_1\\5-Dream CNrealistic_MIXv21-ckpt.safetensors": null, + "model_contest_1\\54-guofeng-checkpoint.safetensors": null, + "model_contest_1\\68-Colorful_girl-checkpoint.ckpt": null, + "model_contest_1\\71-GCM-Game Concept Map-checkpoint.safetensors": null, + "model_contest_1\\76-SJ_real109-checkpoint.safetensors": null, + "model_contest_1\\95-chunzi-checkpoiint.ckpt": null, + "model_contest_1\\99-Dream CNrealistic_MIXv12-checkpoint.safetensors": null, + "model_contest_1\\CMixG-1-0.33.safetensors": null, + "leokan.safetensors": null, + "Moses_ten_commandments-BibleGilgalHK-V1.safetensors": null +} \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/official_models.json b/miaoshouai-assistant-main/configs/official_models.json new file mode 100644 index 0000000000000000000000000000000000000000..dcf1ef6ac446396341ad0dbb598bfdd8d9debd05 --- /dev/null +++ b/miaoshouai-assistant-main/configs/official_models.json @@ -0,0 +1,594 @@ +[ + { + "id": 1, + "name": "stable-diffusion-v1-5", + "description": "Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input. For more information about how Stable Diffusion functions, please have a look at \uD83E\uDD17's Stable Diffusion blog.\n\nThe Stable-Diffusion-v1-5 checkpoint was initialized with the weights of the Stable-Diffusion-v1-2 checkpoint and subsequently fine-tuned on 595k steps at resolution 512x512 on \"laion-aesthetics v2 5+\" and 10% dropping of the text-conditioning to improve classifier-free guidance sampling.\n\nYou can use this both with the \uD83E\uDDE8Diffusers library and the RunwayML GitHub repository.
", + "type": "Checkpoint", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "creativeml-openrail-m", + "image": "https://huggingface.co/runwayml/stable-diffusion-v1-5" + }, + "tags": [ + "horror", + "dzislaw beksinskidzi", + "kappa_neuro", + "paintings" + ], + "modelVersions": [ + { + "id": 1, + "modelId": 7019, + "name": "Zdzislaw Beksinski LORA", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "v1-5-pruned-emaonly.ckpt", + "id": 1, + "sizeKB": 4471261.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", + "primary": false + }, + { + "name": "v1-5-pruned-emaonly.safetensors", + "id": 2, + "sizeKB": 4471261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors", + "primary": true + }, + { + "name": "v1-5-pruned.ckpt", + "id": 3, + "sizeKB": 7971261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.ckpt", + "primary": false + }, + { + "name": "v1-5-pruned.safetensors", + "id": 4, + "sizeKB": 7971261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors", + "primary": false + }, + { + "name": "sd-v1-5-inpainting.ckpt", + "id": 5, + "sizeKB": 4471261.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-inpainting/resolve/main/sd-v1-5-inpainting.ckpt", + "primary": false + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + }, + { + "id": 2, + "name": "stable-diffusion-2-1", + "description": "Stable Diffusion v2-1 Model Card\nThis model card focuses on the model associated with the Stable Diffusion v2-1 model, codebase available here.\n\nThis stable-diffusion-2-1 model is fine-tuned from stable-diffusion-2 (768-v-ema.ckpt) with an additional 55k steps on the same dataset (with punsafe=0.1), and then fine-tuned for another 155k extra steps with punsafe=0.98.\n\nUse it with the stablediffusion repository: download the v2-1_768-ema-pruned.ckpt here.\nUse it with \uD83E\uDDE8 diffusers\nModel Details\nDeveloped by: Robin Rombach, Patrick Esser\n\nModel type: Diffusion-based text-to-image generation model\n\nLanguage(s): English\n\nLicense: CreativeML Open RAIL++-M License\n\nModel Description: This is a model that can be used to generate and modify images based on text prompts. It is a Latent Diffusion Model that uses a fixed, pretrained text encoder (OpenCLIP-ViT/H).\n\nResources for more information: GitHub Repository.
", + "type": "Checkpoint", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "stabilityai", + "image": "https://huggingface.co/stabilityai/stable-diffusion-2-1" + }, + "tags": [], + "modelVersions": [ + { + "id": 2, + "modelId": 2, + "name": "stable-diffusion-2-1", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "v2-1_768-ema-pruned.ckpt", + "id": 6, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", + "primary": false + }, + { + "name": "v2-1_768-ema-pruned.safetensors", + "id": 7, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors", + "primary": true + }, + { + "name": "v2-1_768-nonema-pruned.ckpt", + "id": 8, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.ckpt", + "primary": false + }, + { + "name": "v2-1_768-nonema-pruned.safetensors", + "id": 9, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors", + "primary": false + }, + { + "name": "512-inpainting-ema.ckpt", + "id": 10, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.ckpt", + "primary": false + }, + { + "name": "512-inpainting-ema.safetensors", + "id": 11, + "sizeKB": 5421261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors", + "primary": false + }, + { + "name": "v2-1_768-ema-pruned.yaml", + "id": 12, + "sizeKB": 2261.130859375, + "type": "Model", + "format": "YAML", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml", + "primary": false + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + }, + { + "id": 4, + "name": "stable-diffusion-XL 1.0", + "description": "SDXL consists of a two-step pipeline for latent diffusion: First, we use a base model to generate latents of the desired output size. In the second step, we use a specialized high-resolution model and apply a technique called SDEdit (https://arxiv.org/abs/2108.01073, also known as \"img2img\") to the latents generated in the first step, using the same prompt.", + "type": "Checkpoint", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "stabilityai", + "image": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9/resolve/main/01.png" + }, + "tags": [], + "modelVersions": [ + { + "id": 2, + "modelId": 2, + "name": "sd_xl_base_1.0", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SDXL", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "sd_xl_base_1.0.safetensors", + "id": 6, + "sizeKB": 7242126.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "31E35C80FC", + "SHA256": "31E35C80FC4829D14F90153F4C74CD59C90B779F6AFE05A74CD6120B893F7E5B", + "CRC32": "31E35C80FC", + "BLAKE3": "31E35C80FC4829D14F90153F4C74CD59C90B779F6AFE05A74CD6120B893F7E5B" + }, + "downloadUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors", + "primary": true + }, + { + "name": "sd_xl_refiner_1.0.safetensors", + "id": 7, + "sizeKB": 6221261.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "7440042BBD", + "SHA256": "7440042BBDC8A24813002C09B6B69B64DC90FDED4472613437B7F55F9B7D9C5F", + "CRC32": "7440042BBD", + "BLAKE3": "7440042BBDC8A24813002C09B6B69B64DC90FDED4472613437B7F55F9B7D9C5F" + }, + "downloadUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors", + "primary": true + }, + { + "name": "sdxl_vae.safetensors", + "id": 7, + "sizeKB": 360126.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "551EAC7037", + "SHA256": "551EAC7037CE58DE1EF4447F16D48664C1E67F0E27AF50A06B1A6D458B571E0C", + "CRC32": "551EAC7037", + "BLAKE3": "551EAC7037CE58DE1EF4447F16D48664C1E67F0E27AF50A06B1A6D458B571E0C" + }, + "downloadUrl": "https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors", + "primary": true + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + }, + { + "id": 3, + "name": "VAE", + "description": "Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input. For more information about how Stable Diffusion functions, please have a look at \uD83E\uDD17's Stable Diffusion blog.\n\nThe Stable-Diffusion-v1-5 checkpoint was initialized with the weights of the Stable-Diffusion-v1-2 checkpoint and subsequently fine-tuned on 595k steps at resolution 512x512 on \"laion-aesthetics v2 5+\" and 10% dropping of the text-conditioning to improve classifier-free guidance sampling.\n\nYou can use this both with the \uD83E\uDDE8Diffusers library and the RunwayML GitHub repository.
", + "type": "VAE", + "poi": false, + "nsfw": false, + "allowNoCredit": true, + "allowCommercialUse": "Rent", + "allowDerivatives": true, + "allowDifferentLicense": true, + "stats": { + "downloadCount": 865, + "favoriteCount": 190, + "commentCount": 7, + "ratingCount": 2, + "rating": 5 + }, + "creator": { + "username": "creativeml-openrail-m", + "image": "https://huggingface.co/runwayml/stable-diffusion-v1-5" + }, + "tags": [], + "modelVersions": [ + { + "id": 3, + "modelId": 3, + "name": "VAE", + "createdAt": "2023-02-06T13:52:34.605Z", + "updatedAt": "2023-02-06T13:52:34.605Z", + "trainedWords": [], + "baseModel": "SD 1.5", + "earlyAccessTimeFrame": 0, + "description": "", + "files": [ + { + "name": "vae-ft-ema-560000-ema-pruned.ckpt", + "id": 15, + "sizeKB": 447126.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/stabilityai/sd-vae-ft-ema-original/resolve/main/vae-ft-ema-560000-ema-pruned.ckpt", + "primary": false + }, + { + "name": "vae-ft-mse-840000-ema-pruned.ckpt", + "id": 16, + "sizeKB": 447126.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt", + "primary": true + }, + { + "name": "Waifu-diffusion-v1-4 VAE", + "id": 17, + "sizeKB": 497126.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "SHA256": "DF3C506E51B7EE1D7B5A6A2BB7142D47D488743C96AA778AFB0F53A2CDC2D38D" + }, + "downloadUrl": "https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt", + "primary": false + }, + { + "name": "autoencoder_fix_kl-f8-trinart_chara", + "id": 18, + "sizeKB": 447126.130859375, + "type": "Model", + "format": "CKPT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "833E816807", + "SHA256": "833E816807E8D3658EBC65436908F690603A8E0E8D26143A90050F32958C9E4E", + "CRC32": "87F68C12", + "BLAKE3": "7A28D3D22520D61B58338791522A14B7B33A6A9CE552FF7D68D7E2688CAB3266" + }, + "downloadUrl": "https://huggingface.co/naclbit/trinart_characters_19.2m_stable_diffusion_v1/resolve/main/autoencoder_fix_kl-f8-trinart_characters.ckpt", + "primary": false + }, + { + "name": "Anything-V3.0.vae.pt", + "id": 19, + "sizeKB": 847126.130859375, + "type": "Model", + "format": "PT", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "F921FB3F29", + "SHA256": "F921FB3F29891D2A77A6571E56B8B5052420D2884129517A333C60B1B4816CDF" + }, + "downloadUrl": "https://huggingface.co/Linaqruf/anything-v3.0/resolve/refs%2Fpr%2F11/Anything-V3.0.vae.pt", + "primary": false + }, + { + "name": "Berrymix VAE", + "id": 20, + "sizeKB": 447126.130859375, + "type": "Model", + "format": "Checkpoint", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "F921FB3F29", + "SHA256": "F921FB3F29891D2A77A6571E56B8B5052420D2884129517A333C60B1B4816CDF" + }, + "downloadUrl": "https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt", + "primary": false + }, + { + "name": "sdxl_vae.safetensors", + "id": 7, + "sizeKB": 360126.130859375, + "type": "Model", + "format": "Safetensors", + "pickleScanResult": "Success", + "pickleScanMessage": "No Pickle imports", + "virusScanResult": "Success", + "scannedAt": "2023-02-06T13:55:58.281Z", + "hashes": { + "AutoV2": "551EAC7037", + "SHA256": "551EAC7037CE58DE1EF4447F16D48664C1E67F0E27AF50A06B1A6D458B571E0C", + "CRC32": "551EAC7037", + "BLAKE3": "551EAC7037CE58DE1EF4447F16D48664C1E67F0E27AF50A06B1A6D458B571E0C" + }, + "downloadUrl": "https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors", + "primary": true + } + ], + "images": [ + { + "url": "https://msdn.miaoshouai.com/msai/kt/ez/9900922.png" + } + ] + } + ] + } +] \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/settings.json b/miaoshouai-assistant-main/configs/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..d578c6553d11674796cd2567a7e469431dd9a444 --- /dev/null +++ b/miaoshouai-assistant-main/configs/settings.json @@ -0,0 +1,20 @@ +{ + "boot_settings": { + "drp_args_vram": "CPU Only", + "drp_args_theme": "Dark Mode", + "txt_args_listen_port": "7860", + "Enable xFormers": "--xformers", + "No Half": "--no-half", + "No Half VAE": "False", + "Enable API": "--api", + "Auto Launch": "--autolaunch", + "Allow Local Network Access": "False", + "drp_choose_version": "Official Release", + "txt_args_more": "", + "auto_vram": true, + "disable_log_console_output": true, + "model_source": "liandange.com", + "my_model_source": "civitai.com", + "openai_api": "" + } +} \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/webui-macos-env.sh b/miaoshouai-assistant-main/configs/webui-macos-env.sh new file mode 100644 index 0000000000000000000000000000000000000000..37cac4fb02c5ea53fa270336729b90ac2ef3ac74 --- /dev/null +++ b/miaoshouai-assistant-main/configs/webui-macos-env.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#################################################################### +# macOS defaults # +# Please modify webui-user.sh to change these instead of this file # +#################################################################### + +if [[ -x "$(command -v python3.10)" ]] +then + python_cmd="python3.10" +fi + +export install_dir="$HOME" +export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate" +export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1" +export K_DIFFUSION_REPO="https://github.com/brkirch/k-diffusion.git" +export K_DIFFUSION_COMMIT_HASH="51c9778f269cedb55a4d88c79c0246d35bdadb71" +export PYTORCH_ENABLE_MPS_FALLBACK=1 + +#################################################################### diff --git a/miaoshouai-assistant-main/configs/webui-user-launch.bat b/miaoshouai-assistant-main/configs/webui-user-launch.bat new file mode 100644 index 0000000000000000000000000000000000000000..ef0552f3ca69a7ab8a6191ee62118de737f55865 --- /dev/null +++ b/miaoshouai-assistant-main/configs/webui-user-launch.bat @@ -0,0 +1,10 @@ +echo off +set GIT_PYTHON_GIT_EXECUTABLE=git\\bin\\git.exe + +echo AIԴվ +echo http://resource.miaoshouai.com ȡԴ +set GIT_PYTHON_REFRESH=quiet +call update.bat + +python\python.exe webui.py --autolaunch --api --xformers --medvram --deepdanbooru +pause \ No newline at end of file diff --git a/miaoshouai-assistant-main/configs/webui-user.sh b/miaoshouai-assistant-main/configs/webui-user.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f2a7dd57b11fd77c641a0023a1d9b82ab50281b --- /dev/null +++ b/miaoshouai-assistant-main/configs/webui-user.sh @@ -0,0 +1,47 @@ +#!/bin/bash +######################################################### +# Uncomment and change the variables below to your need:# +######################################################### + +# Install directory without trailing slash +#install_dir="/home/$(whoami)" + +# Name of the subdirectory +#clone_dir="stable-diffusion-webui" + +# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--medvram --opt-split-attention" +# uncomment the line below based on https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon +export COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --use-cpu all" + +# python3 executable +#python_cmd="python3" + +# git executable +#export GIT="git" + +# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv) +#venv_dir="venv" + +# script to launch to start the app +#export LAUNCH_SCRIPT="launch.py" + +# install command for torch +#export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113" + +# Requirements file to use for stable-diffusion-webui +#export REQS_FILE="requirements_versions.txt" + +# Fixed git repos +#export K_DIFFUSION_PACKAGE="" +#export GFPGAN_PACKAGE="" + +# Fixed git commits +#export STABLE_DIFFUSION_COMMIT_HASH="" +#export TAMING_TRANSFORMERS_COMMIT_HASH="" +#export CODEFORMER_COMMIT_HASH="" +#export BLIP_COMMIT_HASH="" + +# Uncomment to enable accelerated launch +#export ACCELERATE="True" + +########################################### diff --git a/miaoshouai-assistant-main/install.py b/miaoshouai-assistant-main/install.py new file mode 100644 index 0000000000000000000000000000000000000000..589a47197bc0ee8169c28a3ece26ab585a1e3feb --- /dev/null +++ b/miaoshouai-assistant-main/install.py @@ -0,0 +1,31 @@ +import launch +import os +import gzip +import io +import git +import shutil + +def install_preset_models_if_needed(): + assets_folder = os.path.join(os.path.dirname(os.path.realpath(__file__)), "assets") + configs_folder = os.path.join(os.path.dirname(os.path.realpath(__file__)), "configs") + + for model_filename in ["civitai_models.json", "liandange_models.json", "gpt_index.json"]: + gzip_file = os.path.join(assets_folder, f"{model_filename}.gz") + target_file = os.path.join(configs_folder, f"{model_filename}") + if not os.path.exists(target_file): + with gzip.open(gzip_file, "rb") as compressed_file: + with io.TextIOWrapper(compressed_file, encoding="utf-8") as decoder: + content = decoder.read() + with open(target_file, "w") as model_file: + model_file.write(content) + +req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt") + +with open(req_file) as file: + for lib in file: + lib = lib.strip() + if not launch.is_installed(lib): + launch.run_pip(f"install {lib}", f"Miaoshou assistant requirement: {lib}") + +install_preset_models_if_needed() + diff --git a/miaoshouai-assistant-main/requirements.txt b/miaoshouai-assistant-main/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..75ceccc3324c0bdbd52e07f19aae6d9cc214a41a --- /dev/null +++ b/miaoshouai-assistant-main/requirements.txt @@ -0,0 +1,8 @@ +psutil +rehash +tqdm +openai +numba +gpt_index==0.4.24 +langchain==0.0.132 +gradio_client==0.2.7 \ No newline at end of file diff --git a/miaoshouai-assistant-main/scripts/assistant/__init__.py b/miaoshouai-assistant-main/scripts/assistant/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..bf393efc7ee6015f8076f3ce7739143f58642654 --- /dev/null +++ b/miaoshouai-assistant-main/scripts/assistant/__init__.py @@ -0,0 +1 @@ +__all__ = ["miaoshou"] diff --git a/miaoshouai-assistant-main/scripts/assistant/miaoshou.py b/miaoshouai-assistant-main/scripts/assistant/miaoshou.py new file mode 100644 index 0000000000000000000000000000000000000000..def205d250e4ebf706dea01d676913af08dd9867 --- /dev/null +++ b/miaoshouai-assistant-main/scripts/assistant/miaoshou.py @@ -0,0 +1,462 @@ +import os +import sys +import typing as t + +import gradio as gr +from modules.sd_models import CheckpointInfo +from modules.call_queue import wrap_queued_call +import launch +import modules +from modules import shared +from scripts.msai_logging.msai_logger import Logger +from scripts.runtime.msai_prelude import MiaoshouPrelude +from scripts.runtime.msai_runtime import MiaoshouRuntime +import modules.generation_parameters_copypaste as parameters_copypaste +from modules.ui_components import ToolButton + + +class MiaoShouAssistant(object): + # default css definition + default_css = '#my_model_cover{width: 100px;} #my_model_trigger_words{width: 200px;}' + + def __init__(self) -> None: + self.logger = Logger() + self.prelude = MiaoshouPrelude() + self.runtime = MiaoshouRuntime() + self.refresh_symbol = '\U0001f504' + self.coffee_symbol = '\U0001f9cb' # 🧋 + self.folder_symbol = '\U0001f4c2' # 📂 + + def on_event_ui_tabs_opened(self) -> t.List[t.Optional[t.Tuple[t.Any, str, str]]]: + with gr.Blocks(analytics_enabled=False, css=MiaoShouAssistant.default_css) as miaoshou_assistant: + self.create_subtab_boot_assistant() + self.create_subtab_model_management() + self.create_subtab_model_download() + self.create_subtab_update() + + return [(miaoshou_assistant.queue(), "Miaoshou Assistant", "miaoshou_assistant")] + + def create_subtab_boot_assistant(self) -> None: + with gr.TabItem('Boot Assistant', elem_id="boot_assistant_tab") as boot_assistant: + with gr.Row(): + with gr.Column(elem_id="col_model_list"): + gpu, theme, port, chk_args, txt_args, webui_ver = self.runtime.get_default_args() + gr.Markdown(value="Argument settings") + with gr.Row(): + self.drp_gpu = gr.Dropdown(label="VRAM Size", elem_id="drp_args_vram", + choices=list(self.prelude.gpu_setting.keys()), + value=gpu, interactive=True) + self.drp_theme = gr.Dropdown(label="UI Theme", choices=list(self.prelude.theme_setting.keys()), + value=theme, + elem_id="drp_args_theme", interactive=True) + self.txt_listen_port = gr.Text(label='Listen Port', value=port, elem_id="txt_args_listen_port", + interactive=True) + + with gr.Row(): + + self.chk_group_args = gr.CheckboxGroup(choices=list(self.prelude.checkboxes.keys()), value=chk_args, + show_label=False) + self.additional_args = gr.Text(label='COMMANDLINE_ARGS (Divide by space)', value=txt_args, + elem_id="txt_args_more", interactive=True) + + with gr.Row(): + with gr.Column(): + txt_save_status = gr.Markdown(visible=False, interactive=False, show_label=False) + drp_choose_version = gr.Dropdown(label="WebUI Version", + choices=['Official Release', 'Python Integrated'], + value=webui_ver, elem_id="drp_args_version", + interactive=True) + gr.HTML( + '*Save your settings to webui-user.bat file. Use Python Integrated only if your' + ' WebUI is extracted from a zip file and does not need python installation
+ This extension is created to improve some of the use experience for automatic1111 webui. + It is free of charge, use it as you wish, please DO NOT sell this extension. + Follow us on github, discord and give us suggestions, report bugs. support us with love or coffee~ + Cheers~
++ + + 【QQ群:256734228】 +
+ + """ + ) + + btn_check_update.click(self.runtime.check_update, inputs=[], outputs=[txt_update_result, chk_dont_update_ms, btn_update]) + btn_update_gptapi.click(self.runtime.update_gptapi, inputs=[txt_gptapi], outputs=[md_api_res, self.txt_main_prompt]) + btn_update.click(self.runtime.update_program, inputs=[chk_dont_update_ms], outputs=[txt_update_result]) + + def save_cmdline_args(self, drp_gpu, drp_theme, txt_listen_port, chk_group_args, additional_args): + #print(drp_gpu, drp_theme, txt_listen_port, chk_group_args, additional_args) + self.runtime.get_final_args(drp_gpu, drp_theme, txt_listen_port, chk_group_args, additional_args) + #print('request_restart: cmd_arg = ', self.runtime.cmdline_args) + #print('request_restart: sys.argv = ', sys.argv) + + # reset args + sys.argv = [sys.argv[0]] + os.environ['COMMANDLINE_ARGS'] = "" + #print('remove', sys.argv) + + for arg in list(dict.fromkeys(self.runtime.cmdline_args)): + sys.argv.append(arg) + + print('saved args', sys.argv) + #launch.start() + return gr.Markdown.update(value="Settings Saved", visible=True) + + def switch_model_source(self, new_model_source: str): + self.runtime.model_source = new_model_source + show_download_button = self.runtime.model_source != "liandange.com" + images = self.runtime.get_images_html() + self.runtime.ds_models.samples = images + + if self.runtime.model_source not in ['official_models', 'hugging_face', 'controlnet']: + self.runtime.update_boot_setting('model_source', self.runtime.model_source) + + return ( + gr.Dataset.update(samples=images), + gr.Button.update(visible=show_download_button), + gr.HTML.update(visible=not show_download_button) + ) + + def switch_my_model_source(self, new_model_source: str, model_type): + self.runtime.my_model_source = new_model_source + my_models = self.runtime.get_local_models('', model_type) + self.runtime.ds_my_models.samples = my_models + + if self.runtime.my_model_source not in ['official_models', 'hugging_face', 'controlnet']: + self.runtime.update_boot_setting('my_model_source', self.runtime.my_model_source) + + return gr.Dataset.update(samples=my_models) + + def introception(self) -> None: + self.runtime.introception() + + diff --git a/miaoshouai-assistant-main/scripts/download/__init__.py b/miaoshouai-assistant-main/scripts/download/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8ce63852777d44042e4f133436160d2639d6caf9 --- /dev/null +++ b/miaoshouai-assistant-main/scripts/download/__init__.py @@ -0,0 +1 @@ +__all__ = ["msai_downloader_manager"] diff --git a/miaoshouai-assistant-main/scripts/download/msai_downloader_manager.py b/miaoshouai-assistant-main/scripts/download/msai_downloader_manager.py new file mode 100644 index 0000000000000000000000000000000000000000..242a9e219ecefe289089bb0592a42f52b872ae2e --- /dev/null +++ b/miaoshouai-assistant-main/scripts/download/msai_downloader_manager.py @@ -0,0 +1,251 @@ +import asyncio +import os.path +import queue +import time +import requests +import typing as t +from threading import Thread, Lock + +from scripts.download.msai_file_downloader import MiaoshouFileDownloader +from scripts.msai_logging.msai_logger import Logger +from scripts.msai_utils.msai_singleton import MiaoshouSingleton +import scripts.msai_utils.msai_toolkit as toolkit +from urllib.request import Request, urlopen + + +class DownloadingEntry(object): + def __init__(self, target_url: str = None, local_file: str = None, + local_directory: str = None, estimated_total_size: float = 0., expected_checksum: str = None): + self._target_url = target_url + self._local_file = local_file + self._local_directory = local_directory + self._expected_checksum = expected_checksum + + self._estimated_total_size = estimated_total_size + self._total_size = 0 + self._downloaded_size = 0 + + self._downloading = False + self._failure = False + + @property + def target_url(self) -> str: + return self._target_url + + @property + def local_file(self) -> str: + return self._local_file + + @property + def local_directory(self) -> str: + return self._local_directory + + @property + def expected_checksum(self) -> str: + return self._expected_checksum + + @property + def total_size(self) -> int: + return self._total_size + + @total_size.setter + def total_size(self, sz: int) -> None: + self._total_size = sz + + @property + def downloaded_size(self) -> int: + return self._downloaded_size + + @downloaded_size.setter + def downloaded_size(self, sz: int) -> None: + self._downloaded_size = sz + + @property + def estimated_size(self) -> float: + return self._estimated_total_size + + def is_downloading(self) -> bool: + return self._downloading + + def start_download(self) -> None: + self._downloading = True + + def update_final_status(self, result: bool) -> None: + self._failure = (result is False) + self._downloading = False + + def is_failure(self) -> bool: + return self._failure + + +class AsyncLoopThread(Thread): + def __init__(self): + super(AsyncLoopThread, self).__init__(daemon=True) + self.loop = asyncio.new_event_loop() + self.logger = Logger() + self.logger.info("looper thread is created") + + def run(self): + asyncio.set_event_loop(self.loop) + self.logger.info("looper thread is running") + self.loop.run_forever() + + +class MiaoshouDownloaderManager(metaclass=MiaoshouSingleton): + _downloading_entries: t.Dict[str, DownloadingEntry] = None + + def __init__(self): + if self._downloading_entries is None: + self._downloading_entries = {} + self.message_queue = queue.Queue() + + self.logger = Logger() + self.looper = AsyncLoopThread() + self.looper.start() + self.logger.info("download manager is ready") + self._mutex = Lock() + + def consume_all_ready_messages(self) -> None: + """ + capture all enqueued messages, this method should not be used if you are iterating over the message queue + :return: + None + :side-effect: + update downloading entries' status + """ + while True: + # self.logger.info("fetching the enqueued message") + try: + (aurl, finished_size, total_size) = self.message_queue.get(block=False, timeout=0.2) + # self.logger.info(f"[+] message ([{finished_size}/{total_size}] {aurl}") + try: + self._mutex.acquire(blocking=True) + self._downloading_entries[aurl].total_size = total_size + self._downloading_entries[aurl].downloaded_size = finished_size + finally: + self._mutex.release() + except queue.Empty: + break + + def iterator(self) -> t.Tuple[float, float]: + + while True: + self.logger.info("waiting for incoming message") + + try: + (aurl, finished_size, total_size) = self.message_queue.get(block=True) + self.logger.info(f"[+] message ([{finished_size}/{total_size}] {aurl}") + try: + self._mutex.acquire(blocking=True) + self._downloading_entries[aurl].total_size = total_size + self._downloading_entries[aurl].downloaded_size = finished_size + + tasks_total_size = 0. + tasks_finished_size = 0. + + for e in self._downloading_entries.values(): + tasks_total_size += e.total_size + tasks_finished_size += e.downloaded_size + + yield tasks_finished_size, tasks_total_size + finally: + self._mutex.release() + except queue.Empty: + if len(asyncio.all_tasks(self.looper.loop)) == 0: + self.logger.info("all downloading tasks finished") + break + + async def _submit_task(self, download_entry: DownloadingEntry) -> None: + try: + self._mutex.acquire(blocking=True) + if download_entry.target_url in self._downloading_entries: + self.logger.warn(f"{download_entry.target_url} is already downloading") + return + else: + download_entry.start_download() + self._downloading_entries[download_entry.target_url] = download_entry + finally: + self._mutex.release() + + file_downloader = MiaoshouFileDownloader( + target_url=download_entry.target_url, + local_file=download_entry.local_file, + local_directory=download_entry.local_directory, + channel=self.message_queue if download_entry.estimated_size else None, + estimated_total_length=download_entry.estimated_size, + expected_checksum=download_entry.expected_checksum, + ) + + result: bool = await self.looper.loop.run_in_executor(None, file_downloader.download_file) + + try: + self._mutex.acquire(blocking=True) + self._downloading_entries[download_entry.target_url].update_final_status(result) + finally: + self._mutex.release() + + def download(self, source_url: str, target_file: str, estimated_total_size: float, + expected_checksum: str = None) -> None: + self.logger.info(f"start to download '{source_url}'") + + target_dir = os.path.dirname(target_file) + target_filename = os.path.basename(target_file) + download_entry = DownloadingEntry( + target_url=source_url, + local_file=target_filename, + local_directory=target_dir, + estimated_total_size=estimated_total_size, + expected_checksum=expected_checksum + ) + + asyncio.run_coroutine_threadsafe(self._submit_task(download_entry), self.looper.loop) + + def tasks_summary(self) -> t.Tuple[int, int, str]: + self.consume_all_ready_messages() + + total_tasks_num = 0 + ongoing_tasks_num = 0 + failed_tasks_num = 0 + + try: + description = "{entry.local_file} ({toolkit.get_readable_size(entry.total_size)}) : " + else: + description += f"
{entry.local_file} ({toolkit.get_readable_size(entry.estimated_size)}) : " + + if entry.is_downloading(): + ongoing_tasks_num += 1 + finished_percent = entry.downloaded_size/entry.estimated_size * 100 + description += f'{round(finished_percent, 2)} %' + elif entry.is_failure(): + failed_tasks_num += 1 + description += 'failed!' + else: + description += 'finished' + description += "
Type: {model.get('type')}
+Rating: {model.get('stats')['rating']}
+No info found
Downloads: {m['stats']['downloadCount']}
" + if m.get('stats') and m.get('stats').get('rating'): + htmlDetail += f"Rating: {m['stats']['rating']}
" + if m.get('creator') and m.get('creator').get('username'): + htmlDetail += f"Author: {m['creator']['username']}
Version: | {latest_version['name']} |
Updated Time: | {latest_version['updatedAt']} |
Type: | {m['type']} |
Base Model: | {latest_version['baseModel']} |
NFSW: | {m.get('nsfw') if m.get('nsfw') is not None else 'false'} |
Tags: | " + for t in m['tags']: + htmlDetail += f' |
Trigger Words: | " + for t in latest_version['trainedWords']: + htmlDetail += f'{t}' + htmlDetail += " |
' + f'Download
') + ) + + def get_my_model_covers(self, model, model_type): + img_list, l1, htmlDetail, h2 = self.get_model_info(model) + if self._ds_my_model_covers is None: + self.logger.error(f"_ds_my_model_covers is not initialized") + return {} + + new_html = '' + if htmlDetail is not None: + new_html = htmlDetail.split('Will upscale the image depending on the selected target size type
") + + with gr.Row(): + target_size_type = gr.Dropdown(label="Target size type", choices=[k for k in target_size_types], type="index", + value=next(iter(target_size_types))) + + custom_width = gr.Slider(label='Custom width', minimum=64, maximum=8192, step=64, value=2048, visible=False, interactive=True) + custom_height = gr.Slider(label='Custom height', minimum=64, maximum=8192, step=64, value=2048, visible=False, interactive=True) + custom_scale = gr.Slider(label='Scale', minimum=1, maximum=16, step=0.01, value=2, visible=False, interactive=True) + + gr.HTML("Redraw options:
") + with gr.Row(): + upscaler_index = gr.Radio(label='Upscaler', choices=[x.name for x in shared.sd_upscalers], + value=shared.sd_upscalers[0].name, type="index") + with gr.Row(): + redraw_mode = gr.Dropdown(label="Type", choices=[k for k in redrow_modes], type="index", value=next(iter(redrow_modes))) + tile_width = gr.Slider(minimum=0, maximum=2048, step=64, label='Tile width', value=512) + tile_height = gr.Slider(minimum=0, maximum=2048, step=64, label='Tile height', value=0) + mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=8) + padding = gr.Slider(label='Padding', minimum=0, maximum=512, step=1, value=32) + gr.HTML("Seams fix:
") + with gr.Row(): + seams_fix_type = gr.Dropdown(label="Type", choices=[k for k in seams_fix_types], type="index", value=next(iter(seams_fix_types))) + seams_fix_denoise = gr.Slider(label='Denoise', minimum=0, maximum=1, step=0.01, value=0.35, visible=False, interactive=True) + seams_fix_width = gr.Slider(label='Width', minimum=0, maximum=128, step=1, value=64, visible=False, interactive=True) + seams_fix_mask_blur = gr.Slider(label='Mask blur', minimum=0, maximum=64, step=1, value=4, visible=False, interactive=True) + seams_fix_padding = gr.Slider(label='Padding', minimum=0, maximum=128, step=1, value=16, visible=False, interactive=True) + gr.HTML("Save options:
") + with gr.Row(): + save_upscaled_image = gr.Checkbox(label="Upscaled", value=True) + save_seams_fix_image = gr.Checkbox(label="Seams fix", value=False) + + def select_fix_type(fix_index): + all_visible = fix_index != 0 + mask_blur_visible = fix_index == 2 or fix_index == 3 + width_visible = fix_index == 1 + + return [gr.update(visible=all_visible), + gr.update(visible=width_visible), + gr.update(visible=mask_blur_visible), + gr.update(visible=all_visible)] + + seams_fix_type.change( + fn=select_fix_type, + inputs=seams_fix_type, + outputs=[seams_fix_denoise, seams_fix_width, seams_fix_mask_blur, seams_fix_padding] + ) + + def select_scale_type(scale_index): + is_custom_size = scale_index == 1 + is_custom_scale = scale_index == 2 + + return [gr.update(visible=is_custom_size), + gr.update(visible=is_custom_size), + gr.update(visible=is_custom_scale), + ] + + target_size_type.change( + fn=select_scale_type, + inputs=target_size_type, + outputs=[custom_width, custom_height, custom_scale] + ) + + return [info, tile_width, tile_height, mask_blur, padding, seams_fix_width, seams_fix_denoise, seams_fix_padding, + upscaler_index, save_upscaled_image, redraw_mode, save_seams_fix_image, seams_fix_mask_blur, + seams_fix_type, target_size_type, custom_width, custom_height, custom_scale] + + def run(self, p, _, tile_width, tile_height, mask_blur, padding, seams_fix_width, seams_fix_denoise, seams_fix_padding, + upscaler_index, save_upscaled_image, redraw_mode, save_seams_fix_image, seams_fix_mask_blur, + seams_fix_type, target_size_type, custom_width, custom_height, custom_scale): + + # Init + processing.fix_seed(p) + devices.torch_gc() + + p.do_not_save_grid = True + p.do_not_save_samples = True + p.inpaint_full_res = False + + p.inpainting_fill = 1 + p.n_iter = 1 + p.batch_size = 1 + + seed = p.seed + + # Init image + init_img = p.init_images[0] + if init_img == None: + return Processed(p, [], seed, "Empty image") + init_img = images.flatten(init_img, opts.img2img_background_color) + + #override size + if target_size_type == 1: + p.width = custom_width + p.height = custom_height + if target_size_type == 2: + p.width = math.ceil((init_img.width * custom_scale) / 64) * 64 + p.height = math.ceil((init_img.height * custom_scale) / 64) * 64 + + # Upscaling + upscaler = USDUpscaler(p, init_img, upscaler_index, save_upscaled_image, save_seams_fix_image, tile_width, tile_height) + upscaler.upscale() + + # Drawing + upscaler.setup_redraw(redraw_mode, padding, mask_blur) + upscaler.setup_seams_fix(seams_fix_padding, seams_fix_denoise, seams_fix_mask_blur, seams_fix_width, seams_fix_type) + upscaler.print_info() + upscaler.add_extra_info() + upscaler.process() + result_images = upscaler.result_images + + return Processed(p, result_images, seed, upscaler.initial_info if upscaler.initial_info is not None else "") +