img-txt_viewer is a Windows application for side-by-side image and text viewing, designed to streamline manual captioning or tagging of images. The toolset specifically targets LoRA dataset preparation.
- π Usage
- π‘ Features
- π οΈ Install
- π Privacy Policy
- π Version History
- β¨ User Guide
- πΎ Download
-
β Do this: Ensure image-text pairs share the same basename.
- Example:
01.png, 01.txt
,02.jpg, 02.txt
, etc.
- Example:
-
β Don't do this: Avoid different filetypes with the same basename.
- Example:
01.png, 01.txt
,01.jpg, 01.txt
(causes text file collision).
- Example:
Supported formats:
.png
, .jpg
, .jpeg
, .jfif
, .jpg_large
, .webp
, .bmp
, .gif
, .mp4
Images and text files can be loaded from different folders.
Click to expand...
By default, text files are loaded from the selected directory. To load text files from a different path:
- Select a directory as usual.
- Right-click the
Browse...
button and choose Set Text File Path. - When an alternate path is chosen, a blue indicator appears to the left of the directory entry. Hover over the indicator to view the selected text path.
Example folder structures:
.
βββ dataset/
βββ 01.png
βββ 01.txt
βββ 02.jpg
βββ 02.txt
.
βββ dataset/
βββ images/
β βββ 01.png
β βββ 02.jpg
βββ captions/
βββ 01.txt
βββ 02.txt
For details, see the User Guide β¨ or use the links below.
- ALT+LEFT/RIGHT β Navigate image-text pairs
- SHIFT+DEL β Move pair to trash
- ALT β Cycle autocomplete suggestions
- TAB β Insert highlighted suggestion
- CTRL+S β Save text file
- CTRL+E β Next empty text file
- CTRL+R β Random image-text pair
- CTRL+F β Find and Replace
- CTRL+Z / CTRL+Y β Undo / Redo
- CTRL+W β Close app
- F1 β Toggle image grid
- F2 β Toggle zoom popup
- F4 β Open in image editor
- Middle-click β Delete tag
- File Menu
- Edit Menu
- Tools Menu
- Options Menu
- About Menu
- Toggle Image Grid
- Toggle Zoom
- Toggle Thumbnail Panel
- Toggle Edit Panel
- Always On Top
- Big Save Button
- UI: Vertical View
- UI: Swap img-txt Sides
- Download the Windows executable from the releases page.
- Run the executable to launch the app.
- Download the source code package from the latest releases page.
- Run the
Start.bat
file to automatically create and activate a virtual environment, then launch the app. - Use
Start.bat
to launch the app in the future.
Manual Python Setup...
-
Clone the repository:
git clone https://github.com/Nenotriple/img-txt_viewer.git
-
Navigate into the project directory:
cd img-txt_viewer/img-txt_viewer
-
Create and activate a virtual environment:
python -m venv venv venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Launch the app:
python app.py
img-txt Viewer is completely private.
- The app operates entirely on your device; your data remains under your control.
- No data is collected, transmitted, or stored except for a basic local config file for app settings.
- The app functions 100% offline and never connects to external servers. No data is ever shared or sent elsewhere.