Comments (7)
I have added .npz
to the list of excluded file types when loading a directory. I think it is safer to specify file types to exclude rather than file types to include in order not to miss any obscure image formats.
from taggui.
Haha, this is indeed a difficult choice.
On the one hand, it is impossible to determine which file types of images the user will use, and on the other hand, it is impossible to determine whether the user will put other types of files and images in the same folder.
However, because I only use jpg
and png
file, I made such modifications to the code.
from taggui.
Thank you for the suggestions. I will keep them in mind, but I will close the issue for now.
from taggui.
Are you sure TagGUI is creating the .npz
files? I haven't seen them being created when I use TagGUI.
.npz
seems to be a file format used by NumPy to save arrays (docs), but there's no code in TagGUI that calls NumPy like that.
from taggui.
The .npz
files seem to be created by kohya_ss when saving latents to disk (https://github.com/kohya-ss/sd-scripts/blob/main/library/train_util.py#L2007).
from taggui.
Yes, kohya_ss will create .npz
files if you use the save_latent_to_disk
parameter during training. But the .npz
file will not cause TagGUI to report an error, it will just appear in the ImageList together with the image (this was the case in the previous version). In response, I modified the code here from excluding json files to only accepting image type files.
From if path.suffix.lower() not in ('.json', '.jsonl')
to if path.suffix.lower() in (".png", ".jpg", ".jpeg")
.
from taggui.
Man, you guys are amazing! Wanna take over some of my other favorite repos? Anyways, I must've made the NPZs when I ran Kohya_SS and received the error relating to the text captioning file format. I apologize for writing up a bogie, fellas.
I formatted the title, rather than deleting the issue, but I can nuke it if you guys want, just lmk.
I also left the issue open, for you to decide if you want to want to attempt any PRs to address the issue. If you decide to do something about the default, even though no one uses it, you could do one of the following:
- Add an option to save files as *.caption during generation.
- Add buttons that rename all caption file extensions in the folder to whichever format, so a 'Make files TXT' button and a 'Make files *.CAPTION' perhaps.
- Add it as a setting somewhere.
Thanks for the lightning fast response, sorry my own was less so...
from taggui.
Related Issues (20)
- Im getting this issue when usign autocaption Error while downloading from https://cdn-lfs-us-1.huggingface.co/repos/32/e4 HOT 6
- Please pass the argument `trust_remote_code=True` to allow custom code to be run. HOT 3
- Feature Request: Allow us to set default model folder for all models in the settings menu. HOT 1
- Bug: Images do not use EXIF rotation directive HOT 2
- JPEG XL support HOT 1
- Model Request: Support for the new CogAgent visual language models HOT 3
- Model Request: Addition of new Lava-1.6 models HOT 10
- How can I restore default preferences? HOT 2
- Model Request: Moondream HOT 1
- Feature Request: Ban tokens/words HOT 3
- Support for .webp images HOT 2
- Feature request/bug: Autocaption crashes on illegal file types. HOT 1
- PySide6-6.6.2 error on start (python 3.11.8 on windows) HOT 3
- [Model Request] ShareGPT4V HOT 1
- [Model Request] InternLM-XComposer2-VL HOT 5
- [Model Request] Qwen-VL-Max HOT 2
- [Model Request] Qwen-VL HOT 11
- [Feature Request] Dark Mode HOT 4
- [Model Request] MoE-LLaVA-Phi2-2.7B-4e
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taggui.