Promptvision
Brand new rewrite. Now using CustomTkinter for native GUI via python.
Primarily useful for viewing generations (generated images) either in realtime as they are created or when you are cataloguing them (supports auto detect of new images in the folder you're viewing)
Shows metadata from forge / automatic1111 natively (I am using forge)
This means it will support other platforms that use the same way to store metadata
Has navigation shortcuts
D and A for moving next/previous images
F for marking an image as favorite
The viewer will store a
favorites.json
in each folder you open with the viewer so that you can have different favorites depending on what you're browsing.
Settings are stored in the same place as where you open the program
viewer_settings.json
Contains information about your last opened directory, last position (you can resume browsing in the same folder if you close it), export directory (where you want to save favorites to) and auto update toggle (if you want to detect new images in the folder)
Gallery view of all images in the folder
You can press on an image to view that in the image viewer
Note that when opening gallery view it will take a little while to load in most use cases. I've tried quite a few methods to improve the performance, but it is what it is. If you have auto update images on it might flicker a bit, especially if you're viewing the last gallery page which is being updated with new generations as you're viewing. Turn off auto update setting to reduce flickering.
VirusTotal analysis of the program: https://www.virustotal.com/gui/file/617b644d673c84c1ccdc9c2287804102eba0e03b4ec9ca94f646b2175bbf62ff/detection
There are 3 false positives. It seems that it's not completely possible to generate executables from python without these if not using a certificate.
Build command:pyinstaller --name=Promptvision --windowed --onefile --add-data="assets/*:assets" --add-data="views/*:views" --hidden-import=PIL._tkinter_finder promptvision.py --clean --icon=assets/pvlogo.png
Description
Changed to using requests, this means that /img/123 isn't possible anymore
Done to support more operating systems with pathing (tested on Mac and Windows)
Now it looks like http://localhost:8000/img?image_name=/path/to/img.png when you are browsing
You can now use the full filepath to browse a specific image (that are inside the folder you have selected):
E.g. "G:\Images Generated SD\10-02 nightrun\02514-1081065477.png" will be possible to do http://localhost:8000/img?image_name=G:\Images Generated SD\10-02 nightrun\02514-1081065477.png
Just use http://localhost:8000 and you will get a random image then you can use previous/next and the thumbnails to browse
If you have issues you should try to delete the folder inside the metadata folder for the folder you are trying to browse
If I am using
python gallery.py --imagedir "G:\Images Generated SD\10-02 nightrun"
that means I have to remove the folder"10-02 nightrun"
from inside the"metadata"
folder