Giter Club home page Giter Club logo

ozgrozer / ai-renamer Goto Github PK

View Code? Open in Web Editor NEW
1.3K 1.3K 78.0 3.25 MB

A Node.js CLI that uses Ollama and LM Studio models (Llava, Gemma, Llama etc.) to intelligently rename files by their contents

Home Page: https://x.com/ozgrozer/status/1812591967756255298

License: GNU General Public License v3.0

JavaScript 100.00%
ai automation cli-tool file-management file-renamer files image-renamer llama3 lm-studio machine-learning ollama openai video-renamer

ai-renamer's Introduction

ai-renamer's People

Contributors

ozgrozer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai-renamer's Issues

Add image renaming with Llava

It should be pretty simple to add Llava support, since it just accepts the contents of an image as a base64 image url. Could add it to readFileContent.js as a special case like .pdf

Please add support for Docker setup

Docker support ๐Ÿณ
It'd be super helpful if we could get a Docker setup for this.
Dry-run option ๐Ÿœ๏ธ
Could we get a "dry-run" or "preview" mode?
This would be a lifesaver for checking things before making any changes.

Unsupported file format, fail to prompt, and recognize already renamed files

Seems that as it's going through old photos and renaming them, it occasionally pops up this error message.

All media is JPG format, however I am suspecting the LLM (llava:13b) not able to open the container or view it due to an older format or implementation of JPEG vs JPG, even if JPEG is renamed.

Would suggest that you add better error correction such as:

  1. Cannot change name of file "X"
  • Reason is I can move the file out of the directory or...
  1. Skips the file and continues without failing back to the prompt
  • Reason is better error handling and not being pushed back to command prompt / failing out
  1. Not sure if it's possible to recognize pictures already renamed?
  • Reason is when I rerun the script to rename the pictures, it renames the renamed ones already. Not an huge issue but perhaps a better time savings?

Thank you for this fine implementation of ollama capabilites!

image

API support?

Any plans to support the OpenAI API standard to do exactly what you're doing now?

It'll help with batching large files that can't be processed locally / using a more capable model to perform the same task

Dataseries json will fail.

Json data documents constructed as such
[{"Fecha":"05/09/2021 17:24:51","Resultado":251.05},{"Fecha":"05/09/2021 17:25:12","Resultado":270.09},....]

Fails with this message
ENOENT: no such file or directory, rename 'E:\Documentos\test\mediciones-potencia.json' -> 'E:\Documentos\test\Here is a concise, descriptive filename in kebab-case format:

2021-09-05-scores.json

This filename includes the date (YYYY-MM-DD) and the type of data being stored (scores). The .json extension indicates that the file contains JSON-formatted data..json'

Not sure why it fails but here it is.
And thanks for the work!

Add option for sub directory traversal

The current implementation only processes files in the top-level directory specified by the input path. i would like if code had the ability to recursively process all files in subdirectories as well based on user choice.
I made necessary changes in my local , if it's ok i can raise a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.