Skip to content

Commit 73e1cd6

Browse files
committed
Merge branch 'master' into fix/encode-pnginfo
2 parents e21fcd7 + 89722fb commit 73e1cd6

29 files changed

+1313
-489
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,15 @@ The documentation was moved from this README over to the project's [wiki](https:
155155
- Swin2SR - https://github.com/mv-lab/swin2sr
156156
- LDSR - https://github.com/Hafiidz/latent-diffusion
157157
- Ideas for optimizations - https://github.com/basujindal/stable-diffusion
158-
- Doggettx - Cross Attention layer optimization - https://github.com/Doggettx/stable-diffusion, original idea for prompt editing.
159-
- InvokeAI, lstein - Cross Attention layer optimization - https://github.com/invoke-ai/InvokeAI (originally http://github.com/lstein/stable-diffusion)
160-
- Rinon Gal - Textual Inversion - https://github.com/rinongal/textual_inversion (we're not using his code, but we are using his ideas).
158+
- Cross Attention layer optimization - Doggettx - https://github.com/Doggettx/stable-diffusion, original idea for prompt editing.
159+
- Cross Attention layer optimization - InvokeAI, lstein - https://github.com/invoke-ai/InvokeAI (originally http://github.com/lstein/stable-diffusion)
160+
- Textual Inversion - Rinon Gal - https://github.com/rinongal/textual_inversion (we're not using his code, but we are using his ideas).
161161
- Idea for SD upscale - https://github.com/jquesnelle/txt2imghd
162162
- Noise generation for outpainting mk2 - https://github.com/parlance-zz/g-diffuser-bot
163163
- CLIP interrogator idea and borrowing some code - https://github.com/pharmapsychotic/clip-interrogator
164164
- Idea for Composable Diffusion - https://github.com/energy-based-model/Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch
165165
- xformers - https://github.com/facebookresearch/xformers
166166
- DeepDanbooru - interrogator for anime diffusers https://github.com/KichangKim/DeepDanbooru
167+
- Security advice - RyotaK
167168
- Initial Gradio script - posted on 4chan by an Anonymous user. Thank you Anonymous user.
168169
- (You)

