Coder Social home page Coder Social logo

aictl's Introduction

aictl

ci-python

aictl is a commandline tool for running ai models on mac and linux.

Installation

Depending on your platform, you will need to follow the following steps to install this tool:

# set up your virtualenv
python -m venv venv
source venv/bin/activate
pip install --upgrade pip

# on Mac
pip install --pre --extra-index-url https://download.pytorch.org/whl/nightly/cpu .

# on Linux (if you have an nvidia gpu)
pip install --extra-index-url https://download.pytorch.org/whl/cu116 .[xformers]

Usage

Like the installation, usage of this tool will also depend on your platform:

# on Mac
PYTORCH_ENABLE_MPS_FALLBACK=1 aictl --help

# on Linux
aictl --help

Audio and Video output models

For the t2v, t2a, and other future commands that output audio/video, Mac is currently not supported and so we don't include the dependencies by default. If you would like to use audio commands, you will have to install those specific dependencies by running the install with the audio feature, like so:

pip install --extra-index-url https://download.pytorch.org/whl/cu116 .[audio]

(NOTE: For video, the dependencies are all the same and the only thing that's holding back Mac from performing text-to-video functions is this PR)

Development

To install aictl for development, you will want to add the dev flag in the install command. This flag will download development dependencies such as the linter and formatter. To install with this flag, run one of the following commands:

# on Mac
pip install --pre --extra-index-url https://download.pytorch.org/whl/nightly/cpu .[dev]

# on Linux (if you have an nvidia gpu)
pip install --extra-index-url https://download.pytorch.org/whl/cu116 .[dev,xformers]

To test your changes, run the code with the following commands:

# on Mac
PYTORCH_ENABLE_MPS_FALLBACK=1 python aictl/cli/main.py <args>

# on Linux
python aictl/cli/main.py <args>

Before commiting changes to the repo, please run the linter and formatter:

black aictl
ruff aictl

Check the output of these commands and make sure these commands do not output any warnings or errors.

Roadmap

The following items are either in progress or will be in future iterations:

  • Ability to upscale images/video
  • Text-to-audio/video model support for Mac
  • Frontend webapp
  • Server to support the frontend
  • Support for fine-tuning and training models
  • Ability to add ControlNet into pipelines
  • Segmentation model support
  • SDXL support (when model weights are available)

aictl's People

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.