GithubHelp home page GithubHelp logo

qurel / civitai-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashleykleynhans/civitai-downloader

0.0 0.0 0.0 35 KB

Python script to download models from CIVITAI using an API key

License: GNU General Public License v3.0

Python 100.00%

civitai-downloader's Introduction

Python script to download models from CivitAI using an API key

Getting Started

This script requires a CivitAI API key. You can create the API key as follows:

  1. Log into CivitAI.
  2. Go to the Manage Account page.
  3. Scroll down to the API Keys section, close to the bottom of the page.
  4. Click the + Add API key button to create a new API key.
  5. Give the API key a name and click the Save button.
  6. You will then use your newly created API key with this script.

Installation

wget https://raw.githubusercontent.com/ashleykleynhans/civitai-downloader/main/download.py
mv download.py /usr/local/bin/download-model
chmod +x /usr/local/bin/download-model

Note

This assumes you are using RunPod and logged in as root user. If not, the installation commands should be prefixed with sudo.

Important

It is important to ensure that you use the DOWNLOAD link and not the link to the model page in CivitAI.

Usage

download-model [URL] [DESTINATION]

To download to the current directory:

download-model https://civitai.com/api/download/models/46846 .

To download to a different directory:

download-model https://civitai.com/api/download/models/46846 /workspace/stable-diffusion-webui/models/Stable-diffusion

civitai-downloader's People

Contributors

ashleykleynhans avatar qurel 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.