CoolFace
Modelpublic

prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII

sourceHugging Facecreativeml-openrail-mupdated 2y agoView on Hugging Face
7likes67downloads
Model Card

Canopus-LoRA-Flux-Typography-ASCII

<Gallery />

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

ParameterValueParameterValue
LR SchedulerconstantNoise Offset0.03
OptimizerAdamWMultires Noise Discount0.1
Network Dim64Multires Noise Iterations10
Network Alpha32Repeat & Steps23 & 1K+
Epoch15Save Every N Epochs1

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.

ParameterValue
PromptTypography, 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.
Samplereuler

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 them in the Files & versions tab.