Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eduardovegas/ira

Image Rescaling Application (IRA)
https://github.com/eduardovegas/ira

Last synced: 12 days ago
JSON representation

Image Rescaling Application (IRA)

Awesome Lists containing this project

README

        

# Image Rescaling Application (IRA)

## Available modes
- [x] Downscale
- [x] Upscale

## Available methods
- [x] Bilinear
- [x] Bicubic
- [x] Lanczos
- [x] GFPGAN
- [x] Real-ESRGAN

## Authenticating with Replica
To utilize the GFPGAN and Real-ESRGAN upscaling, authentication with Replica's API is required. Instructions for exporting your Replica token can be found [here](https://replicate.com/docs/get-started/python#authenticate).

## Usage

### Option 1: Run with Python
Ensure you have the required packages installed: Tkinter (Tk), OpenCV, Replicate, and Requests.
Run the Python script with the following command:
```
python rescaler.py
```

### Option 2: Use the Standalone Executable
You can run the application without the need to install any additional packages. To download the latest version, simply visit the [executable release page](https://github.com/eduardovegas/IRA/releases/latest).

Once downloaded, you can run the application by executing the following command:
```
.\rescaler.exe
```

## Optional Flags
The application supports the following optional flags for specifying parameters before execution:
```
options:
-h, --help show this help message and exit
--mode {downscale,upscale}
Specify the mode (downscale or upscale)
--factor FACTOR Scaling factor for resizing
--method {bilinear,bicubic,lanczos,gfpgan,real-esrgan}
Resampling method
--root ROOT Root directory containing the images
```
For any unspecified parameters, the program will prompt the user for input during execution.