Spaces:
Sleeping
Sleeping
File size: 2,607 Bytes
8eca2ce b88afe8 8eca2ce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
---
title: TonAI-Creative
app_file: app.py
sdk: gradio
colorFrom: red
colorTo: green
sdk_version: 5.0.2
---
<p align="center">
<img src="stuffs/splash.png" alt="Description" style="width: 20%;">
</p>
# TonAI Creative
## An application for drawing picture with AI
<a href="http://huggingface.co/spaces/tungedng2710/TonAI-Creative"><img src="https://img.shields.io/badge/Huggingface-yellow"></a>
<!-- **Web Ui in light mode**
![Example](stuffs/demo_light.png) -->
<!-- **Web Ui in dark mode** -->
![Example](stuffs/demo_dark.png)
## Quick Start
- **Prompt**: Enter the text prompt to generate your desired output. It should be less than 77 words.
- **Width** (and **Height**): Specify the width (and height) of the generated image.
- **Fast Inference**: Model will be quantized to FP16 (half precision) to boost the speed but the picture quality will be decreased a bit
- **Negative Prompt**: Text prompts that instruct the AI model that it should not include certain elements in its generated images.
- **CFG Scale**: A parameter that controls how much the image generation process follows the text prompt. The higher the value, the more the image sticks to a given text input.
- **Inference Step**: The number of steps the model takes to generate the output.
- **Mode**: Choose the style of image you want to generate.
- **LoRA safetensor File**: Upload a Low-Rank Adaptation (LoRA) safetensor file to fine-tune the model. You can seek the LoRA weight on the Internet. You can also adjust the
- **Sampler**: Method of generating data in a specific way. Set its value as ```Default``` to use the default config of pipeline
## Installation
### Minimum Requirements
- **GPU:** NVIDIA GTX 1050Ti or equivalent
- **RAM:** 8 GB
- **CPU:** Intel i5 or equivalent
- **Storage:** 50 GB of free space
### Step 1: Install Anaconda
1. Install [Anaconda](https://www.anaconda.com/)
2. Create a new conda environment named 'tonai' with Python 3.10:
```bash
conda create -n tonai python=3.10
```
3. Activate the environment:
```bash
conda activate tonai
```
### Step 2: Install Required Packages
1. Ensure you have `requirement.txt` file in your working directory.
2. Install the required packages using pip:
```bash
pip install -r requirement.txt
```
### Run the Web UI
For running on local machine, from your Terminal (or CMD) run the command
```bash
python app.py
```
And your Web UI app will run on local URL: http://127.0.0.1:7860
To deploy your app on your own server, refer [This Blog](https://www.gradio.app/guides/running-gradio-on-your-web-server-with-nginx)
|