javascript/edit-attention.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
addEventListener('keydown', (event) => {
22
let target = event.originalTarget || event.composedPath()[0];
3-
if (!target.hasAttribute("placeholder")) return;
4-
if (!target.placeholder.toLowerCase().includes("prompt")) return;
3+
if (!target.matches("#toprow textarea.gr-text-input[placeholder]")) return;
54
if (! (event.metaKey || event.ctrlKey)) return;
65

76

launch.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,15 @@ def tests(argv):
238238
proc.kill()
239239

240240

241-
def start_webui():
242-
print(f"Launching Web UI with arguments: {' '.join(sys.argv[1:])}")
241+
def start():
242+
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
243243
import webui
244-
webui.webui()
244+
if '--nowebui' in sys.argv:
245+
webui.api_only()
246+
else:
247+
webui.webui()
245248

246249

247250
if __name__ == "__main__":
248251
prepare_enviroment()
249-
start_webui()
252+
start()

localizations/es_ES.json

Lines changed: 348 additions & 74 deletions
Large diffs are not rendered by default.

localizations/it_IT.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"Seed travel": "Interpolazione semi",
105105
"Shift attention": "Sposta l'attenzione",
106106
"Text to Vector Graphics": "Da testo a grafica vettoriale",
107+
"Unprompted": "Unprompted",
107108
"X/Y plot": "Grafico X/Y",
108109
"X/Y/Z plot": "Grafico X/Y/Z",
109110
"Dynamic Prompting v0.13.6": "Prompt dinamici v0.13.6",
@@ -259,6 +260,7 @@
259260
"Save results as video": "Salva i risultati come video",
260261
"Frames per second": "Fotogrammi al secondo",
261262
"Iterate seed every line": "Iterare il seme per ogni riga",
263+
"Use same random seed for all lines": "Usa lo stesso seme casuale per tutte le righe",
262264
"List of prompt inputs": "Elenco di prompt di input",
263265
"Upload prompt inputs": "Carica un file contenente i prompt di input",
264266
"n": "Esegui n volte",
@@ -294,6 +296,13 @@
294296
"Transparent PNG": "PNG trasparente",
295297
"Noise Tolerance": "Tolleranza al rumore",
296298
"Quantize": "Quantizzare",
299+
"Dry Run": "Esecuzione a vuoto (Debug)",
300+
"NEW!": "NUOVO!",
301+
"Premium Fantasy Card Template": "Premium Fantasy Card Template",
302+
"is now available.": "è ora disponibile.",
303+
"Generate a wide variety of creatures and characters in the style of a fantasy card game. Perfect for heroes, animals, monsters, and even crazy hybrids.": "Genera un'ampia varietà di creature e personaggi nello stile di un gioco di carte fantasy. Perfetto per eroi, animali, mostri e persino ibridi incredibili.",
304+
"Learn More ➜": "Per saperne di più ➜",
305+
"Purchases help fund the continued development of Unprompted. Thank you for your support!": "Gli acquisti aiutano a finanziare il continuo sviluppo di Unprompted. Grazie per il vostro sostegno!",
297306
"X type": "Parametro asse X",
298307
"Nothing": "Niente",
299308
"Var. seed": "Seme della variazione",
@@ -424,6 +433,7 @@
424433
"Sigma adjustment for finding noise for image": "Regolazione Sigma per trovare il rumore per l'immagine",
425434
"Tile size": "Dimensione piastrella",
426435
"Tile overlap": "Sovrapposizione piastrella",
436+
"New seed for each tile": "Nuovo seme per ogni piastrella",
427437
"alternate img2img imgage": "Immagine alternativa per img2img",
428438
"interpolation values": "Valori di interpolazione",
429439
"Refinement loops": "Cicli di affinamento",
@@ -455,8 +465,9 @@
455465
"Will upscale the image to twice the dimensions; use width and height sliders to set tile size": "Aumenterà l'immagine al doppio delle dimensioni; utilizzare i cursori di larghezza e altezza per impostare la dimensione della piastrella",
456466
"Upscaler": "Ampliamento immagine",
457467
"Lanczos": "Lanczos",
468+
"Nearest": "Nearest",
458469
"LDSR": "LDSR",
459-
"ESRGAN_4x": "ESRGAN_4x",
470+
"BSRGAN": "BSRGAN",
460471
"ScuNET GAN": "ScuNET GAN",
461472
"ScuNET PSNR": "ScuNET PSNR",
462473
"SwinIR 4x": "SwinIR 4x",
@@ -808,6 +819,7 @@
808819
"image_path": "Percorso immagine",
809820
"mp4_path": "Percorso MP4",
810821
"Click here after the generation to show the video": "Clicca qui dopo la generazione per mostrare il video",
822+
"NOTE: If the 'Generate' button doesn't work, go in Settings and click 'Restart Gradio and Refresh...'.": "NOTA: se il pulsante 'Genera' non funziona, vai in Impostazioni e fai clic su 'Riavvia Gradio e Aggiorna...'.",
811823
"Save Settings": "Salva le impostazioni",
812824
"Load Settings": "Carica le impostazioni",
813825
"Path relative to the webui folder." : "Percorso relativo alla cartella webui.",
@@ -922,8 +934,8 @@
922934
"Renew Page": "Aggiorna la pagina",
923935
"Number": "Numero",
924936
"set_index": "Imposta indice",
925-
"load_switch": "load_switch",
926-
"turn_page_switch": "turn_page_switch",
937+
"load_switch": "Carica",
938+
"turn_page_switch": "Volta pagina",
927939
"Checkbox": "Casella di controllo",
928940
"Checkbox Group": "Seleziona immagini per",
929941
"artists": "Artisti",
@@ -956,6 +968,8 @@
956968
"Save text information about generation parameters as chunks to png files": "Salva le informazioni di testo dei parametri di generazione come blocchi nel file png",
957969
"Create a text file next to every image with generation parameters.": "Crea un file di testo assieme a ogni immagine con i parametri di generazione.",
958970
"Save a copy of image before doing face restoration.": "Salva una copia dell'immagine prima di eseguire il restauro dei volti.",
971+
"Save a copy of image before applying highres fix.": "Salva una copia dell'immagine prima di applicare la correzione ad alta risoluzione.",
972+
"Save a copy of image before applying color correction to img2img results": "Salva una copia dell'immagine prima di applicare la correzione del colore ai risultati di img2img",
959973
"Quality for saved jpeg images": "Qualità delle immagini salvate in formato JPEG",
960974
"If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG": "Se l'immagine PNG è più grande di 4 MB o qualsiasi dimensione è maggiore di 4000, ridimensiona e salva la copia come JPG",
961975
"Use original name for output filename during batch process in extras tab": "Usa il nome originale per il nome del file di output durante l'elaborazione a lotti nella scheda 'Extra'",
@@ -997,12 +1011,14 @@
9971011
"Filename join string": "Stringa per unire le parole estratte dal nome del file",
9981012
"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",
9991013
"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",
1014+
"Use cross attention optimizations while training": "Usa le ottimizzazioni di controllo dell'attenzione incrociato durante l'allenamento",
10001015
"Stable Diffusion": "Stable Diffusion",
10011016
"Checkpoints to cache in RAM": "Checkpoint da memorizzare nella RAM",
1017+
"SD VAE": "SD VAE",
1018+
"auto": "auto",
10021019
"Hypernetwork strength": "Forza della Iperrete",
10031020
"Inpainting conditioning mask strength": "Forza della maschera di condizionamento del Inpainting",
10041021
"Apply color correction to img2img results to match original colors.": "Applica la correzione del colore ai risultati di img2img in modo che corrispondano ai colori originali.",
1005-
"Save a copy of image before applying color correction to img2img results": "Salva una copia dell'immagine prima di applicare la correzione del colore ai risultati di img2img",
10061022
"With img2img, do exactly the amount of steps the slider specifies (normally you'd do less with less denoising).": "Con img2img, esegue esattamente la quantità di passi specificata dalla barra di scorrimento (normalmente se ne effettuano di meno con meno riduzione del rumore).",
10071023
"Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds. Requires restart to apply.": "Abilita la quantizzazione nei campionatori K per risultati più nitidi e puliti. Questo può cambiare i semi esistenti. Richiede il riavvio per applicare la modifica.",
10081024
"Emphasis: use (text) to make model pay more attention to text and [text] to make it pay less attention": "Enfasi: utilizzare (testo) per fare in modo che il modello presti maggiore attenzione al testo e [testo] per fargli prestare meno attenzione",
@@ -1194,8 +1210,8 @@
11941210
"Hue:0": "Hue:0",
11951211
"S:0": "S:0",
11961212
"L:0": "L:0",
1197-
"Load Canvas": "Carica Tela",
1198-
"saveCanvas": "Salva Tela",
1213+
"Load Canvas": "Carica Canvas",
1214+
"Save Canvas": "Salva Canvas",
11991215
"latest": "aggiornato",
12001216
"behind": "da aggiornare",
12011217
"Description": "Descrizione",

localizations/ko_KR.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"Add model hash to generation information": "생성 정보에 모델 해시 추가",
2525
"Add model name to generation information": "생성 정보에 모델 이름 추가",
2626
"Add number to filename when saving": "이미지를 저장할 때 파일명에 숫자 추가하기",
27+
"Adds a tab to the webui that allows the user to automatically extract keyframes from video, and manually extract 512x512 crops of those frames for use in model training.": "WebUI에 비디오로부터 자동으로 키프레임을 추출하고, 그 키프레임으로부터 모델 훈련에 사용될 512x512 이미지를 잘라낼 수 있는 탭을 추가합니다.",
2728
"Aesthetic Gradients": "스타일 그라디언트",
2829
"Aesthetic Image Scorer": "스타일 이미지 스코어러",
2930
"Aesthetic imgs embedding": "스타일 이미지 임베딩",
@@ -260,6 +261,7 @@
260261
"Keep -1 for seeds": "시드값 -1로 유지",
261262
"keep whatever was there originally": "이미지 원본 유지",
262263
"keyword": "프롬프트",
264+
"Krita Plugin.": "Kirta 플러그인입니다.",
263265
"Label": "라벨",
264266
"Lanczos": "Lanczos",
265267
"Last prompt:": "마지막 프롬프트 : ",
@@ -441,8 +443,8 @@
441443
"See": "자세한 설명은",
442444
"Seed": "시드",
443445
"Seed of a different picture to be mixed into the generation.": "결과물에 섞일 다른 그림의 시드",
444-
"Select activation function of hypernetwork": "하이퍼네트워크 활성화 함수 선택",
445-
"Select Layer weights initialization. relu-like - Kaiming, sigmoid-like - Xavier is recommended": "레이어 가중치 초기화 방식 선택 - relu류 : Kaiming 추천, sigmoid류 : Xavier 추천",
446+
"Select activation function of hypernetwork. Recommended : Swish / Linear(none)": "하이퍼네트워크 활성화 함수 선택 - 추천 : Swish / Linear(None)",
447+
"Select Layer weights initialization. Recommended: Kaiming for relu-like, Xavier for sigmoid-like, Normal otherwise": "레이어 가중치 초기화 방식 선택 - relu류 : Kaiming 추천, sigmoid류 : Xavier 추천, 그 외 : Normal",
446448
"Select which Real-ESRGAN models to show in the web UI. (Requires restart)": "WebUI에 표시할 Real-ESRGAN 모델을 선택하십시오. (재시작 필요)",
447449
"Send seed when sending prompt or image to other interface": "다른 화면으로 프롬프트나 이미지를 보낼 때 시드도 함께 보내기",
448450
"Send to extras": "부가기능으로 전송",
@@ -458,7 +460,7 @@
458460
"should be 2 or lower.": "이 2 이하여야 합니다.",
459461
"Show generation progress in window title.": "창 타이틀에 생성 진행도 보여주기",
460462
"Show grid in results for web": "웹에서 결과창에 그리드 보여주기",
461-
"Show image creation progress every N sampling steps. Set 0 to disable.": "N번째 샘플링 스텝마다 이미지 생성 과정 보이기 - 비활성화하려면 0으로 설정",
463+
"Show image creation progress every N sampling steps. Set to 0 to disable. Set to -1 to show after completion of batch.": "N번째 샘플링 스텝마다 이미지 생성 과정 보이기 - 비활성화하려면 0으로 설정, 배치 생성 완료시 보이려면 -1로 설정",
462464
"Show images zoomed in by default in full page image viewer": "전체 페이지 이미지 뷰어에서 기본값으로 이미지 확대해서 보여주기",
463465
"Show previews of all images generated in a batch as a grid": "배치에서 생성된 모든 이미지의 미리보기를 그리드 형식으로 보여주기",
464466
"Show progressbar": "프로그레스 바 보이기",
@@ -520,6 +522,7 @@
520522
"Train Embedding": "임베딩 훈련",
521523
"Train Hypernetwork": "하이퍼네트워크 훈련",
522524
"Training": "훈련",
525+
"training-picker": "훈련용 선택기",
523526
"txt2img": "텍스트→이미지",
524527
"txt2img history": "텍스트→이미지 기록",
525528
"uniform": "uniform",

localizations/pt_BR.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Checkpoint Merger": "Fusão de Checkpoint",
1818
"Train": "Treinar",
1919
"Settings": "Configurações",
20-
"Extensions": "Extensions",
20+
"Extensions": "Extensões",
2121
"Prompt": "Prompt",
2222
"Negative prompt": "Prompt negativo",
2323
"Run": "Executar",
@@ -57,7 +57,7 @@
5757
"Highres. fix": "Ajuste de alta resolução",
5858
"Firstpass width": "Primeira Passagem da largura",
5959
"Firstpass height": "Primeira Passagem da altura",
60-
"Denoising strength": "Denoising strength",
60+
"Denoising strength": "Força do denoise",
6161
"Batch count": "Quantidade por lote",
6262
"Batch size": "Quantidade de lotes",
6363
"CFG Scale": "Escala CFG",
@@ -480,6 +480,6 @@
480480
"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.",
481481
"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.",
482482
"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.",
483-
"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."
483+
"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.",
484484
"Leave empty for auto": "Deixar desmarcado para automático"
485485
}

0 commit comments

Comments
 (0)