Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twardoch/magespace-importer
Helps importing models from a list of URLs into https://mage.space/
https://github.com/twardoch/magespace-importer
civitai mage-space stable-diffusion stable-diffusion-xl text-to-image text-to-image-generation
Last synced: about 1 month ago
JSON representation
Helps importing models from a list of URLs into https://mage.space/
- Host: GitHub
- URL: https://github.com/twardoch/magespace-importer
- Owner: twardoch
- License: mit
- Created: 2023-12-09T15:32:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-09T16:11:02.000Z (11 months ago)
- Last Synced: 2023-12-09T17:23:53.870Z (11 months ago)
- Topics: civitai, mage-space, stable-diffusion, stable-diffusion-xl, text-to-image, text-to-image-generation
- Language: Python
- Homepage: https://github.com/twardoch/magespace-importer
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# magespace_importer
`magespace_importer` is a Python-based tool designed to simplify importing models from a list of URLs into [mage.space](https://mage.space/)
It opens each URL in a new browser tab, and lets you perform the model import there. After you've imported a model, close the tab. To finish processing, close all browser tabs.
## Installation
Ensure Python 3.10 or higher is installed on your system. You can then install the package using pip:
```bash
python3 -m pip install --upgrade git+https://github.com/twardoch/magespace-importer
```## Usage
Prepare a text file containing a list of URLs to models you want to import, one URL per line, and save it as `magespace.txt` in your current folder.
For example, for models from CivitAI, you can use URLs like:
```text
https://civitai.com/api/download/models/243915?type=Model&format=SafeTensor&size=pruned&fp=fp16
https://civitai.com/api/download/models/163063?type=Model&format=SafeTensor
```> Note: If a model page on CivitAI has one Download button, you can use the CivitAI model page URL. But if the model page has a download dropdown, you must click it and copy the download URL (typically SafeTensors).
Then, use the tool in command line with optional arguments:
```bash
magespace_importer
```The tool will open a new Chrome browser window where you'll need to log into https://mage.space/ using your credentials, then click the Terminal window and press Enter.
Then the tool open each URL in a new tab. You can then manually finalize the import in each tab. After you've imported a model, close the tab. To finish processing, close all browser tabs.
### Optional Arguments
- `--models_path`: Path to the text file containing model URLs (one URL per line), defaults to `magespace.txt` in the current folder.
- `--driver_path`: Optional path to the ChromeDriver executable.
- `--url_import`: Custom URL for the model import page, defaults to `https://www.mage.space/models/import`.Example:
```bash
magespace_importer --models_path /path/to/magespace.txt
```or if `magespace.txt` is in the current folder:
```bash
magespace_importer
```