ajsbsd commited on
Commit
93f4543
Β·
verified Β·
1 Parent(s): 7752c98

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -3
README.md CHANGED
@@ -1,3 +1,74 @@
1
- ---
2
- license: creativeml-openrail-m
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ ---
4
+ πŸ”— Links
5
+ Civitai Model Page
6
+ 🚫 Limitations
7
+ May produce content that could be considered sensitive; use responsibly.
8
+ Some prompts involving abstract or non-pony content may not perform as well due to the model's specialized training.
9
+ Lighting and textures may occasionally be too clean or smooth depending on sampling choices.
10
+ βœ… License
11
+ This model is distributed under the CreativeML Open RAIL++-M License, which allows commercial and non-commercial use, with proper credit and no malicious usage.
12
+
13
+ License details
14
+
15
+ Exactly! Embedding metadata in PNGs is a fantastic way to demonstrate transparency and reproducibility in AI image generation. It shows:
16
+
17
+ **πŸ” Transparency**: Users can see exactly what parameters were used - no "black box" mystery about how an image was created.
18
+
19
+ **πŸ”„ Reproducibility**: Anyone can extract the seed, prompt, and settings to recreate similar results or iterate on the concept.
20
+
21
+ **πŸ“š Learning Tool**: People can examine successful generations to understand what prompts, settings, and techniques work well.
22
+
23
+ **πŸ› οΈ Workflow Integration**: Other tools and scripts can read the metadata to automatically import settings or build generation pipelines.
24
+
25
+ **πŸ“‹ Documentation**: The embedded data serves as permanent documentation that travels with the image file itself.
26
+
27
+ It's a great practice that builds trust and enables the community to learn from each other's work. Plus, it's especially valuable for AI art where the creative process involves so many technical parameters that affect the final result.
28
+
29
+ The fact that the metadata persists in the PNG file means users can share images and others can immediately see "how it was made" - much more useful than trying to guess or reverse-engineer the settings!
30
+
31
+ Looking at your code, I'll integrate the metadata saving functionality and add the requested features. Here's the updated version with PNG metadata, seed slider, example prompts, and enhanced status display:Here are the key changes I've integrated into your CyberRealistic Pony Generator:
32
+
33
+ ## πŸ†• New Features Added:
34
+
35
+ ### 1. **PNG Metadata Embedding**
36
+ - Added `add_metadata_and_save()` function that embeds all generation parameters into PNG files
37
+ - Includes: prompt, negative prompt, model, VAE, sampler, steps, CFG scale, strength, seed, and timestamp
38
+ - Images are saved with metadata before being returned
39
+
40
+ ### 2. **Enhanced Status Display**
41
+ - `format_status_with_metadata()` creates detailed status messages showing:
42
+ - Generation time and dimensions
43
+ - Used prompt (truncated if long)
44
+ - Negative prompt
45
+ - Seed, steps, CFG scale
46
+ - Strength (for img2img)
47
+ - Status window now shows 6 lines of detailed info
48
+
49
+ ### 3. **Seed Slider**
50
+ - Replaced the number input with proper sliders for both tabs
51
+ - Range: -1 to 2,147,483,647 (max int32)
52
+ - -1 generates random seeds automatically
53
+ - Seeds are properly handled and displayed in status
54
+
55
+ ### 4. **Example Prompts System**
56
+ - Added 8 diverse example prompts covering different styles
57
+ - "🎲 Random Example" buttons on both tabs
58
+ - Prompts include anime, cyberpunk, fantasy, anthropomorphic, and more themes
59
+
60
+ ### 5. **Improved UI Layout**
61
+ - Better organized prompt input with example buttons
62
+ - Enhanced accordion sections
63
+ - More detailed status display areas
64
+ - Professional icons and formatting
65
+
66
+ ## πŸ”§ Technical Improvements:
67
+
68
+ - **Random Seed Generation**: Proper random seed handling when -1 is selected
69
+ - **Metadata Persistence**: All generation parameters saved to PNG metadata
70
+ - **Status Formatting**: Rich, multi-line status information
71
+ - **Error Handling**: Better error messages and fallbacks
72
+ - **Memory Management**: Same efficient GPU memory handling
73
+
74
+ The generated images now contain all the metadata you specified, and users can see detailed generation information in the status window, making it easy to reproduce or modify generations.