--- tags: - text-to-image - lora - diffusers - template:diffusion-lora widget: - text: 'Typography, ASCII Art : A black and white monochrome photograph of a mans face. The man head is covered in words, including "Portrait by Ralph Ueltzhoeffer" in the lower right corner of the frame. The background of the photograph is black, creating a stark contrast with the man silhouette. The text is written in a crayon type type, adding a touch of depth to the image.' output: url: >- images/workspace_trainsamples_781100400605468413_62188401-f296-4d6d-9f0d-6979aa4282a5.png base_model: black-forest-labs/FLUX.1-dev instance_prompt: Typography, ASCII Art license: creativeml-openrail-m --- # Canopus-LoRA-Flux-Typography-ASCII **The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.** ## Model description **prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII** Image Processing Parameters | Parameter | Value | Parameter | Value | |---------------------------|--------|---------------------------|--------| | LR Scheduler | constant | Noise Offset | 0.03 | | Optimizer | AdamW | Multires Noise Discount | 0.1 | | Network Dim | 64 | Multires Noise Iterations | 10 | | Network Alpha | 32 | Repeat & Steps | 23 & 1K+ | | Epoch | 15 | Save Every N Epochs | 1 | Labeling: wd-v1-4-vit-tagger-v2 Total Images Used for Training : 30+ [ Hi-RES ] & More ............... ## Trigger prompts Typography, ASCII Art : A black and white monochrome photograph of a man's face. The man's head is covered in words, including "Portrait by Ralph Ueltzhoeffer" in the lower right corner of the frame. The background of the photograph is black, creating a stark contrast with the man's silhouette. The text is written in a crayon type type, adding a touch of depth to the image. Typography, ASCII Art: A grayscale, monochrome portrait of a woman’s face. The face is constructed entirely from delicate, hand-drawn lines of text. Phrases like "Echoes of Silence" appear throughout the image, with the text written in a rough, handwritten font style. The woman's expression is serene, while the background remains pitch black to amplify the contrast between the text and the face. The words fade in and out of her silhouette, blending seamlessly with the contours of her features, creating an almost ethereal, abstract effect. Typography, ASCII Art: A black-and-white monochrome image of a man in profile, with his face outlined by intricately layered words. The words "Time Stands Still" and "Art by David Carson" are woven into the contours of his features. The text is styled in a distressed, stencil-like typeface, giving the piece a raw, edgy feel. The background is entirely black, making the white text stand out, with some words blending softly into the edges of the man's silhouette, creating a haunting, dreamlike effect. The typography adds texture, merging with the photograph to form a striking visual portrait. | Parameter | Value | |-----------------|---------------------------------------------------------------------------------------| | Prompt | Typography, ASCII Art : A black and white monochrome photograph of a man's face. The man's head is covered in words, including "Portrait by Ralph Ueltzhoeffer" in the lower right corner of the frame. The background of the photograph is black, creating a stark contrast with the man's silhouette. The text is written in a crayon type type, adding a touch of depth to the image. | | Sampler | euler | ## Setting Up ``` import torch from pipelines import DiffusionPipeline base_model = "black-forest-labs/FLUX.1-dev" pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16) lora_repo = "prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII" trigger_word = "Realism" # Leave trigger_word blank if not used. pipe.load_lora_weights(lora_repo) device = torch.device("cuda") pipe.to(device) ``` ## app.py ``` import gradio as gr gr.load("models/prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII").launch() ``` ## pythonproject.py ``` from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware import gradio as gr def image_generator(prompt): pass interface = gr.Interface(fn=image_generator, inputs="text", outputs="image") app = FastAPI() app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) app = gr.mount_gradio_app(app, interface, path="/") ``` ## Trigger words You should use `Typography` to trigger the image generation. You should use `ASCII Art` to trigger the image generation. ## Download model Weights for this model are available in Safetensors format. [Download](/prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII/tree/main) them in the Files & versions tab.