Skip to content

Commit 9a5ab7d

Browse files
committed
Add unused parameters, change version and ci/cd [ci]
1 parent 9a5a579 commit 9a5ab7d

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.github/workflows/actions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
if: "contains(github.event.commits[0].message, '[ci/cd]')"
14+
if: "contains(github.event.commits[0].message, '[ci]')"
1515
strategy:
1616
matrix:
1717
include:
@@ -44,7 +44,7 @@ jobs:
4444
path: target/release/${{ matrix.file }}
4545

4646
publish:
47-
if: "contains(github.event.commits[0].message, '[ci/cd]')"
47+
if: "contains(github.event.commits[0].message, '[cd]')"
4848
runs-on: ubuntu-latest
4949
needs: [build]
5050
steps:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
- [ ] [Add signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)
33
- [ ] Rename files in CI/CD publish
44
- [ ] [Cache APT packages for Linux CI/CD](https://github.com/marketplace/actions/cache-apt-packages)
5+
- [ ] Fix directory adding duplicates
56

67
Readme soon

src/core/params.rs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Params{
2424
pub forge_couple: bool,
2525

2626
pub cfg_scale: String,
27-
pub seed: String,
27+
pub seed: String
2828
}
2929
impl fmt::Display for Params {
3030
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@@ -41,11 +41,25 @@ impl fmt::Display for Params {
4141
};
4242
params.push_str(&format!(
4343
"- 👣: {}; 🖌️: {}; 📏: {}\n\
44-
- 🎨: {}: <{}>",
44+
- ⚖️: {}; 🌱: {}\n",
4545
self.steps, self.sampler, self.size,
46-
self.model, self.model_hash
46+
self.cfg_scale, self.seed
4747
));
4848

49+
let mut additional = Vec::new();
50+
if self.a_detailer{additional.push("🔎: ✅");}
51+
if self.hi_res{additional.push("✨: ✅");}
52+
if self.forge_couple{additional.push("🫂: ✅");}
53+
if !additional.is_empty(){
54+
params.push_str(&format!(
55+
"- {}\n",
56+
additional.join("; ")
57+
));
58+
}
59+
60+
params.push_str(&format!(
61+
"- 🎨: {}: [{}]", self.model, self.model_hash
62+
));
4963
if !self.model_url.is_empty(){
5064
params.push_str(&format!(
5165
"; 🎨🔗: {}",
@@ -55,7 +69,7 @@ impl fmt::Display for Params {
5569

5670
if !self.vae.is_empty(){
5771
let mut res_vae = format!(
58-
"\n- 🔤: {}: <{}>",
72+
"\n- 🔤: {}: [{}]",
5973
self.vae, self.vae_hash
6074
);
6175
if !self.vae_url.is_empty(){
@@ -70,7 +84,7 @@ impl fmt::Display for Params {
7084
let mut loras = Vec::new();
7185
for lora in &self.loras{
7286
let mut res_lora = format!(
73-
"- 📖: {}: <{}>",
87+
"- 📖: {}: [{}]",
7488
lora.0, lora.1
7589
);
7690
if !lora.2.is_empty(){

0 commit comments

Comments
 (0)