How marl1/picturesautonamer works
Main Components
a) Frontend Layer:
• Java FX GUI application (evident from .fxml files and controllers)
• Main interface for folder selection and progress display
• About screen
b) Processing Layer:
• Image processing component (handling resize operations)
• File management system (handling file operations and renaming)
• Image format support system (jpg, png, bmp, webp)
c) LLaVA Integration Layer:
• Local LLama.cpp server
• Server communication component
• Query/Response handling system
d) Model Layer:
• LLaVA models storage
• Model loading and management
[User Interface Layer]
• ↓↑
[Processing Layer]
• ↓↑
[LLaVA Integration Layer]
• ↓↑
[Model Layer]
Detailed Component Breakdown
User Interface Layer:
• Connection to layouts (main.fxml, about.fxml)
• CSS styling connection
Processing Layer:
• FilesProcesser and FilesRenamer components
• ImageFileTypes handler
• Image processing library connections (imgscalr, TwelveMonkeys)
LLaVA Integration Layer:
• ServerLauncher and ServerQuerier components
• QueryBody and ResponseBody handlers
• Connection to local LLama.cpp server
Model Layer:
• Model files (mmproj-model-f16.gguf, ggml-model-q5_k.gguf)
• Model loading and management components
Data Flow Representation
• User input → File selection → Image processing
• Processed image → LLaVA server → Response
• Response → Name generation → File renaming
Technical Details
• Java/JavaFX framework
• External libraries (imgscalr, TwelveMonkeys)
• LLama.cpp integration
• File system interactions
• Model specifications