A PowerShell script that uses Ollama and LM Studio models (Llava, Gemma, Llama etc.) to rename files by their contents intelligently This set of scripts was created as I had a dislike for the 20k images I have that were just named DCS00001 DCS00002 DCS00003 and so on. After running this I now have 2006-02-13_00-29-44_People_Nightclub_Laughing_RedDrink_020.jpg 2010-06-30_13-40-56_airfield_planes_cloudy_Photo_0014.jpg
You need to have Ollama and at least one LLM (Llava, Gemma, Llama etc.) installed on your system.
Ollama is the default provider so you don't have to do anything other than setup ollama and 2 models totalling 10GB.
- Install Ollama
- Setup the models by opening the command prompt and running the following commands
ollama run llama3.2-vision
ollama run gemma2
- Open a PowerShell command promt and navigate to the root of your images (Always do a test run on some images you have copied)
- Run Run_BatchProcessing.ps1
Currently, all config values you can find in Config.ps1.
Feel free to contribute. Open a new issue, or make a pull request.