Merge branch 'master' into master
This commit is contained in:
commit
af6fba2475
|
@ -3,8 +3,21 @@ global_progressbars = {}
|
|||
galleries = {}
|
||||
galleryObservers = {}
|
||||
|
||||
// this tracks laumnches of window.setTimeout for progressbar to prevent starting a new timeout when the previous is still running
|
||||
timeoutIds = {}
|
||||
|
||||
function check_progressbar(id_part, id_progressbar, id_progressbar_span, id_skip, id_interrupt, id_preview, id_gallery){
|
||||
var progressbar = gradioApp().getElementById(id_progressbar)
|
||||
// gradio 3.8's enlightened approach allows them to create two nested div elements inside each other with same id
|
||||
// every time you use gr.HTML(elem_id='xxx'), so we handle this here
|
||||
var progressbar = gradioApp().querySelector("#"+id_progressbar+" #"+id_progressbar)
|
||||
var progressbarParent
|
||||
if(progressbar){
|
||||
progressbarParent = gradioApp().querySelector("#"+id_progressbar)
|
||||
} else{
|
||||
progressbar = gradioApp().getElementById(id_progressbar)
|
||||
progressbarParent = null
|
||||
}
|
||||
|
||||
var skip = id_skip ? gradioApp().getElementById(id_skip) : null
|
||||
var interrupt = gradioApp().getElementById(id_interrupt)
|
||||
|
||||
|
@ -26,18 +39,26 @@ function check_progressbar(id_part, id_progressbar, id_progressbar_span, id_skip
|
|||
global_progressbars[id_progressbar] = progressbar
|
||||
|
||||
var mutationObserver = new MutationObserver(function(m){
|
||||
if(timeoutIds[id_part]) return;
|
||||
|
||||
preview = gradioApp().getElementById(id_preview)
|
||||
gallery = gradioApp().getElementById(id_gallery)
|
||||
|
||||
if(preview != null && gallery != null){
|
||||
preview.style.width = gallery.clientWidth + "px"
|
||||
preview.style.height = gallery.clientHeight + "px"
|
||||
if(progressbarParent) progressbar.style.width = progressbarParent.clientWidth + "px"
|
||||
|
||||
//only watch gallery if there is a generation process going on
|
||||
check_gallery(id_gallery);
|
||||
|
||||
var progressDiv = gradioApp().querySelectorAll('#' + id_progressbar_span).length > 0;
|
||||
if(!progressDiv){
|
||||
if(progressDiv){
|
||||
timeoutIds[id_part] = window.setTimeout(function() {
|
||||
timeoutIds[id_part] = null
|
||||
requestMoreProgress(id_part, id_progressbar_span, id_skip, id_interrupt)
|
||||
}, 500)
|
||||
} else{
|
||||
if (skip) {
|
||||
skip.style.display = "none"
|
||||
}
|
||||
|
@ -47,13 +68,10 @@ function check_progressbar(id_part, id_progressbar, id_progressbar_span, id_skip
|
|||
if (galleryObservers[id_gallery]) {
|
||||
galleryObservers[id_gallery].disconnect();
|
||||
galleries[id_gallery] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
window.setTimeout(function() { requestMoreProgress(id_part, id_progressbar_span, id_skip, id_interrupt) }, 500)
|
||||
});
|
||||
mutationObserver.observe( progressbar, { childList:true, subtree:true })
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
"None": "Nichts",
|
||||
"Prompt matrix": "Promptmatrix",
|
||||
"Prompts from file or textbox": "Prompts aus Datei oder Textfeld",
|
||||
"X/Y plot": "X/Y Graf",
|
||||
"X/Y plot": "X/Y Graph",
|
||||
"Put variable parts at start of prompt": "Variable teile am start des Prompt setzen",
|
||||
"Iterate seed every line": "Iterate seed every line",
|
||||
"List of prompt inputs": "List of prompt inputs",
|
||||
|
@ -455,4 +455,4 @@
|
|||
"Only applies to inpainting models. Determines how strongly to mask off the original image for inpainting and img2img. 1.0 means fully masked, which is the default behaviour. 0.0 means a fully unmasked conditioning. Lower values will help preserve the overall composition of the image, but will struggle with large changes.": "Gilt nur für Inpainting-Modelle. Legt fest, wie stark das Originalbild für Inpainting und img2img maskiert werden soll. 1.0 bedeutet vollständig maskiert, was das Standardverhalten ist. 0.0 bedeutet eine vollständig unmaskierte Konditionierung. Niedrigere Werte tragen dazu bei, die Gesamtkomposition des Bildes zu erhalten, sind aber bei großen Änderungen problematisch.",
|
||||
"List of setting names, separated by commas, for settings that should go to the quick access bar at the top, rather than the usual setting tab. See modules/shared.py for setting names. Requires restarting to apply.": "Liste von Einstellungsnamen, getrennt durch Kommas, für Einstellungen, die in der Schnellzugriffsleiste oben erscheinen sollen, anstatt in dem üblichen Einstellungs-Tab. Siehe modules/shared.py für Einstellungsnamen. Erfordert einen Neustart zur Anwendung.",
|
||||
"If this values is non-zero, it will be added to seed and used to initialize RNG for noises when using samplers with Eta. You can use this to produce even more variation of images, or you can use this to match images of other software if you know what you are doing.": "Wenn dieser Wert ungleich Null ist, wird er zum Seed addiert und zur Initialisierung des RNG für Noise bei der Verwendung von Samplern mit Eta verwendet. Dies kann verwendet werden, um noch mehr Variationen von Bildern zu erzeugen, oder um Bilder von anderer Software zu erzeugen, wenn Sie wissen, was Sie tun."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,6 @@
|
|||
"Animator v6": "Animator v6",
|
||||
"Asymmetric tiling": "Piastrellatura asimmetrica",
|
||||
"Custom code": "Codice personalizzato",
|
||||
"Dynamic Prompting v0.2": "Prompt dinamici v0.2",
|
||||
"Embedding to Shareable PNG": "Incorporamento convertito in PNG condivisibile",
|
||||
"Force symmetry": "Forza la simmetria",
|
||||
"Prompts interpolation": "Interpola Prompt",
|
||||
|
@ -107,6 +106,7 @@
|
|||
"Text to Vector Graphics": "Da testo a grafica vettoriale",
|
||||
"X/Y plot": "Grafico X/Y",
|
||||
"X/Y/Z plot": "Grafico X/Y/Z",
|
||||
"Dynamic Prompting v0.13.6": "Prompt dinamici v0.13.6",
|
||||
"Create inspiration images": "Crea immagini di ispirazione",
|
||||
"step1 min/max": "Passi min(o max)",
|
||||
"step2 min/max": "Passi max (o min)",
|
||||
|
@ -195,7 +195,7 @@
|
|||
"Beta distribution (VP only)": "Distribuzione Beta (Solo CV)",
|
||||
"Beta min (VP only)": "Beta min (Solo CV)",
|
||||
"Epsilon (VP only)": "Epsilon (Solo CV)",
|
||||
"Running in txt2img mode:": "Running in txt2img mode:",
|
||||
"Running in txt2img mode:": "Esecuzione in modalità txt2img:",
|
||||
"Render these video formats:": "Renderizza in questi formati:",
|
||||
"GIF": "GIF",
|
||||
"MP4": "MP4",
|
||||
|
@ -203,11 +203,11 @@
|
|||
"Animation Parameters": "Parametri animazione",
|
||||
"Total Animation Length (s)": "Durata totale dell'animazione (s)",
|
||||
"Framerate": "Frequenza dei fotogrammi",
|
||||
"Smoothing_Frames": "Smoothing_Frames",
|
||||
"Smoothing_Frames": "Fotogrammi da appianare",
|
||||
"Add_Noise": "Aggiungi rumore",
|
||||
"Noise Strength": "Intensità del rumore",
|
||||
"Initial Parameters": "Parametri iniziali",
|
||||
"Denoising Strength (overrides img2img slider)": "Intensità di riduzione del rumore (sovrascrive il cursore img2img)",
|
||||
"Denoising Strength": "Intensità di riduzione del rumore",
|
||||
"Seed_March": "Seed_March",
|
||||
"Zoom Factor (scale/s)": "Fattore di ingrandimento (scala/s)",
|
||||
"X Pixel Shift (pixels/s)": "Sposta i Pixel sull'asse X (pixel/s)",
|
||||
|
@ -216,8 +216,8 @@
|
|||
"Prompt Template, applied to each keyframe below": "Modello di prompt, applicato a ciascun fotogramma chiave qui di seguito",
|
||||
"Positive Prompts": "Prompt positivi",
|
||||
"Negative Prompts": "Prompt negativi",
|
||||
"Props, Stamps": "Props, Stamps",
|
||||
"Poper_Folder:": "Cartella Poper:",
|
||||
"Props, Stamps": "Immagini Clipart da diffondere (prop), o da applicare in post elaborazione e non essere diffuse (stamp).",
|
||||
"Poper_Folder:": "Cartella Immagini Clipart (PNG trasparenti):",
|
||||
"Supported Keyframes:": "Fotogrammi chiave supportati:",
|
||||
"time_s | source | video, images, img2img | path": "time_s | source | video, images, img2img | path",
|
||||
"time_s | prompt | positive_prompts | negative_prompts": "time_s | prompt | positive_prompts | negative_prompts",
|
||||
|
@ -234,26 +234,11 @@
|
|||
"time_s | col_set": "time_s | col_set",
|
||||
"time_s | col_clear": "time_s | col_clear",
|
||||
"time_s | model | model": "time_s | model | model",
|
||||
"img2img_mode": "img2img_mode",
|
||||
"img2img_mode": "Modalità img2img",
|
||||
"Keyframes:": "Fotogrammi chiave:",
|
||||
"Tile X": "Piastrella asse X",
|
||||
"Tile Y": "Piastrella asse Y",
|
||||
"Python code": "Codice Python",
|
||||
"Combinatorial generation": "Generazione combinatoria",
|
||||
"Combinations": "Combinazioni",
|
||||
"Choose a number of terms from a list, in this case we choose two artists": "Scegli un numero di termini da un elenco, in questo caso scegliamo due artisti",
|
||||
"{2$$artist1|artist2|artist3}": "{2$$artist1|artist2|artist3}",
|
||||
"If $$ is not provided, then 1$$ is assumed.\n\n A range can be provided:": "Se $$ non viene fornito, si presume 1$$.\n\n È possibile fornire un intervallo di valori:",
|
||||
"{1-3$$artist1|artist2|artist3}": "{1-3$$artist1|artist2|artist3}",
|
||||
"In this case, a random number of artists between 1 and 3 is chosen.": "In questo caso viene scelto un numero casuale di artisti compreso tra 1 e 3.",
|
||||
"Wildcards": "Termini jolly",
|
||||
"If the groups wont drop down click": "Se i gruppi non vengono visualizzati, clicca",
|
||||
"here": "qui",
|
||||
"to fix the issue.": "per correggere il problema.",
|
||||
"WILDCARD_DIR: scripts/wildcards": "WILDCARD_DIR: scripts/wildcards",
|
||||
"You can add more wildcards by creating a text file with one term per line and name is mywildcards.txt. Place it in scripts/wildcards.": "Puoi aggiungere termini jolly creando un file di testo con un termine per riga e nominandolo, per esempio, mywildcards.txt. Inseriscilo in scripts/wildcards.",
|
||||
"__<folder>/mywildcards__": "__<folder>/mywildcards__",
|
||||
"will then become available.": "diverrà quindi disponibile.",
|
||||
"Source embedding to convert": "Incorporamento sorgente da convertire",
|
||||
"Embedding token": "Token Incorporamento",
|
||||
"Output directory": "Cartella di output",
|
||||
|
@ -324,12 +309,30 @@
|
|||
"Eta": "ETA",
|
||||
"Clip skip": "Salta CLIP",
|
||||
"Denoising": "Riduzione del rumore",
|
||||
"Cond. Image Mask Weight": "Cond. Image Mask Weight",
|
||||
"Cond. Image Mask Weight": "Peso maschera immagine condizionale",
|
||||
"X values": "Valori per X",
|
||||
"Y type": "Parametro asse Y",
|
||||
"Y values": "Valori per Y",
|
||||
"Z type": "Parametro asse Z",
|
||||
"Z values": "Valori per Z",
|
||||
"Combinatorial generation": "Generazione combinatoria",
|
||||
"Combinatorial batches": "Lotti combinatori",
|
||||
"Magic prompt": "Prompt magico",
|
||||
"Fixed seed": "Seme fisso",
|
||||
"Combinations": "Combinazioni",
|
||||
"Choose a number of terms from a list, in this case we choose two artists": "Scegli un numero di termini da un elenco, in questo caso scegliamo due artisti",
|
||||
"{{2$artist1|artist2|artist3}}": "{{2$artist1|artist2|artist3}}",
|
||||
"If $ is not provided, then 1$ is assumed.\n\n A range can be provided:": "Se $ non viene fornito, si presume 1$.\n\n È possibile fornire un intervallo di valori:",
|
||||
"{{1-3$artist1|artist2|artist3}}": "{{1-3$artist1|artist2|artist3}}",
|
||||
"In this case, a random number of artists between 1 and 3 is chosen.": "In questo caso viene scelto un numero casuale di artisti compreso tra 1 e 3.",
|
||||
"Wildcards": "Termini jolly",
|
||||
"If the groups wont drop down click": "Se i gruppi non vengono visualizzati, clicca",
|
||||
"here": "qui",
|
||||
"to fix the issue.": "per correggere il problema.",
|
||||
"WILDCARD_DIR: C:\\stable-diffusion-webui\\extensions\\sd-dynamic-prompts\\wildcards": "WILDCARD_DIR: C:\\stable-diffusion-webui\\extensions\\sd-dynamic-prompts\\wildcards",
|
||||
"You can add more wildcards by creating a text file with one term per line and name is mywildcards.txt. Place it in scripts/wildcards.": "Puoi aggiungere termini jolly creando un file di testo con un termine per riga e nominandolo, per esempio, mywildcards.txt. Inseriscilo in scripts/wildcards.",
|
||||
"__<folder>/mywildcards__": "__<cartella>/mywildcards__",
|
||||
"will then become available.": "diverrà quindi disponibile.",
|
||||
"Artist or styles name list. '.txt' files with one name per line": "Elenco nomi di artisti o stili. File '.txt' con un nome per riga",
|
||||
"Prompt words before artist or style name": "Parole chiave prima del nome dell'artista o dello stile",
|
||||
"Prompt words after artist or style name": "Parole chiave dopo il nome dell'artista o dello stile",
|
||||
|
@ -439,7 +442,7 @@
|
|||
"Reuse seed": "Riusa il seme",
|
||||
"CFG decay factor": "Fattore di decadimento CFG",
|
||||
"CFG target": "CFG di destinazione",
|
||||
"Show/Hide Canvas": "Mostra/Nascondi Tela",
|
||||
"Show/Hide AlphaCanvas": "Mostra/Nascondi AlphaCanvas",
|
||||
"Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8": "Impostazioni consigliate: Passi di campionamento: 80-100, Campionatore: Euler a, Intensità denoising: 0.8",
|
||||
"Pixels to expand": "Pixel da espandere",
|
||||
"Outpainting direction": "Direzione di Outpainting",
|
||||
|
@ -535,7 +538,7 @@
|
|||
"Modules": "Moduli",
|
||||
"Enter hypernetwork layer structure": "Immettere la struttura del livello della Iperrete",
|
||||
"Select activation function of hypernetwork": "Selezionare la funzione di attivazione della Iperrete",
|
||||
"linear": "linear",
|
||||
"linear": "lineare",
|
||||
"relu": "relu",
|
||||
"leakyrelu": "leakyrelu",
|
||||
"elu": "elu",
|
||||
|
@ -563,9 +566,9 @@
|
|||
"softshrink": "softshrink",
|
||||
"softsign": "softsign",
|
||||
"tanhshrink": "tanhshrink",
|
||||
"threshold": "threshold",
|
||||
"threshold": "soglia",
|
||||
"Select Layer weights initialization. relu-like - Kaiming, sigmoid-like - Xavier is recommended": "Seleziona inizializzazione dei pesi dei livelli. relu-like - Kaiming, Si consiglia sigmoid-like - Xavier",
|
||||
"Normal": "Normal",
|
||||
"Normal": "Normale",
|
||||
"KaimingUniform": "KaimingUniform",
|
||||
"KaimingNormal": "KaimingNormal",
|
||||
"XavierUniform": "XavierUniform",
|
||||
|
@ -764,8 +767,8 @@
|
|||
"animation_prompts": "Prompt animazione",
|
||||
"Init settings": "Impostazioni iniziali",
|
||||
"use_init": "Usa le impostazioni iniziali",
|
||||
"from_img2img_instead_of_link": "from_img2img_instead_of_link",
|
||||
"strength_0_no_init": "strength_0_no_init",
|
||||
"from_img2img_instead_of_link": "da img2img invece che da link",
|
||||
"strength_0_no_init": "Intensità 0 nessuna inizializzazione",
|
||||
"strength": "Intensità",
|
||||
"init_image": "Immagine di inizializzazione",
|
||||
"use_mask": "Usa maschera",
|
||||
|
@ -791,8 +794,8 @@
|
|||
"skip_video_for_run_all": "Salta il video per eseguire tutto",
|
||||
"fps": "FPS",
|
||||
"output_format": "Formato di uscita",
|
||||
"PIL gif": "PIL gif",
|
||||
"FFMPEG mp4": "FFMPEG mp4",
|
||||
"PIL gif": "PIL GIF",
|
||||
"FFMPEG mp4": "FFMPEG MP4",
|
||||
"ffmpeg_location": "Percorso ffmpeg",
|
||||
"add_soundtrack": "Aggiungi colonna sonora",
|
||||
"soundtrack_path": "Percorso colonna sonora",
|
||||
|
@ -916,7 +919,7 @@
|
|||
"Generate Info": "Genera Info",
|
||||
"File Name": "Nome del file",
|
||||
"Move to favorites": "Aggiungi ai preferiti",
|
||||
"Renew page": "Aggiorna la pagina",
|
||||
"Renew Page": "Aggiorna la pagina",
|
||||
"Number": "Numero",
|
||||
"set_index": "Imposta indice",
|
||||
"load_switch": "load_switch",
|
||||
|
@ -990,8 +993,8 @@
|
|||
"Add a second progress bar to the console that shows progress for an entire job.": "Aggiungi una seconda barra di avanzamento alla console che mostra l'avanzamento complessivo del lavoro.",
|
||||
"Training": "Addestramento",
|
||||
"Move VAE and CLIP to RAM when training hypernetwork. Saves VRAM.": "Sposta VAE e CLIP nella RAM durante l'addestramento di Iperreti. Risparmia VRAM.",
|
||||
"Filename word regex": "Filename word regex",
|
||||
"Filename join string": "Filename join string",
|
||||
"Filename word regex": "Espressione regolare per estrarre parole dal nome del file",
|
||||
"Filename join string": "Stringa per unire le parole estratte dal nome del file",
|
||||
"Number of repeats for a single input image per epoch; used only for displaying epoch number": "Numero di ripetizioni per una singola immagine di input per epoca; utilizzato solo per visualizzare il numero di epoca",
|
||||
"Save an csv containing the loss to log directory every N steps, 0 to disable": "Salva un file CSV contenente la perdita nella cartella di registrazione ogni N passaggi, 0 per disabilitare",
|
||||
"Stable Diffusion": "Stable Diffusion",
|
||||
|
@ -1059,11 +1062,17 @@
|
|||
"sigma tmin": "sigma tmin",
|
||||
"sigma noise": "sigma noise",
|
||||
"Eta noise seed delta": "ETA del delta del seme del rumore",
|
||||
"Number of columns on image gallery": "Numero di colonne nella galleria di immagini",
|
||||
"Aesthetic Image Scorer": "Punteggio delle immagini estetiche",
|
||||
"Save score as EXIF or PNG Info Chunk": "Salva il punteggio come info EXIF o PNG",
|
||||
"Save score as tag (Windows Only)": "Salva punteggio come etichetta (solo Windows)",
|
||||
"aesthetic_score": "Punteggio estetico",
|
||||
"cfg_scale": "Scala CFG",
|
||||
"sd_model_hash": "Hash del modello SD",
|
||||
"hash": "Hash",
|
||||
"Save tags (Windows only)": "Salva etichette (solo Windows)",
|
||||
"Save category (Windows only)": "Salva categoria (solo Windows)",
|
||||
"Save generation params text": "Salva testo parametri di generazione",
|
||||
"Force CPU (Requires Custom Script Reload)": "Forza CPU (richiede il ricaricamento dello script personalizzato)",
|
||||
"Number of columns on image gallery": "Numero di colonne nella galleria di immagini",
|
||||
"Images Browser": "Galleria immagini",
|
||||
"Preload images at startup": "Precarica le immagini all'avvio",
|
||||
"Number of columns on the page": "Numero di colonne nella pagina",
|
||||
|
@ -1076,6 +1085,7 @@
|
|||
"Reload custom script bodies (No ui updates, No restart)": "Ricarica gli script personalizzati (nessun aggiornamento dell'interfaccia utente, nessun riavvio)",
|
||||
"Restart Gradio and Refresh components (Custom Scripts, ui.py, js and css only)": "Riavvia Gradio e aggiorna i componenti (solo script personalizzati, ui.py, js e css)",
|
||||
"Installed": "Installato",
|
||||
"Available": "Disponibile",
|
||||
"Install from URL": "Installa da URL",
|
||||
"Apply and restart UI": "Applica e riavvia l'interfaccia utente",
|
||||
"Check for updates": "Controlla aggiornamenti",
|
||||
|
@ -1085,12 +1095,14 @@
|
|||
"aesthetic-gradients": "Gradienti Estetici (CLIP)",
|
||||
"https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients": "https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients",
|
||||
"unknown": "sconosciuto",
|
||||
"aesthetic-image-scorer": "Punteggio delle immagini estetiche",
|
||||
"https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer": "https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer",
|
||||
"dataset-tag-editor": "Dataset Tag Editor",
|
||||
"https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor.git": "https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor.git",
|
||||
"deforum": "Deforum",
|
||||
"https://github.com/deforum-art/deforum-for-automatic1111-webui/": "https://github.com/deforum-art/deforum-for-automatic1111-webui/",
|
||||
"deforum-for-automatic1111-webui": "Deforum",
|
||||
"https://github.com/deforum-art/deforum-for-automatic1111-webui": "https://github.com/deforum-art/deforum-for-automatic1111-webui",
|
||||
"sd-dynamic-prompts": "Prompt dinamici",
|
||||
"https://github.com/adieyal/sd-dynamic-prompts": "https://github.com/adieyal/sd-dynamic-prompts",
|
||||
"stable-diffusion-webui-aesthetic-image-scorer": "Punteggio immagini estetiche",
|
||||
"https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer": "https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer",
|
||||
"stable-diffusion-webui-artists-to-study": "Artisti per studiare",
|
||||
"https://github.com/camenduru/stable-diffusion-webui-artists-to-study": "https://github.com/camenduru/stable-diffusion-webui-artists-to-study",
|
||||
"stable-diffusion-webui-images-browser": "Galleria immagini",
|
||||
|
@ -1101,6 +1113,8 @@
|
|||
"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git": "https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git",
|
||||
"wildcards": "Termini Jolly",
|
||||
"https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards.git": "https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards.git",
|
||||
"Load from:": "Carica da:",
|
||||
"Extension index URL": "URL dell'indice delle Estensioni",
|
||||
"URL for extension's git repository": "URL del repository GIT dell'estensione",
|
||||
"Local directory name": "Nome cartella locale",
|
||||
"Install": "Installa",
|
||||
|
@ -1169,5 +1183,35 @@
|
|||
"Only applies to inpainting models. Determines how strongly to mask off the original image for inpainting and img2img. 1.0 means fully masked, which is the default behaviour. 0.0 means a fully unmasked conditioning. Lower values will help preserve the overall composition of the image, but will struggle with large changes.": "Si applica solo ai modelli di pittura. Determina con quale forza mascherare l'immagine originale per inpainting e img2img. 1.0 significa completamente mascherato, che è il comportamento predefinito. 0.0 significa un condizionamento completamente non mascherato. Valori più bassi aiuteranno a preservare la composizione generale dell'immagine, ma avranno difficoltà con grandi cambiamenti.",
|
||||
"List of setting names, separated by commas, for settings that should go to the quick access bar at the top, rather than the usual setting tab. See modules/shared.py for setting names. Requires restarting to apply.": "Elenco dei nomi delle impostazioni, separati da virgole, per le impostazioni che dovrebbero essere visualizzate nella barra di accesso rapido in alto, anziché nella normale scheda delle impostazioni. Vedi modules/shared.py per impostare i nomi. Richiede il riavvio per applicare.",
|
||||
"If this values is non-zero, it will be added to seed and used to initialize RNG for noises when using samplers with Eta. You can use this to produce even more variation of images, or you can use this to match images of other software if you know what you are doing.": "Se questo valore è diverso da zero, verrà aggiunto al seed e utilizzato per inizializzare il generatore di numeri casuali per il rumore quando si utilizzano campionatori con ETA. Puoi usarlo per produrre ancora più variazioni di immagini, oppure puoi usarlo per abbinare le immagini di altri software se sai cosa stai facendo.",
|
||||
"Leave empty for auto": "Lasciare vuoto per automatico"
|
||||
"Leave empty for auto": "Lasciare vuoto per automatico",
|
||||
"Autocomplete options": "Opzioni di autocompletamento",
|
||||
"Enable Autocomplete": "Abilita autocompletamento",
|
||||
"Append commas": "Aggiungi virgole",
|
||||
"AlphaCanvas": "AlphaCanvas",
|
||||
"Close": "Chiudi",
|
||||
"Grab Results": "Ottieni risultati",
|
||||
"Apply Patch": "Applica Patch",
|
||||
"Hue:0": "Hue:0",
|
||||
"S:0": "S:0",
|
||||
"L:0": "L:0",
|
||||
"Load Canvas": "Carica Tela",
|
||||
"saveCanvas": "Salva Tela",
|
||||
"latest": "aggiornato",
|
||||
"behind": "da aggiornare",
|
||||
"Description": "Descrizione",
|
||||
"Action": "Azione",
|
||||
"Aesthetic Gradients": "Gradienti estetici",
|
||||
"Create an embedding from one or few pictures and use it to apply their style to generated images.": "Crea un incorporamento da una o poche immagini e usalo per applicare il loro stile alle immagini generate.",
|
||||
"Sample extension. Allows you to use __name__ syntax in your prompt to get a random line from a file named name.txt in the wildcards directory. Also see Dynamic Prompts for similar functionality.": "Estensione del campione. Consente di utilizzare la sintassi __name__ nel prompt per ottenere una riga casuale da un file denominato name.txt nella cartella dei termini jolly. Vedi anche 'Prompt dinamici' per funzionalità simili.",
|
||||
"Dynamic Prompts": "Prompt dinamici",
|
||||
"Implements an expressive template language for random or combinatorial prompt generation along with features to support deep wildcard directory structures.": "Implementa un modello di linguaggio espressivo per la generazione di prompt casuale o combinatoria insieme a funzionalità per supportare cartelle strutturate contenenti termini jolly.",
|
||||
"Image browser": "Galleria immagini",
|
||||
"Provides an interface to browse created images in the web browser.": "Fornisce un'interfaccia nel browser web per sfogliare le immagini create.",
|
||||
"Randomly display the pictures of the artist's or artistic genres typical style, more pictures of this artist or genre is displayed after selecting. So you don't have to worry about how hard it is to choose the right style of art when you create.": "Visualizza in modo casuale le immagini dello stile tipico dell'artista o dei generi artistici, dopo la selezione vengono visualizzate più immagini di questo artista o genere. Così non dovete preoccuparvi della difficoltà di scegliere lo stile artistico giusto quando create.",
|
||||
"The official port of Deforum, an extensive script for 2D and 3D animations, supporting keyframable sequences, dynamic math parameters (even inside the prompts), dynamic masking, depth estimation and warping.": "Il porting ufficiale di Deforum, uno script completo per animazioni 2D e 3D, che supporta sequenze di fotogrammi chiave, parametri matematici dinamici (anche all'interno dei prompt), mascheramento dinamico, stima della profondità e warping.",
|
||||
"Artists to study": "Artisti per studiare",
|
||||
"Shows a gallery of generated pictures by artists separated into categories.": "Mostra una galleria di immagini generate dagli artisti suddivise in categorie.",
|
||||
"Calculates aesthetic score for generated images using CLIP+MLP Aesthetic Score Predictor based on Chad Scorer": "Calcola il punteggio estetico per le immagini generate utilizzando il predittore del punteggio estetico CLIP+MLP basato su Chad Scorer",
|
||||
"Lets you edit captions in training datasets.": "Consente di modificare i sottotitoli nei set di dati di addestramento.",
|
||||
"Time taken:": "Tempo impiegato:"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"A directory on the same machine where the server is running.": "WebUI 서버가 돌아가고 있는 디바이스에 존재하는 디렉토리를 선택해 주세요.",
|
||||
"A merger of the two checkpoints will be generated in your": "체크포인트들이 병합된 결과물이 당신의",
|
||||
"A value that determines the output of random number generator - if you create an image with same parameters and seed as another image, you'll get the same result": "난수 생성기의 결과물을 지정하는 값 - 동일한 설정값과 동일한 시드를 적용 시, 완전히 똑같은 결과물을 얻게 됩니다.",
|
||||
"Action": "작업",
|
||||
"Add a random artist to the prompt.": "프롬프트에 랜덤한 작가 추가",
|
||||
"Add a second progress bar to the console that shows progress for an entire job.": "콘솔에 전체 작업의 진행도를 보여주는 2번째 프로그레스 바 추가하기",
|
||||
"Add difference": "차이점 추가",
|
||||
|
@ -23,6 +24,8 @@
|
|||
"Add model hash to generation information": "생성 정보에 모델 해시 추가",
|
||||
"Add model name to generation information": "생성 정보에 모델 이름 추가",
|
||||
"Add number to filename when saving": "이미지를 저장할 때 파일명에 숫자 추가하기",
|
||||
"Aesthetic Gradients": "스타일 그라디언트",
|
||||
"Aesthetic Image Scorer": "스타일 이미지 스코어러",
|
||||
"Aesthetic imgs embedding": "스타일 이미지 임베딩",
|
||||
"Aesthetic learning rate": "스타일 학습 수",
|
||||
"Aesthetic steps": "스타일 스텝 수",
|
||||
|
@ -39,8 +42,10 @@
|
|||
"Apply color correction to img2img results to match original colors.": "이미지→이미지 결과물이 기존 색상과 일치하도록 색상 보정 적용하기",
|
||||
"Apply selected styles to current prompt": "현재 프롬프트에 선택된 스타일 적용",
|
||||
"Apply settings": "설정 적용하기",
|
||||
"Artists to study": "연구할만한 작가들",
|
||||
"Auto focal point crop": "초점 기준 크롭(자동 감지)",
|
||||
"Autocomplete options": "자동완성 설정",
|
||||
"Available": "지원되는 확장기능 목록",
|
||||
"Batch count": "배치 수",
|
||||
"Batch from Directory": "저장 경로로부터 여러장 처리",
|
||||
"Batch img2img": "이미지→이미지 배치",
|
||||
|
@ -49,6 +54,7 @@
|
|||
"behind": "최신 아님",
|
||||
"BSRGAN 4x": "BSRGAN 4x",
|
||||
"built with gradio": "gradio로 제작되었습니다",
|
||||
"Calculates aesthetic score for generated images using CLIP+MLP Aesthetic Score Predictor based on Chad Scorer": "Chad 스코어러를 기반으로 한 CLIP+MLP 스타일 점수 예측기를 이용해 생성된 이미지의 스타일 점수를 계산합니다.",
|
||||
"Cancel generate forever": "반복 생성 취소",
|
||||
"cfg cnt": "CFG 변화 횟수",
|
||||
"cfg count": "CFG 변화 횟수",
|
||||
|
@ -78,6 +84,7 @@
|
|||
"Create a grid where images will have different parameters. Use inputs below to specify which parameters will be shared by columns and rows": "서로 다른 설정값으로 생성된 이미지의 그리드를 만듭니다. 아래의 설정으로 가로/세로에 어떤 설정값을 적용할지 선택하세요.",
|
||||
"Create a text file next to every image with generation parameters.": "생성된 이미지마다 생성 설정값을 담은 텍스트 파일 생성하기",
|
||||
"Create aesthetic images embedding": "스타일 이미지 임베딩 생성하기",
|
||||
"Create an embedding from one or few pictures and use it to apply their style to generated images.": "하나 혹은 그 이상의 이미지들로부터 임베딩을 생성해, 그 이미지들의 스타일을 다른 이미지 생성 시 적용할 수 있게 해줍니다.",
|
||||
"Create debug image": "디버그 이미지 생성",
|
||||
"Create embedding": "임베딩 생성",
|
||||
"Create flipped copies": "좌우로 뒤집은 복사본 생성",
|
||||
|
@ -88,6 +95,7 @@
|
|||
"custom fold": "커스텀 경로",
|
||||
"Custom Name (Optional)": "병합 모델 이름 (선택사항)",
|
||||
"Dataset directory": "데이터셋 경로",
|
||||
"Dataset Tag Editor": "데이터셋 태그 편집기",
|
||||
"date": "생성 일자",
|
||||
"DDIM": "DDIM",
|
||||
"Decode CFG scale": "디코딩 CFG 스케일",
|
||||
|
@ -98,6 +106,7 @@
|
|||
"Denoising Diffusion Implicit Models - best at inpainting": "Denoising Diffusion Implicit Models - 인페이팅에 뛰어남",
|
||||
"Denoising strength": "디노이즈 강도",
|
||||
"Denoising strength change factor": "디노이즈 강도 변경 배수",
|
||||
"Description": "설명",
|
||||
"Destination directory": "결과물 저장 경로",
|
||||
"Determines how little respect the algorithm should have for image's content. At 0, nothing will change, and at 1 you'll get an unrelated image. With values below 1.0, processing will take less steps than the Sampling Steps slider specifies.": "알고리즘이 얼마나 원본 이미지를 반영할지를 결정하는 수치입니다. 0일 경우 아무것도 바뀌지 않고, 1일 경우 원본 이미지와 전혀 관련없는 결과물을 얻게 됩니다. 1.0 아래의 값일 경우, 설정된 샘플링 스텝 수보다 적은 스텝 수를 거치게 됩니다.",
|
||||
"Directory for saving images using the Save button": "저장 버튼을 이용해 저장하는 이미지들의 저장 경로",
|
||||
|
@ -121,6 +130,7 @@
|
|||
"Drop File Here": "파일을 끌어 놓으세요",
|
||||
"Drop Image Here": "이미지를 끌어 놓으세요",
|
||||
"Dropdown": "드롭다운",
|
||||
"Dynamic Prompts": "다이나믹 프롬프트",
|
||||
"Embedding": "임베딩",
|
||||
"Embedding Learning rate": "임베딩 학습률",
|
||||
"Emphasis: use (text) to make model pay more attention to text and [text] to make it pay less attention": "강조 : (텍스트)를 이용해 모델의 텍스트에 대한 가중치를 더 강하게 주고 [텍스트]를 이용해 더 약하게 줍니다.",
|
||||
|
@ -141,6 +151,7 @@
|
|||
"Euler Ancestral - very creative, each can get a completely different picture depending on step count, setting steps to higher than 30-40 does not help": "Euler Ancestral - 매우 창의적, 스텝 수에 따라 완전히 다른 결과물이 나올 수 있음. 30~40보다 높은 스텝 수는 효과가 미미함",
|
||||
"Existing Caption txt Action": "이미 존재하는 캡션 텍스트 처리",
|
||||
"Extension": "확장기능",
|
||||
"Extension index URL": "확장기능 목록 URL",
|
||||
"Extensions": "확장기능",
|
||||
"Extra": "고급",
|
||||
"Extras": "부가기능",
|
||||
|
@ -200,6 +211,7 @@
|
|||
"ignore": "무시",
|
||||
"Image": "이미지",
|
||||
"Image Browser": "이미지 브라우저",
|
||||
"Image browser": "이미지 브라우저",
|
||||
"Image for img2img": "Image for img2img",
|
||||
"Image for inpainting with mask": "마스크로 인페인팅할 이미지",
|
||||
"Image not found (may have been already moved)": "이미지를 찾을 수 없습니다 (이미 옮겨졌을 수 있음)",
|
||||
|
@ -210,6 +222,7 @@
|
|||
"img2img alternative test": "이미지→이미지 대체버전 테스트",
|
||||
"img2img DDIM discretize": "이미지→이미지 DDIM 이산화",
|
||||
"img2img history": "이미지→이미지 기록",
|
||||
"Implements an expressive template language for random or combinatorial prompt generation along with features to support deep wildcard directory structures.": "무작위/조합 프롬프트 생성을 위한 문법과 복잡한 와일드카드 구조를 지원합니다.",
|
||||
"In loopback mode, on each loop the denoising strength is multiplied by this value. <1 means decreasing variety so your sequence will converge on a fixed picture. >1 means increasing variety so your sequence will become more and more chaotic.": "루프백 모드에서는 매 루프마다 디노이즈 강도에 이 값이 곱해집니다. 1보다 작을 경우 다양성이 낮아져 결과 이미지들이 고정된 형태로 모일 겁니다. 1보다 클 경우 다양성이 높아져 결과 이미지들이 갈수록 혼란스러워지겠죠.",
|
||||
"Include Separate Images": "분리된 이미지 포함하기",
|
||||
"Increase coherency by padding from the last comma within n tokens when using more than 75 tokens": "75개보다 많은 토큰을 사용시 마지막 쉼표로부터 N개의 토큰 이내에 패딩을 추가해 통일성 증가시키기",
|
||||
|
@ -222,6 +235,7 @@
|
|||
"Inpainting conditioning mask strength": "인페인팅 조절 마스크 강도",
|
||||
"Input directory": "인풋 이미지 경로",
|
||||
"Input images directory": "이미지 경로 입력",
|
||||
"Inspiration": "\"영감\"",
|
||||
"Install": "설치",
|
||||
"Install from URL": "URL로부터 확장기능 설치",
|
||||
"Installed": "설치된 확장기능",
|
||||
|
@ -259,12 +273,14 @@
|
|||
"Leave blank to save images to the default path.": "기존 저장 경로에 이미지들을 저장하려면 비워두세요.",
|
||||
"Leave empty for auto": "자동 설정하려면 비워두십시오",
|
||||
"left": "왼쪽",
|
||||
"Lets you edit captions in training datasets.": "훈련에 사용되는 데이터셋의 캡션을 수정할 수 있게 해줍니다.",
|
||||
"linear": "linear",
|
||||
"List of prompt inputs": "프롬프트 입력 리스트",
|
||||
"List of setting names, separated by commas, for settings that should go to the quick access bar at the top, rather than the usual setting tab. See modules/shared.py for setting names. Requires restarting to apply.": "설정 탭이 아니라 상단의 빠른 설정 바에 위치시킬 설정 이름을 쉼표로 분리해서 입력하십시오. 설정 이름은 modules/shared.py에서 찾을 수 있습니다. 재시작이 필요합니다.",
|
||||
"LMS": "LMS",
|
||||
"LMS Karras": "LMS Karras",
|
||||
"Load": "불러오기",
|
||||
"Load from:": "URL로부터 불러오기",
|
||||
"Loading...": "로딩 중...",
|
||||
"Local directory name": "로컬 경로 이름",
|
||||
"Localization (requires restart)": "현지화 (재시작 필요)",
|
||||
|
@ -360,6 +376,7 @@
|
|||
"Prompt template file": "프롬프트 템플릿 파일 경로",
|
||||
"Prompts": "프롬프트",
|
||||
"Prompts from file or textbox": "파일이나 텍스트박스로부터 프롬프트 불러오기",
|
||||
"Provides an interface to browse created images in the web browser.": "생성된 이미지를 브라우저 내에서 볼 수 있는 인터페이스를 추가합니다.",
|
||||
"Put variable parts at start of prompt": "변경되는 프롬프트를 앞에 위치시키기",
|
||||
"quad": "quad",
|
||||
"Quality for saved jpeg images": "저장된 jpeg 이미지들의 품질",
|
||||
|
@ -367,11 +384,13 @@
|
|||
"R-ESRGAN 4x+ Anime6B": "R-ESRGAN 4x+ Anime6B",
|
||||
"Random": "랜덤",
|
||||
"Random grid": "랜덤 그리드",
|
||||
"Randomly display the pictures of the artist's or artistic genres typical style, more pictures of this artist or genre is displayed after selecting. So you don't have to worry about how hard it is to choose the right style of art when you create.": "특정 작가 또는 스타일의 이미지들 중 하나를 무작위로 보여줍니다. 선택 후 선택한 작가 또는 스타일의 이미지들이 더 나타나게 됩니다. 고르기 어려워도 걱정하실 필요 없어요!",
|
||||
"Randomness": "랜덤성",
|
||||
"Read generation parameters from prompt or last generation if prompt is empty into user interface.": "클립보드에 복사된 정보로부터 설정값 읽어오기/프롬프트창이 비어있을경우 제일 최근 설정값 불러오기",
|
||||
"Read parameters (prompt, etc...) from txt2img tab when making previews": "프리뷰 이미지 생성 시 텍스트→이미지 탭에서 설정값(프롬프트 등) 읽어오기",
|
||||
"Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8": "추천 설정값 - 샘플링 스텝 수 : 80-100 , 샘플러 : Euler a, 디노이즈 강도 : 0.8",
|
||||
"Reload custom script bodies (No ui updates, No restart)": "커스텀 스크립트 리로드하기(UI 업데이트 없음, 재시작 없음)",
|
||||
"Reloading...": "재시작 중...",
|
||||
"relu": "relu",
|
||||
"Renew Page": "Renew Page",
|
||||
"Request browser notifications": "브라우저 알림 권한 요청",
|
||||
|
@ -391,6 +410,7 @@
|
|||
"Reuse seed from last generation, mostly useful if it was randomed": "이전 생성에서 사용된 시드를 불러옵니다. 랜덤하게 생성했을 시 도움됨",
|
||||
"right": "오른쪽",
|
||||
"Run": "가동",
|
||||
"Sample extension. Allows you to use __name__ syntax in your prompt to get a random line from a file named name.txt in the wildcards directory. Also see Dynamic Prompts for similar functionality.": "샘플 확장기능입니다. __이름__형식의 문법을 사용해 와일드카드 경로 내의 이름.txt파일로부터 무작위 프롬프트를 적용할 수 있게 해줍니다. 유사한 확장기능으로 다이나믹 프롬프트가 있습니다.",
|
||||
"Sampler": "샘플러",
|
||||
"Sampler parameters": "샘플러 설정값",
|
||||
"Sampling method": "샘플링 방법",
|
||||
|
@ -442,6 +462,7 @@
|
|||
"Show progressbar": "프로그레스 바 보이기",
|
||||
"Show result images": "이미지 결과 보이기",
|
||||
"Show Textbox": "텍스트박스 보이기",
|
||||
"Shows a gallery of generated pictures by artists separated into categories.": "생성된 이미지들을 작가별로 분류해 보여줍니다. 원본 - https://artiststostudy.pages.dev",
|
||||
"Sigma adjustment for finding noise for image": "이미지 노이즈를 찾기 위해 시그마 조정",
|
||||
"Sigma Churn": "시그마 섞기",
|
||||
"sigma churn": "시그마 섞기",
|
||||
|
@ -479,6 +500,7 @@
|
|||
"System": "시스템",
|
||||
"Tertiary model (C)": "3차 모델 (C)",
|
||||
"Textbox": "텍스트박스",
|
||||
"The official port of Deforum, an extensive script for 2D and 3D animations, supporting keyframable sequences, dynamic math parameters (even inside the prompts), dynamic masking, depth estimation and warping.": "Deforum의 공식 포팅 버전입니다. 2D와 3D 애니메이션, 키프레임 시퀀스, 수학적 매개변수, 다이나믹 마스킹 등을 지원합니다.",
|
||||
"This regular expression will be used extract words from filename, and they will be joined using the option below into label text used for training. Leave empty to keep filename text as it is.": "이 정규표현식은 파일명으로부터 단어를 추출하는 데 사용됩니다. 추출된 단어들은 하단의 설정을 이용해 라벨 텍스트로 변환되어 훈련에 사용됩니다. 파일명 텍스트를 유지하려면 비워두십시오.",
|
||||
"This string will be used to join split words into a single line if the option above is enabled.": "이 문자열은 상단 설정이 활성화되어있을 때 분리된 단어들을 한 줄로 합치는 데 사용됩니다.",
|
||||
"This text is used to rotate the feature space of the imgs embs": "이 텍스트는 이미지 임베딩의 특징 공간을 회전하는 데 사용됩니다.",
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"Checkpoint Merger": "Fusão de Checkpoint",
|
||||
"Train": "Treinar",
|
||||
"Settings": "Configurações",
|
||||
"Extensions": "Extensions",
|
||||
"Prompt": "Prompt",
|
||||
"Negative prompt": "Prompt negativo",
|
||||
"Run": "Executar",
|
||||
|
@ -93,13 +94,13 @@
|
|||
"Eta": "Tempo estimado",
|
||||
"Clip skip": "Pular Clip",
|
||||
"Denoising": "Denoising",
|
||||
"Cond. Image Mask Weight": "Peso da Máscara Condicional de Imagem",
|
||||
"X values": "Valores de X",
|
||||
"Y type": "Tipo de Y",
|
||||
"Y values": "Valores de Y",
|
||||
"Draw legend": "Desenhar a legenda",
|
||||
"Include Separate Images": "Incluir Imagens Separadas",
|
||||
"Keep -1 for seeds": "Manter em -1 para seeds",
|
||||
"Drop Image Here": "Solte a imagem aqui",
|
||||
"Save": "Salvar",
|
||||
"Send to img2img": "Mandar para img2img",
|
||||
"Send to inpaint": "Mandar para inpaint",
|
||||
|
@ -110,6 +111,7 @@
|
|||
"Inpaint": "Inpaint",
|
||||
"Batch img2img": "Lote img2img",
|
||||
"Image for img2img": "Imagem para img2img",
|
||||
"Drop Image Here": "Solte a imagem aqui",
|
||||
"Image for inpainting with mask": "Imagem para inpainting com máscara",
|
||||
"Mask": "Máscara",
|
||||
"Mask blur": "Desfoque da máscara",
|
||||
|
@ -166,16 +168,10 @@
|
|||
"Upscaler": "Ampliador",
|
||||
"Lanczos": "Lanczos",
|
||||
"LDSR": "LDSR",
|
||||
"4x_foolhardy_Remacri": "4x_foolhardy_Remacri",
|
||||
"Put ESRGAN models here": "Coloque modelos ESRGAN aqui",
|
||||
"R-ESRGAN General 4xV3": "R-ESRGAN General 4xV3",
|
||||
"R-ESRGAN AnimeVideo": "R-ESRGAN AnimeVideo",
|
||||
"R-ESRGAN 4x+": "R-ESRGAN 4x+",
|
||||
"R-ESRGAN 4x+ Anime6B": "R-ESRGAN 4x+ Anime6B",
|
||||
"R-ESRGAN 2x+": "R-ESRGAN 2x+",
|
||||
"ScuNET": "ScuNET",
|
||||
"ESRGAN_4x": "ESRGAN_4x",
|
||||
"ScuNET GAN": "ScuNET GAN",
|
||||
"ScuNET PSNR": "ScuNET PSNR",
|
||||
"put_swinir_models_here": "put_swinir_models_here",
|
||||
"SwinIR 4x": "SwinIR 4x",
|
||||
"Single Image": "Uma imagem",
|
||||
"Batch Process": "Processo em lote",
|
||||
"Batch from Directory": "Lote apartir de diretório",
|
||||
|
@ -189,7 +185,7 @@
|
|||
"GFPGAN visibility": "Visibilidade GFPGAN",
|
||||
"CodeFormer visibility": "Visibilidade CodeFormer",
|
||||
"CodeFormer weight (0 = maximum effect, 1 = minimum effect)": "Peso do CodeFormer (0 = efeito máximo, 1 = efeito mínimo)",
|
||||
"Open output directory": "Abrir diretório de saída",
|
||||
"Upscale Before Restoring Faces": "Ampliar Antes de Refinar Rostos",
|
||||
"Send to txt2img": "Mandar para txt2img",
|
||||
"A merger of the two checkpoints will be generated in your": "Uma fusão dos dois checkpoints será gerada em seu",
|
||||
"checkpoint": "checkpoint",
|
||||
|
@ -216,6 +212,7 @@
|
|||
"Modules": "Módulos",
|
||||
"Enter hypernetwork layer structure": "Entrar na estrutura de camadas da hypernetwork",
|
||||
"Select activation function of hypernetwork": "Selecionar a função de ativação de hypernetwork",
|
||||
"linear": "linear",
|
||||
"relu": "relu",
|
||||
"leakyrelu": "leakyrelu",
|
||||
"elu": "elu",
|
||||
|
@ -227,12 +224,10 @@
|
|||
"glu": "glu",
|
||||
"hardshrink": "hardshrink",
|
||||
"hardsigmoid": "hardsigmoid",
|
||||
"hardswish": "hardswish",
|
||||
"hardtanh": "hardtanh",
|
||||
"logsigmoid": "logsigmoid",
|
||||
"logsoftmax": "logsoftmax",
|
||||
"mish": "mish",
|
||||
"multiheadattention": "multiheadattention",
|
||||
"prelu": "prelu",
|
||||
"rrelu": "rrelu",
|
||||
"relu6": "relu6",
|
||||
|
@ -274,9 +269,9 @@
|
|||
"Focal point edges weight": "Peso de ponto focal para bordas",
|
||||
"Create debug image": "Criar imagem de depuração",
|
||||
"Preprocess": "Pré-processar",
|
||||
"Train an embedding; must specify a directory with a set of 1:1 ratio images": "Treinar um embedding; precisa especificar um diretório com imagens de proporção 1:1",
|
||||
"Train an embedding; must specify a directory with a set of 1:1 ratio images": "Treinar uma incorporação; precisa especificar um diretório com imagens de proporção 1:1",
|
||||
"[wiki]": "[wiki]",
|
||||
"Embedding": "Embedding",
|
||||
"Embedding": "Incorporação",
|
||||
"Embedding Learning rate": "Taxa de aprendizagem da incorporação",
|
||||
"Hypernetwork Learning rate": "Taxa de aprendizagem de Hypernetwork",
|
||||
"Dataset directory": "Diretório de Dataset",
|
||||
|
@ -345,9 +340,11 @@
|
|||
"Filename join string": "Nome de arquivo join string",
|
||||
"Number of repeats for a single input image per epoch; used only for displaying epoch number": "Número de repetições para entrada única de imagens por época; serve apenas para mostrar o número de época",
|
||||
"Save an csv containing the loss to log directory every N steps, 0 to disable": "Salvar um csv com as perdas para o diretório de log a cada N steps, 0 para desativar",
|
||||
"Use cross attention optimizations while training": "Usar otimizações de atenção cruzada enquanto treinando",
|
||||
"Stable Diffusion": "Stable Diffusion",
|
||||
"Checkpoints to cache in RAM": "Checkpoints para manter no cache da RAM",
|
||||
"Hypernetwork strength": "Força da Hypernetwork",
|
||||
"Inpainting conditioning mask strength": "Força do inpaint para máscaras condicioniais",
|
||||
"Apply color correction to img2img results to match original colors.": "Aplicar correção de cor nas imagens geradas em img2img, usando a imagem original como base.",
|
||||
"Save a copy of image before applying color correction to img2img results": "Salvar uma cópia das imagens geradas em img2img antes de aplicar a correção de cor",
|
||||
"With img2img, do exactly the amount of steps the slider specifies (normally you'd do less with less denoising).": "Durante gerações img2img, fazer examente o número de steps definidos na barra (normalmente você faz menos steps com denoising menor).",
|
||||
|
@ -379,6 +376,7 @@
|
|||
"Add model hash to generation information": "Adicionar hash do modelo para informação de geração",
|
||||
"Add model name to generation information": "Adicionar nome do modelo para informação de geração",
|
||||
"When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint.": "Quando ler parâmetros de texto para a interface (de informações de PNG ou texto copiado), não alterar o modelo/intervalo selecionado.",
|
||||
"Send seed when sending prompt or image to other interface": "Enviar seed quando enviar prompt ou imagem para outra interface",
|
||||
"Font for image grids that have text": "Fonte para grade de imagens que têm texto",
|
||||
"Enable full page image viewer": "Ativar visualizador de página inteira",
|
||||
"Show images zoomed in by default in full page image viewer": "Mostrar imagens com zoom por definição no visualizador de página inteira",
|
||||
|
@ -386,13 +384,17 @@
|
|||
"Quicksettings list": "Lista de configurações rapidas",
|
||||
"Localization (requires restart)": "Localização (precisa reiniciar)",
|
||||
"ar_AR": "ar_AR",
|
||||
"de_DE": "de_DE",
|
||||
"es_ES": "es_ES",
|
||||
"fr-FR": "fr-FR",
|
||||
"fr_FR": "fr_FR",
|
||||
"it_IT": "it_IT",
|
||||
"ja_JP": "ja_JP",
|
||||
"ko_KR": "ko_KR",
|
||||
"pt_BR": "pt_BR",
|
||||
"ru_RU": "ru_RU",
|
||||
"tr_TR": "tr_TR",
|
||||
"zh_CN": "zh_CN",
|
||||
"zh_TW": "zh_TW",
|
||||
"Sampler parameters": "Parâmetros de Amostragem",
|
||||
"Hide samplers in user interface (requires restart)": "Esconder amostragens na interface de usuário (precisa reiniciar)",
|
||||
"eta (noise multiplier) for DDIM": "tempo estimado (multiplicador de ruído) para DDIM",
|
||||
|
@ -408,6 +410,19 @@
|
|||
"Download localization template": "Baixar arquivo modelo de localização",
|
||||
"Reload custom script bodies (No ui updates, No restart)": "Recarregar scripts personalizados (Sem atualizar a interface, Sem reiniciar)",
|
||||
"Restart Gradio and Refresh components (Custom Scripts, ui.py, js and css only)": "Reiniciar Gradio e atualizar componentes (Scripts personalizados, ui.py, js e css)",
|
||||
"Installed": "Instalado",
|
||||
"Available": "Disponível",
|
||||
"Install from URL": "Instalado de URL",
|
||||
"Apply and restart UI": "Apicar e reiniciar a interface",
|
||||
"Check for updates": "Procurar por atualizações",
|
||||
"Extension": "Extensão",
|
||||
"URL": "URL",
|
||||
"Update": "Atualização",
|
||||
"Load from:": "Carregar de:",
|
||||
"Extension index URL": "Índice de extensão URL",
|
||||
"URL for extension's git repository": "URL para repositório git da extensão",
|
||||
"Local directory name": "Nome do diretório local",
|
||||
"Install": "Instalar",
|
||||
"Prompt (press Ctrl+Enter or Alt+Enter to generate)": "Prompt (apertar Ctrl+Enter ou Alt+Enter para gerar)",
|
||||
"Negative prompt (press Ctrl+Enter or Alt+Enter to generate)": "Prompt Negativo (apertar Ctrl+Enter ou Alt+Enter para gerar)",
|
||||
"Add a random artist to the prompt.": "Adicionar um artista aleatório para o prompt.",
|
||||
|
@ -420,7 +435,7 @@
|
|||
"Do not do anything special": "Não faça nada de especial",
|
||||
"Which algorithm to use to produce the image": "O tipo de algoritmo para gerar imagens.",
|
||||
"Euler Ancestral - very creative, each can get a completely different picture depending on step count, setting steps to higher than 30-40 does not help": "Euler Ancestral - cria mais variações para as imagens em diferentes passos. Mais que 40 passos cancela o efeito.",
|
||||
"Denoising Diffusion Implicit Models - Funciona melhor para inpainting.": "Denoising Diffusion Implicit Models - Funciona melhor para inpainting.",
|
||||
"Denoising Diffusion Implicit Models - best at inpainting": "Denoising Diffusion Implicit Models - Funciona melhor para inpainting.",
|
||||
"Produce an image that can be tiled.": "Produz uma imagem que pode ser ladrilhada.",
|
||||
"Use a two step process to partially create an image at smaller resolution, upscale, and then improve details in it without changing composition": "Cria um processo em duas etapas, com uma imagem em baixa qualidade primeiro, aumenta a imagem e refina os detalhes sem alterar a composição da imagem",
|
||||
"Determines how little respect the algorithm should have for image's content. At 0, nothing will change, and at 1 you'll get an unrelated image. With values below 1.0, processing will take less steps than the Sampling Steps slider specifies.": "Quanto o algoritmo deve manter da imagem original. Em 0, nada muda. Em 1 o algoritmo ignora a imagem original. Valores menores que 1.0 demoram mais.",
|
||||
|
@ -438,7 +453,7 @@
|
|||
"Write image to a directory (default - log/images) and generation parameters into csv file.": "Salva a imagem no diretório padrão ou escolhido e cria um arquivo csv com os parâmetros da geração.",
|
||||
"Open images output directory": "Abre o diretório de saída de imagens.",
|
||||
"How much to blur the mask before processing, in pixels.": "Transição do contorno da máscara, em pixels.",
|
||||
"What to put inside the masked area before processing it with Stable Diffusion.": "O que vai dentro da máscara antes de processar.",
|
||||
"What to put inside the masked area before processing it with Stable Diffusion.": "O que vai dentro da máscara antes de processá-la com Stable Diffusion.",
|
||||
"fill it with colors of the image": "Preenche usando as cores da imagem.",
|
||||
"keep whatever was there originally": "manter usando o que estava lá originalmente",
|
||||
"fill it with latent space noise": "Preenche com ruídos do espaço latente.",
|
||||
|
@ -463,6 +478,8 @@
|
|||
"Restore low quality faces using GFPGAN neural network": "Restaurar rostos de baixa qualidade usando a rede neural GFPGAN",
|
||||
"This regular expression will be used extract words from filename, and they will be joined using the option below into label text used for training. Leave empty to keep filename text as it is.": "Esta expressão regular vai retirar palavras do nome do arquivo e serão juntadas via regex usando a opção abaixo em etiquetas usadas em treinamento. Não mexer para manter os nomes como estão.",
|
||||
"This string will be used to join split words into a single line if the option above is enabled.": "Esta string será usada para unir palavras divididas em uma única linha se a opção acima estiver habilitada.",
|
||||
"Only applies to inpainting models. Determines how strongly to mask off the original image for inpainting and img2img. 1.0 means fully masked, which is the default behaviour. 0.0 means a fully unmasked conditioning. Lower values will help preserve the overall composition of the image, but will struggle with large changes.": "Aplicável somente para modelos de inpaint. Determina quanto deve mascarar da imagem original para inpaint e img2img. 1.0 significa totalmente mascarado, que é o comportamento padrão. 0.0 significa uma condição totalmente não mascarada. Valores baixos ajudam a preservar a composição geral da imagem, mas vai encontrar dificuldades com grandes mudanças.",
|
||||
"List of setting names, separated by commas, for settings that should go to the quick access bar at the top, rather than the usual setting tab. See modules/shared.py for setting names. Requires restarting to apply.": "Lista de nomes de configurações, separados por vírgulas, para configurações que devem ir para a barra de acesso rápido na parte superior, em vez da guia de configuração usual. Veja modules/shared.py para nomes de configuração. Necessita reinicialização para aplicar.",
|
||||
"If this values is non-zero, it will be added to seed and used to initialize RNG for noises when using samplers with Eta. You can use this to produce even more variation of images, or you can use this to match images of other software if you know what you are doing.": "Se este valor for diferente de zero, ele será adicionado à seed e usado para inicializar o RNG para ruídos ao usar amostragens com Tempo Estimado. Você pode usar isso para produzir ainda mais variações de imagens ou pode usar isso para combinar imagens de outro software se souber o que está fazendo."
|
||||
"Leave empty for auto": "Deixar desmarcado para automático"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import base64
|
||||
import io
|
||||
import time
|
||||
import uvicorn
|
||||
from gradio.processing_utils import encode_pil_to_base64, decode_base64_to_file, decode_base64_to_image
|
||||
from gradio.processing_utils import decode_base64_to_file, decode_base64_to_image
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
import modules.shared as shared
|
||||
from modules import devices
|
||||
|
@ -29,6 +31,12 @@ def setUpscalers(req: dict):
|
|||
return reqDict
|
||||
|
||||
|
||||
def encode_pil_to_base64(image):
|
||||
buffer = io.BytesIO()
|
||||
image.save(buffer, format="png")
|
||||
return base64.b64encode(buffer.getvalue())
|
||||
|
||||
|
||||
class Api:
|
||||
def __init__(self, app, queue_lock):
|
||||
self.router = APIRouter()
|
||||
|
@ -40,6 +48,7 @@ class Api:
|
|||
self.app.add_api_route("/sdapi/v1/extra-batch-images", self.extras_batch_images_api, methods=["POST"], response_model=ExtrasBatchImagesResponse)
|
||||
self.app.add_api_route("/sdapi/v1/png-info", self.pnginfoapi, methods=["POST"], response_model=PNGInfoResponse)
|
||||
self.app.add_api_route("/sdapi/v1/progress", self.progressapi, methods=["GET"], response_model=ProgressResponse)
|
||||
self.app.add_api_route("/sdapi/v1/interrupt", self.interruptapi, methods=["POST"])
|
||||
|
||||
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
|
||||
sampler_index = sampler_to_index(txt2imgreq.sampler_index)
|
||||
|
@ -176,6 +185,11 @@ class Api:
|
|||
|
||||
return ProgressResponse(progress=progress, eta_relative=eta_relative, state=shared.state.dict(), current_image=current_image)
|
||||
|
||||
def interruptapi(self):
|
||||
shared.state.interrupt()
|
||||
|
||||
return {}
|
||||
|
||||
def launch(self, server_name, port):
|
||||
self.app.include_router(self.router)
|
||||
uvicorn.run(self.app, host=server_name, port=port)
|
||||
|
|
|
@ -141,7 +141,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
|
|||
upscaling_resize_w, upscaling_resize_h, upscaling_crop)
|
||||
cache_key = LruCache.Key(image_hash=hash(np.array(image.getdata()).tobytes()),
|
||||
info_hash=hash(info),
|
||||
args_hash=hash(upscale_args))
|
||||
args_hash=hash((upscale_args, upscale_first)))
|
||||
cached_entry = cached_images.get(cache_key)
|
||||
if cached_entry is None:
|
||||
res = upscale(image, *upscale_args)
|
||||
|
|
|
@ -510,8 +510,9 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
|
|||
|
||||
if extension.lower() == '.png':
|
||||
pnginfo_data = PngImagePlugin.PngInfo()
|
||||
for k, v in params.pnginfo.items():
|
||||
pnginfo_data.add_text(k, str(v))
|
||||
if opts.enable_pnginfo:
|
||||
for k, v in params.pnginfo.items():
|
||||
pnginfo_data.add_text(k, str(v))
|
||||
|
||||
image.save(fullfn, quality=opts.jpeg_quality, pnginfo=pnginfo_data)
|
||||
|
||||
|
|
|
@ -137,6 +137,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
|
|||
if processed is None:
|
||||
processed = process_images(p)
|
||||
|
||||
p.close()
|
||||
|
||||
shared.total_tqdm.clear()
|
||||
|
||||
generation_info_js = processed.js()
|
||||
|
|
|
@ -56,9 +56,9 @@ class InterrogateModels:
|
|||
import clip
|
||||
|
||||
if self.running_on_cpu:
|
||||
model, preprocess = clip.load(clip_model_name, device="cpu")
|
||||
model, preprocess = clip.load(clip_model_name, device="cpu", download_root=shared.cmd_opts.clip_models_path)
|
||||
else:
|
||||
model, preprocess = clip.load(clip_model_name)
|
||||
model, preprocess = clip.load(clip_model_name, download_root=shared.cmd_opts.clip_models_path)
|
||||
|
||||
model.eval()
|
||||
model = model.to(devices.device_interrogate)
|
||||
|
|
|
@ -202,6 +202,10 @@ class StableDiffusionProcessing():
|
|||
def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength):
|
||||
raise NotImplementedError()
|
||||
|
||||
def close(self):
|
||||
self.sd_model = None
|
||||
self.sampler = None
|
||||
|
||||
|
||||
class Processed:
|
||||
def __init__(self, p: StableDiffusionProcessing, images_list, seed=-1, info="", subseed=None, all_prompts=None, all_seeds=None, all_subseeds=None, index_of_first_image=0, infotexts=None):
|
||||
|
@ -597,9 +601,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||
if p.scripts is not None:
|
||||
p.scripts.postprocess(p, res)
|
||||
|
||||
p.sd_model = None
|
||||
p.sampler = None
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,24 @@ class ImageSaveParams:
|
|||
"""dictionary with parameters for image's PNG info data; infotext will have the key 'parameters'"""
|
||||
|
||||
|
||||
class CFGDenoiserParams:
|
||||
def __init__(self, x, image_cond, sigma, sampling_step, total_sampling_steps):
|
||||
self.x = x
|
||||
"""Latent image representation in the process of being denoised"""
|
||||
|
||||
self.image_cond = image_cond
|
||||
"""Conditioning image"""
|
||||
|
||||
self.sigma = sigma
|
||||
"""Current sigma noise step value"""
|
||||
|
||||
self.sampling_step = sampling_step
|
||||
"""Current Sampling step number"""
|
||||
|
||||
self.total_sampling_steps = total_sampling_steps
|
||||
"""Total number of sampling steps planned"""
|
||||
|
||||
|
||||
ScriptCallback = namedtuple("ScriptCallback", ["script", "callback"])
|
||||
callbacks_app_started = []
|
||||
callbacks_model_loaded = []
|
||||
|
@ -33,6 +51,7 @@ callbacks_ui_tabs = []
|
|||
callbacks_ui_settings = []
|
||||
callbacks_before_image_saved = []
|
||||
callbacks_image_saved = []
|
||||
callbacks_cfg_denoiser = []
|
||||
|
||||
|
||||
def clear_callbacks():
|
||||
|
@ -41,7 +60,7 @@ def clear_callbacks():
|
|||
callbacks_ui_settings.clear()
|
||||
callbacks_before_image_saved.clear()
|
||||
callbacks_image_saved.clear()
|
||||
|
||||
callbacks_cfg_denoiser.clear()
|
||||
|
||||
def app_started_callback(demo: Blocks, app: FastAPI):
|
||||
for c in callbacks_app_started:
|
||||
|
@ -95,6 +114,14 @@ def image_saved_callback(params: ImageSaveParams):
|
|||
report_exception(c, 'image_saved_callback')
|
||||
|
||||
|
||||
def cfg_denoiser_callback(params: CFGDenoiserParams):
|
||||
for c in callbacks_cfg_denoiser:
|
||||
try:
|
||||
c.callback(params)
|
||||
except Exception:
|
||||
report_exception(c, 'cfg_denoiser_callback')
|
||||
|
||||
|
||||
def add_callback(callbacks, fun):
|
||||
stack = [x for x in inspect.stack() if x.filename != __file__]
|
||||
filename = stack[0].filename if len(stack) > 0 else 'unknown file'
|
||||
|
@ -147,3 +174,12 @@ def on_image_saved(callback):
|
|||
- params: ImageSaveParams - parameters the image was saved with. Changing fields in this object does nothing.
|
||||
"""
|
||||
add_callback(callbacks_image_saved, callback)
|
||||
|
||||
|
||||
def on_cfg_denoiser(callback):
|
||||
"""register a function to be called in the kdiffussion cfg_denoiser method after building the inner model inputs.
|
||||
The callback is called with one argument:
|
||||
- params: CFGDenoiserParams - parameters to be passed to the inner model and sampling state details.
|
||||
"""
|
||||
add_callback(callbacks_cfg_denoiser, callback)
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ from modules import prompt_parser, devices, processing, images
|
|||
|
||||
from modules.shared import opts, cmd_opts, state
|
||||
import modules.shared as shared
|
||||
from modules.script_callbacks import CFGDenoiserParams, cfg_denoiser_callback
|
||||
|
||||
|
||||
SamplerData = namedtuple('SamplerData', ['name', 'constructor', 'aliases', 'options'])
|
||||
|
@ -280,6 +281,12 @@ class CFGDenoiser(torch.nn.Module):
|
|||
image_cond_in = torch.cat([torch.stack([image_cond[i] for _ in range(n)]) for i, n in enumerate(repeats)] + [image_cond])
|
||||
sigma_in = torch.cat([torch.stack([sigma[i] for _ in range(n)]) for i, n in enumerate(repeats)] + [sigma])
|
||||
|
||||
denoiser_params = CFGDenoiserParams(x_in, image_cond_in, sigma_in, state.sampling_step, state.sampling_steps)
|
||||
cfg_denoiser_callback(denoiser_params)
|
||||
x_in = denoiser_params.x
|
||||
image_cond_in = denoiser_params.image_cond
|
||||
sigma_in = denoiser_params.sigma
|
||||
|
||||
if tensor.shape[1] == uncond.shape[1]:
|
||||
cond_in = torch.cat([tensor, uncond])
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ parser.add_argument("--realesrgan-models-path", type=str, help="Path to director
|
|||
parser.add_argument("--scunet-models-path", type=str, help="Path to directory with ScuNET model file(s).", default=os.path.join(models_path, 'ScuNET'))
|
||||
parser.add_argument("--swinir-models-path", type=str, help="Path to directory with SwinIR model file(s).", default=os.path.join(models_path, 'SwinIR'))
|
||||
parser.add_argument("--ldsr-models-path", type=str, help="Path to directory with LDSR model file(s).", default=os.path.join(models_path, 'LDSR'))
|
||||
parser.add_argument("--clip-models-path", type=str, help="Path to directory with CLIP model file(s).", default=None)
|
||||
parser.add_argument("--xformers", action='store_true', help="enable xformers for cross attention layers")
|
||||
parser.add_argument("--force-enable-xformers", action='store_true', help="enable xformers for cross attention layers regardless of whether the checking code thinks you can run it; do not make bug reports if this fails to work")
|
||||
parser.add_argument("--deepdanbooru", action='store_true', help="enable deepdanbooru interrogator")
|
||||
|
@ -288,11 +289,12 @@ options_templates.update(options_section(('system', "System"), {
|
|||
}))
|
||||
|
||||
options_templates.update(options_section(('training', "Training"), {
|
||||
"unload_models_when_training": OptionInfo(False, "Move VAE and CLIP to RAM when training hypernetwork. Saves VRAM."),
|
||||
"unload_models_when_training": OptionInfo(False, "Move VAE and CLIP to RAM when training if possible. Saves VRAM."),
|
||||
"dataset_filename_word_regex": OptionInfo("", "Filename word regex"),
|
||||
"dataset_filename_join_string": OptionInfo(" ", "Filename join string"),
|
||||
"training_image_repeats_per_epoch": OptionInfo(1, "Number of repeats for a single input image per epoch; used only for displaying epoch number", gr.Number, {"precision": 0}),
|
||||
"training_write_csv_every": OptionInfo(500, "Save an csv containing the loss to log directory every N steps, 0 to disable"),
|
||||
"training_xattention_optimizations": OptionInfo(False, "Use cross attention optimizations while training"),
|
||||
}))
|
||||
|
||||
options_templates.update(options_section(('sd', "Stable Diffusion"), {
|
||||
|
|
|
@ -235,6 +235,7 @@ def train_embedding(embedding_name, learn_rate, batch_size, data_root, log_direc
|
|||
filename = os.path.join(shared.cmd_opts.embeddings_dir, f'{embedding_name}.pt')
|
||||
|
||||
log_directory = os.path.join(log_directory, datetime.datetime.now().strftime("%Y-%m-%d"), embedding_name)
|
||||
unload = shared.opts.unload_models_when_training
|
||||
|
||||
if save_embedding_every > 0:
|
||||
embedding_dir = os.path.join(log_directory, "embeddings")
|
||||
|
@ -272,6 +273,8 @@ def train_embedding(embedding_name, learn_rate, batch_size, data_root, log_direc
|
|||
shared.state.textinfo = f"Preparing dataset from {html.escape(data_root)}..."
|
||||
with torch.autocast("cuda"):
|
||||
ds = modules.textual_inversion.dataset.PersonalizedBase(data_root=data_root, width=training_width, height=training_height, repeats=shared.opts.training_image_repeats_per_epoch, placeholder_token=embedding_name, shuffle_tags=shuffle_tags, model=shared.sd_model, device=devices.device, template_file=template_file, batch_size=batch_size)
|
||||
if unload:
|
||||
shared.sd_model.first_stage_model.to(devices.cpu)
|
||||
|
||||
embedding.vec.requires_grad = True
|
||||
optimizer = torch.optim.AdamW([embedding.vec], lr=scheduler.learn_rate)
|
||||
|
@ -328,6 +331,9 @@ def train_embedding(embedding_name, learn_rate, batch_size, data_root, log_direc
|
|||
if images_dir is not None and steps_done % create_image_every == 0:
|
||||
forced_filename = f'{embedding_name}-{steps_done}'
|
||||
last_saved_image = os.path.join(images_dir, forced_filename)
|
||||
|
||||
shared.sd_model.first_stage_model.to(devices.device)
|
||||
|
||||
p = processing.StableDiffusionProcessingTxt2Img(
|
||||
sd_model=shared.sd_model,
|
||||
do_not_save_grid=True,
|
||||
|
@ -355,6 +361,9 @@ def train_embedding(embedding_name, learn_rate, batch_size, data_root, log_direc
|
|||
processed = processing.process_images(p)
|
||||
image = processed.images[0]
|
||||
|
||||
if unload:
|
||||
shared.sd_model.first_stage_model.to(devices.cpu)
|
||||
|
||||
shared.state.current_image = image
|
||||
|
||||
if save_image_with_stored_embedding and os.path.exists(last_saved_file) and embedding_yet_to_be_embedded:
|
||||
|
@ -400,6 +409,7 @@ Last saved image: {html.escape(last_saved_image)}<br/>
|
|||
|
||||
filename = os.path.join(shared.cmd_opts.embeddings_dir, f'{embedding_name}.pt')
|
||||
save_embedding(embedding, checkpoint, embedding_name, filename, remove_cached_checksum=True)
|
||||
shared.sd_model.first_stage_model.to(devices.device)
|
||||
|
||||
return embedding, filename
|
||||
|
||||
|
|
|
@ -25,8 +25,10 @@ def train_embedding(*args):
|
|||
|
||||
assert not shared.cmd_opts.lowvram, 'Training models with lowvram not possible'
|
||||
|
||||
apply_optimizations = shared.opts.training_xattention_optimizations
|
||||
try:
|
||||
sd_hijack.undo_optimizations()
|
||||
if not apply_optimizations:
|
||||
sd_hijack.undo_optimizations()
|
||||
|
||||
embedding, filename = modules.textual_inversion.textual_inversion.train_embedding(*args)
|
||||
|
||||
|
@ -38,5 +40,6 @@ Embedding saved to {html.escape(filename)}
|
|||
except Exception:
|
||||
raise
|
||||
finally:
|
||||
sd_hijack.apply_optimizations()
|
||||
if not apply_optimizations:
|
||||
sd_hijack.apply_optimizations()
|
||||
|
||||
|
|
|
@ -47,6 +47,8 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
|
|||
if processed is None:
|
||||
processed = process_images(p)
|
||||
|
||||
p.close()
|
||||
|
||||
shared.total_tqdm.clear()
|
||||
|
||||
generation_info_js = processed.js()
|
||||
|
|
|
@ -671,6 +671,8 @@ def create_ui(wrap_gradio_gpu_call):
|
|||
import modules.img2img
|
||||
import modules.txt2img
|
||||
|
||||
reload_javascript()
|
||||
|
||||
parameters_copypaste.reset()
|
||||
|
||||
with gr.Blocks(analytics_enabled=False) as txt2img_interface:
|
||||
|
@ -1573,8 +1575,7 @@ def create_ui(wrap_gradio_gpu_call):
|
|||
reload_script_bodies.click(
|
||||
fn=reload_scripts,
|
||||
inputs=[],
|
||||
outputs=[],
|
||||
_js='function(){}'
|
||||
outputs=[]
|
||||
)
|
||||
|
||||
def request_restart():
|
||||
|
@ -1586,7 +1587,7 @@ def create_ui(wrap_gradio_gpu_call):
|
|||
fn=request_restart,
|
||||
inputs=[],
|
||||
outputs=[],
|
||||
_js='function(){restart_reload()}'
|
||||
_js='restart_reload'
|
||||
)
|
||||
|
||||
if column is not None:
|
||||
|
@ -1785,4 +1786,3 @@ def load_javascript(raw_response):
|
|||
|
||||
|
||||
reload_javascript = partial(load_javascript, gradio.routes.templates.TemplateResponse)
|
||||
reload_javascript()
|
||||
|
|
|
@ -4,7 +4,7 @@ fairscale==0.4.4
|
|||
fonts
|
||||
font-roboto
|
||||
gfpgan
|
||||
gradio==3.5
|
||||
gradio==3.8
|
||||
invisible-watermark
|
||||
numpy
|
||||
omegaconf
|
||||
|
@ -12,7 +12,7 @@ opencv-python
|
|||
requests
|
||||
piexif
|
||||
Pillow
|
||||
pytorch_lightning
|
||||
pytorch_lightning==1.7.7
|
||||
realesrgan
|
||||
scikit-image>=0.19
|
||||
timm==0.4.12
|
||||
|
|
|
@ -2,7 +2,7 @@ transformers==4.19.2
|
|||
diffusers==0.3.0
|
||||
basicsr==1.4.2
|
||||
gfpgan==1.3.8
|
||||
gradio==3.5
|
||||
gradio==3.8
|
||||
numpy==1.23.3
|
||||
Pillow==9.2.0
|
||||
realesrgan==0.3.0
|
||||
|
|
|
@ -96,6 +96,7 @@ class Script(scripts.Script):
|
|||
|
||||
def ui(self, is_img2img):
|
||||
checkbox_iterate = gr.Checkbox(label="Iterate seed every line", value=False)
|
||||
checkbox_iterate_batch = gr.Checkbox(label="Use same random seed for all lines", value=False)
|
||||
|
||||
prompt_txt = gr.Textbox(label="List of prompt inputs", lines=1)
|
||||
file = gr.File(label="Upload prompt inputs", type='bytes')
|
||||
|
@ -106,9 +107,9 @@ class Script(scripts.Script):
|
|||
# We don't shrink back to 1, because that causes the control to ignore [enter], and it may
|
||||
# be unclear to the user that shift-enter is needed.
|
||||
prompt_txt.change(lambda tb: gr.update(lines=7) if ("\n" in tb) else gr.update(lines=2), inputs=[prompt_txt], outputs=[prompt_txt])
|
||||
return [checkbox_iterate, file, prompt_txt]
|
||||
return [checkbox_iterate, checkbox_iterate_batch, file, prompt_txt]
|
||||
|
||||
def run(self, p, checkbox_iterate, file, prompt_txt: str):
|
||||
def run(self, p, checkbox_iterate, checkbox_iterate_batch, file, prompt_txt: str):
|
||||
lines = [x.strip() for x in prompt_txt.splitlines()]
|
||||
lines = [x for x in lines if len(x) > 0]
|
||||
|
||||
|
@ -137,7 +138,7 @@ class Script(scripts.Script):
|
|||
jobs.append(args)
|
||||
|
||||
print(f"Will process {len(lines)} lines in {job_count} jobs.")
|
||||
if (checkbox_iterate and p.seed == -1):
|
||||
if (checkbox_iterate or checkbox_iterate_batch) and p.seed == -1:
|
||||
p.seed = int(random.randrange(4294967294))
|
||||
|
||||
state.job_count = job_count
|
||||
|
@ -153,7 +154,7 @@ class Script(scripts.Script):
|
|||
proc = process_images(copy_p)
|
||||
images += proc.images
|
||||
|
||||
if (checkbox_iterate):
|
||||
if checkbox_iterate:
|
||||
p.seed = p.seed + (p.batch_size * p.n_iter)
|
||||
|
||||
|
||||
|
|
10
style.css
10
style.css
|
@ -260,6 +260,16 @@ input[type="range"]{
|
|||
#txt2img_negative_prompt, #img2img_negative_prompt{
|
||||
}
|
||||
|
||||
/* gradio 3.8 adds opacity to progressbar which makes it blink; disable it here */
|
||||
.transition.opacity-20 {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
/* more gradio's garbage cleanup */
|
||||
.min-h-\[4rem\] {
|
||||
min-height: unset !important;
|
||||
}
|
||||
|
||||
#txt2img_progressbar, #img2img_progressbar, #ti_progressbar{
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
|
|
Loading…
Reference in New Issue