GithubHelp home page GithubHelp logo

namedrop-ollama's Introduction

Namedrop Ollama

Writes nice file names for your images using ollama/llava.

Demo: https://x.com/charliebholtz/status/1737667912784134344?s=20

Run it in the background to never have to see <Screenshot 2023-12-20 at 7.30.01 PM.png> again.

Namedrop also adds a meta attribute to your filename so you don't have to worry about it running twice on the same file.

Setup

Clone this repo, and setup and activate a virtualenv:

python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate

Then, install the dependencies: pip install -r requirements.txt

Run ollama on your machine and pull the model using ollama pull llava:13b

Run it!

In on terminal, run python main.py <directory-name>. namedrop will then watch that directory for changes and rename any image file.

For example, I run it on my desktop with:

python main.py ~/Desktop

You can also run namedrop on a specific file:

python main.py <path-to-file>

namedrop-ollama's People

Contributors

cbh123 avatar iwootten avatar

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.