Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
-
###
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
```bash
|
| 7 |
pip install -r requirements.txt
|
|
@@ -9,13 +11,26 @@ pip install -r requirements.txt
|
|
| 9 |
|
| 10 |
---
|
| 11 |
|
| 12 |
-
###
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
```bash
|
| 21 |
cd weights
|
|
@@ -24,12 +39,11 @@ bash download_weights.sh
|
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
-
###
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
```bash
|
| 32 |
bash test.sh
|
| 33 |
```
|
| 34 |
|
| 35 |
-
---
|
|
|
|
| 1 |
+
## Please follow the steps below to set up the environment, download required weights, and run.
|
| 2 |
+
---
|
| 3 |
|
| 4 |
+
### 🔧 Step 1: Install Dependencies
|
| 5 |
|
| 6 |
+
Install all required Python packages:
|
| 7 |
|
| 8 |
```bash
|
| 9 |
pip install -r requirements.txt
|
|
|
|
| 11 |
|
| 12 |
---
|
| 13 |
|
| 14 |
+
### 📥 Step 2: Download FLUX.1-dev Weights
|
| 15 |
+
|
| 16 |
+
**Step 2.1: Request Access**
|
| 17 |
|
| 18 |
+
Visit the Hugging Face model page and request access to the FLUX.1-dev weights:
|
| 19 |
+
👉 [https://huggingface.co/black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)
|
| 20 |
|
| 21 |
+
**Step 2.2: Set Your Token**
|
| 22 |
|
| 23 |
+
Once access is granted, open the file `download_weights.sh` and replace:
|
| 24 |
+
|
| 25 |
+
```bash
|
| 26 |
+
TOKEN=YOUR_TOKEN
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
with your actual Hugging Face token.
|
| 30 |
+
|
| 31 |
+
**Step 2.3: Download Weights**
|
| 32 |
+
|
| 33 |
+
Run the following to download model weights:
|
| 34 |
|
| 35 |
```bash
|
| 36 |
cd weights
|
|
|
|
| 39 |
|
| 40 |
---
|
| 41 |
|
| 42 |
+
### 🧪 Step 3: Run Inference
|
| 43 |
|
| 44 |
+
Run the test script to perform inference:
|
| 45 |
|
| 46 |
```bash
|
| 47 |
bash test.sh
|
| 48 |
```
|
| 49 |
|
|
|