π¦ Upscayl-cli
A command line tool to run Upscayl without GUI
β¨ Features
- β
Upscayl your images with command line
- π Optionally run a server to integrate with other tools
- π§ Most of the original settings supported
πΎ Installation
Currently, the only way to run this tool is to either build locally or download from releases (packages coming soon!)
Build locally
Prerequisites
go 1.17
Commands
cd go/src/github.com
git clone https://github.com/yashschandra/upscayl-cli.git
cd upscayl-cli
go mod download
make local # executable will appear in release/build/local directory
Download a release
You can download the releases from here. Only Mac (intel/silicon) and Linux supported.
Current latest release is version v0.0.5
π Usage
By default upscayl-standard-4x model is used.
Basic usage
To Upscayl an image, either pass the path of the image -
./path/to/upscayl run -i /path/to/input-image -o /path/to/output-image
OR
pass the url of the image -
./path/to/upscayl run -u https://your/image/url -o /path/to/output-image
Download models
To download a particular Upscayl model use the download command -
./path/to/upscayl download [MODEL NAME]
Run a server
./path/to/upscayl serve -p [PORT]
Use server api
curl -X POST http://localhost:[PORT]/upscayl \
-H "Content-Type: application/json" \
-d '{
"imagePath": "/path/to/input-image",
"outputPath": "/path/to/output-image"
}'
Advance usage
We support a variety of settings that are supported originally. Just use help option to check how to set them and if not then what are the default values.
./path/to/upscayl run --help
π€ Contributing
We welcome contributions from developers all around the world to help evolve this project! πβ¨
Whether you're fixing bugs, suggesting new features, improving documentation, or just sharing feedback β every bit counts and is truly appreciated.
π§ How to Contribute
-
Fork the repository
-
Create a branch for your feature/fix
-
Make your changes with clear commits
-
Submit a Pull Request with a short description of your work
-
Wait for review and feedback
π‘ No contribution is too small β even fixing a typo helps!
π In progress
- Provide the tool as package for Mac and Linux
- Provide commands to list available models
- Improve documentation