Instructions to use strangerzonehf/NewG-Art with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use strangerzonehf/NewG-Art with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("strangerzonehf/NewG-Art") prompt = "NewG Art, An abstract painting of a womans face with the words Tienes Cade written in black on the face. The womans eyes are covered in brown, black, and pink dots. Her lips are painted red, and her nose is painted pink. Her hair is dark brown and curly. Her ear is to the left of her face, and there is a lime green background behind her." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,6 +25,48 @@ license: creativeml-openrail-m
|
|
| 25 |
|
| 26 |
<Gallery />
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
## Trigger words
|
| 29 |
|
| 30 |
You should use `NewG Art` to trigger the image generation.
|
|
|
|
| 25 |
|
| 26 |
<Gallery />
|
| 27 |
|
| 28 |
+
# Model description for NewG-Art
|
| 29 |
+
|
| 30 |
+
Image Processing Parameters
|
| 31 |
+
|
| 32 |
+
| Parameter | Value | Parameter | Value |
|
| 33 |
+
|---------------------------|--------|---------------------------|--------|
|
| 34 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
| 35 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
| 36 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
| 37 |
+
| Network Alpha | 32 | Repeat & Steps | 24 & 3900 |
|
| 38 |
+
| Epoch | 30 | Save Every N Epochs | 1 |
|
| 39 |
+
|
| 40 |
+
Labeling: florence2-en(natural language & English)
|
| 41 |
+
|
| 42 |
+
Total Images Used for Training : 47
|
| 43 |
+
|
| 44 |
+
## Best Dimensions & Inference
|
| 45 |
+
|
| 46 |
+
| **Dimensions** | **Aspect Ratio** | **Recommendation** |
|
| 47 |
+
|-----------------|------------------|---------------------------|
|
| 48 |
+
| 1280 x 832 | 3:2 | Best |
|
| 49 |
+
| 1024 x 1024 | 1:1 | Default |
|
| 50 |
+
|
| 51 |
+
### Inference Range
|
| 52 |
+
|
| 53 |
+
- **Recommended Inference Steps:** 30–35
|
| 54 |
+
|
| 55 |
+
## Setting Up
|
| 56 |
+
```python
|
| 57 |
+
import torch
|
| 58 |
+
from pipelines import DiffusionPipeline
|
| 59 |
+
|
| 60 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
| 61 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 62 |
+
|
| 63 |
+
lora_repo = "strangerzonehf/NewG-Art"
|
| 64 |
+
trigger_word = "NewG Art"
|
| 65 |
+
pipe.load_lora_weights(lora_repo)
|
| 66 |
+
|
| 67 |
+
device = torch.device("cuda")
|
| 68 |
+
pipe.to(device)
|
| 69 |
+
```
|
| 70 |
## Trigger words
|
| 71 |
|
| 72 |
You should use `NewG Art` to trigger the image generation.
|