prithivMLmods commited on
Commit
6c5581a
1 Parent(s): 9cc2bfd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +79 -1
README.md CHANGED
@@ -5,7 +5,7 @@ tags:
5
  - diffusers
6
  - template:diffusion-lora
7
  widget:
8
- - text: '-'
9
  output:
10
  url: >-
11
  images/workspace_trainsamples_781100400605468413_62188401-f296-4d6d-9f0d-6979aa4282a5.png
@@ -18,6 +18,84 @@ license: creativeml-openrail-m
18
  <Gallery />
19
 
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ## Trigger words
22
 
23
  You should use `Typography` to trigger the image generation.
 
5
  - diffusers
6
  - template:diffusion-lora
7
  widget:
8
+ - 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.'
9
  output:
10
  url: >-
11
  images/workspace_trainsamples_781100400605468413_62188401-f296-4d6d-9f0d-6979aa4282a5.png
 
18
  <Gallery />
19
 
20
 
21
+
22
+ **The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**
23
+
24
+ ## Model description
25
+
26
+ **prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII**
27
+
28
+ Image Processing Parameters
29
+
30
+ | Parameter | Value | Parameter | Value |
31
+ |---------------------------|--------|---------------------------|--------|
32
+ | LR Scheduler | constant | Noise Offset | 0.03 |
33
+ | Optimizer | AdamW | Multires Noise Discount | 0.1 |
34
+ | Network Dim | 64 | Multires Noise Iterations | 10 |
35
+ | Network Alpha | 32 | Repeat & Steps | 23 & 1K+ |
36
+ | Epoch | 15 | Save Every N Epochs | 1 |
37
+
38
+ Labeling: florence2-en(natural language & English)
39
+
40
+ Total Images Used for Training : 30+ [ Hi-RES ] & More ...............
41
+
42
+ ## Trigger prompts
43
+
44
+
45
+ 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.
46
+
47
+ 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.
48
+
49
+ 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.
50
+
51
+ | Parameter | Value |
52
+ |-----------------|---------------------------------------------------------------------------------------|
53
+ | 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. |
54
+ | Sampler | euler |
55
+
56
+ ## Setting Up
57
+ ```
58
+ import torch
59
+ from pipelines import DiffusionPipeline
60
+
61
+ base_model = "black-forest-labs/FLUX.1-dev"
62
+ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
63
+
64
+ lora_repo = "prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII"
65
+ trigger_word = "Realism" # Leave trigger_word blank if not used.
66
+ pipe.load_lora_weights(lora_repo)
67
+
68
+ device = torch.device("cuda")
69
+ pipe.to(device)
70
+ ```
71
+ ## app.py
72
+ ```
73
+ import gradio as gr
74
+
75
+ gr.load("models/prithivMLmods/Canopus-LoRA-Flux-Typography-ASCII").launch()
76
+ ```
77
+ ## pythonproject.py
78
+ ```
79
+ from fastapi import FastAPI
80
+ from fastapi.middleware.cors import CORSMiddleware
81
+ import gradio as gr
82
+
83
+ def image_generator(prompt):
84
+ pass
85
+
86
+ interface = gr.Interface(fn=image_generator, inputs="text", outputs="image")
87
+ app = FastAPI()
88
+
89
+ app.add_middleware(
90
+ CORSMiddleware,
91
+ allow_origins=["*"],
92
+ allow_credentials=True,
93
+ allow_methods=["*"],
94
+ allow_headers=["*"],
95
+ )
96
+
97
+ app = gr.mount_gradio_app(app, interface, path="/")
98
+ ```
99
  ## Trigger words
100
 
101
  You should use `Typography` to trigger the image generation.