From ac239a462daee811c15ad53ab4db24a0666fd9f3 Mon Sep 17 00:00:00 2001 From: Xander Steenbrugge Date: Mon, 15 Apr 2024 13:02:46 +0200 Subject: [PATCH 1/6] remove space typo --- logos/creation_interfaces/kojii_chebel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos/creation_interfaces/kojii_chebel.py b/logos/creation_interfaces/kojii_chebel.py index 9b9eb11..4e7d476 100644 --- a/logos/creation_interfaces/kojii_chebel.py +++ b/logos/creation_interfaces/kojii_chebel.py @@ -42,7 +42,7 @@ def kojii_chebel(request: KojiiChebelRequest, callback=None): negative_prompt = "colorful, yellow, blue, watermark, text, tiling, out of frame, blurry, blurred, grainy, signature, cut off, draft" else: prompt = "oil painting, black and white, woman, dance, expressive brushstrokes, charcoal drawing" - negative_prompt = "color, colors, red, pink, purple, green, orange, yellow, blue, colorful, watermark, text, tiling, out of frame, blurry, blurred, grainy, signature, cut off, draft" + negative_prompt = "color, colors, red, pink, purple, green, orange, yellow, blue, colorful, watermark, text, tiling, out of frame, blurry, blurred, grainy, signature, cut off, draft" # Hardcoded to 1024x1024 as per Chebel's request (aspect ratio of init_img will still get adopted) w, h = 1024, 1024 From be2651dfc54171a0358feac1332a5222871fec58 Mon Sep 17 00:00:00 2001 From: Xander Steenbrugge Date: Mon, 15 Apr 2024 19:04:48 +0200 Subject: [PATCH 2/6] cap lora_scale value between 0 and 1 --- logos/creation_interfaces/kojii_chebel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos/creation_interfaces/kojii_chebel.py b/logos/creation_interfaces/kojii_chebel.py index 4e7d476..096cead 100644 --- a/logos/creation_interfaces/kojii_chebel.py +++ b/logos/creation_interfaces/kojii_chebel.py @@ -34,7 +34,7 @@ class KojiiChebelRequest(BaseModel): def kojii_chebel(request: KojiiChebelRequest, callback=None): - lora_scale = 0.44 + 0.52 * request.abstract + lora_scale = max(0.0, min(1.0, 0.44 + 0.52 * request.abstract)) seed = request.seed if request.seed else random.randint(0, 1000000) if request.color == ColorType.color: From 07f3c517e4131f3ab6ecfc2a0afe1bc520c81c03 Mon Sep 17 00:00:00 2001 From: Xander Steenbrugge Date: Wed, 17 Apr 2024 13:39:01 +0200 Subject: [PATCH 3/6] fix missing lora and re-introduce uc_text --- logos/creation_interfaces/kojii_untitledxyz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/logos/creation_interfaces/kojii_untitledxyz.py b/logos/creation_interfaces/kojii_untitledxyz.py index 7330871..0b836f3 100644 --- a/logos/creation_interfaces/kojii_untitledxyz.py +++ b/logos/creation_interfaces/kojii_untitledxyz.py @@ -121,7 +121,9 @@ def kojii_untitledxyz(request: KojiiUntitledxyzRequest, callback=None): "text_inputs_to_interpolate_weights": "|".join( [str(t) for t in text_inputs_to_interpolate_weights], ), - "lora_scale": 0.8, + "lora": "https://edenartlab-prod-data.s3.us-east-1.amazonaws.com/d2e6d1f8ccfca428ba42fa56a0384a4261d32bf1ee8b0dc952d99da9011daf39.tar", + "lora_scale": 0.8, + "uc_text": "person, car, sky, clouds, city, urban, people", "seed": seed, "guidance_scale": 8.0, } From 9558443bf427a82ab9a212ad1227b4cf136782a5 Mon Sep 17 00:00:00 2001 From: Xander Steenbrugge Date: Wed, 17 Apr 2024 13:41:49 +0200 Subject: [PATCH 4/6] udpate negative prompt --- logos/creation_interfaces/kojii_untitledxyz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos/creation_interfaces/kojii_untitledxyz.py b/logos/creation_interfaces/kojii_untitledxyz.py index 0b836f3..07f9123 100644 --- a/logos/creation_interfaces/kojii_untitledxyz.py +++ b/logos/creation_interfaces/kojii_untitledxyz.py @@ -123,7 +123,7 @@ def kojii_untitledxyz(request: KojiiUntitledxyzRequest, callback=None): ), "lora": "https://edenartlab-prod-data.s3.us-east-1.amazonaws.com/d2e6d1f8ccfca428ba42fa56a0384a4261d32bf1ee8b0dc952d99da9011daf39.tar", "lora_scale": 0.8, - "uc_text": "person, car, sky, clouds, city, urban, people", + "uc_text": "watermark, text, nude, naked, nsfw, poorly drawn face, ugly, tiling, out of frame, blurry, blurred, grainy, signature, cut off, draft, person, car, sky, clouds, city", "seed": seed, "guidance_scale": 8.0, } From 4b00975468895f762bbb0e261f753c7d640f63f6 Mon Sep 17 00:00:00 2001 From: Gene Kogan Date: Wed, 24 Apr 2024 10:04:26 -0400 Subject: [PATCH 5/6] dummy commit --- logos/plugins/replicate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos/plugins/replicate.py b/logos/plugins/replicate.py index fc088b8..a30105f 100644 --- a/logos/plugins/replicate.py +++ b/logos/plugins/replicate.py @@ -152,7 +152,7 @@ def audiocraft( "text_input": prompt, "duration_seconds": seconds, } - + print(config) output = run_task(config, model_name="edenartlab/audiocraft") output = list(output) From 36de4bd66712eccfcc029a76ceca1b24490f3226 Mon Sep 17 00:00:00 2001 From: Gene Kogan Date: Fri, 3 May 2024 09:53:45 -0700 Subject: [PATCH 6/6] fix --- logos/creation_interfaces/kojii_violetforest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logos/creation_interfaces/kojii_violetforest.py b/logos/creation_interfaces/kojii_violetforest.py index e8a8988..a91ab52 100644 --- a/logos/creation_interfaces/kojii_violetforest.py +++ b/logos/creation_interfaces/kojii_violetforest.py @@ -28,7 +28,7 @@ class KojiiVioletforestRequest(BaseModel): seed: Optional[int] = Field(default=None, description="Random seed") -def kojii_violetforest(request: KojiiVioletforestRequest, callback=None): +def kojii_violetforest2(request: KojiiVioletforestRequest, callback=None): import requests from ..creation_interfaces import KojiiVioletforestRequest @@ -44,7 +44,7 @@ def kojii_violetforest(request: KojiiVioletforestRequest, callback=None): f.write(requests.get(image_url).content) -def kojii_violetforest1(request: KojiiVioletforestRequest, callback=None): +def kojii_violetforest(request: KojiiVioletforestRequest, callback=None): seed = request.seed if request.seed else random.randint(0, 1000000) if request.style == Style.Kawaii: @@ -73,8 +73,8 @@ def kojii_violetforest1(request: KojiiVioletforestRequest, callback=None): "text_inputs_to_interpolate_weights": " | ".join( [str(t) for t in text_inputs_to_interpolate_weights], ), - # "lora": "https://edenartlab-prod-data.s3.us-east-1.amazonaws.com/e3b036c0a9949de0a5433cb6c7e54b540c47535ce7ae252948177304542ca4da.tar", - # "lora_scale": 0.7, + "lora": "https://edenartlab-prod-data.s3.us-east-1.amazonaws.com/e3b036c0a9949de0a5433cb6c7e54b540c47535ce7ae252948177304542ca4da.tar", + "lora_scale": 0.7, "seed": seed, } print("CONFIG")