0806
Browse files- samples/unet_320x576_0.jpg +2 -2
- samples/unet_384x576_0.jpg +2 -2
- samples/unet_448x576_0.jpg +2 -2
- samples/unet_512x576_0.jpg +2 -2
- samples/unet_576x320_0.jpg +2 -2
- samples/unet_576x384_0.jpg +2 -2
- samples/unet_576x448_0.jpg +2 -2
- samples/unet_576x512_0.jpg +2 -2
- samples/unet_576x576_0.jpg +2 -2
- src/caption.py +2 -2
- unet/diffusion_pytorch_model.safetensors +1 -1
samples/unet_320x576_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_384x576_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_448x576_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_512x576_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_576x320_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_576x384_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_576x448_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_576x512_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
samples/unet_576x576_0.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/caption.py
CHANGED
@@ -184,7 +184,7 @@ def main(opts: ScriptOptions):
|
|
184 |
)
|
185 |
|
186 |
clean_name = image_path.stem
|
187 |
-
clean_name = '
|
188 |
|
189 |
tags_filename = str(image_path.with_suffix('.tag'))
|
190 |
text_filename = str(image_path.with_suffix('.txt'))
|
@@ -192,7 +192,7 @@ def main(opts: ScriptOptions):
|
|
192 |
with open(tags_filename, 'w') as file_tag:
|
193 |
file_tag.write(f"{caption}")
|
194 |
with open(text_filename, 'w') as file_txt:
|
195 |
-
file_txt.write(f"{mdream_capt} {caption} {clean_name}")
|
196 |
|
197 |
except (OSError, UnidentifiedImageError) as e:
|
198 |
print(f"Error processing {image_path}: {str(e)}")
|
|
|
184 |
)
|
185 |
|
186 |
clean_name = image_path.stem
|
187 |
+
clean_name = ' '.join(word for word in clean_name.split() if not word.startswith(('1', '2', '3', '4', '5', '6', '7', '8', '9', '0')))
|
188 |
|
189 |
tags_filename = str(image_path.with_suffix('.tag'))
|
190 |
text_filename = str(image_path.with_suffix('.txt'))
|
|
|
192 |
with open(tags_filename, 'w') as file_tag:
|
193 |
file_tag.write(f"{caption}")
|
194 |
with open(text_filename, 'w') as file_txt:
|
195 |
+
file_txt.write(f"{mdream_capt} {caption}. {clean_name}")
|
196 |
|
197 |
except (OSError, UnidentifiedImageError) as e:
|
198 |
print(f"Error processing {image_path}: {str(e)}")
|
unet/diffusion_pytorch_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7014306128
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea112ddf49eb35b24ad1e0be25a3867bdb68a2c8044ebd5954e14e395640ec36
|
3 |
size 7014306128
|