File size: 2,254 Bytes
bf634e7 53e350c bf634e7 fc46238 bf634e7 53e350c bf634e7 53e350c bf634e7 3b4b160 bf634e7 53e350c bf634e7 fc46238 bf634e7 fc46238 bf634e7 cf779b4 bf634e7 53e350c |
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 71 72 73 74 |
---
license: other
license_name: stabilityai-ai-community
license_link: LICENSE.md
language:
- en
base_model:
- tensorart/bokeh_3.5_medium
pipeline_tag: text-to-image
---
<div align="center">
**Bokeh_Line_Controlnet**
<img src="show.jpg"/>
</div>
# Description
- Input Image: Black and white line art or images processed with edge detection algorithms
- Output Image: Generated images incorporating edge information
This enables better control over the main subject features and composition, resulting in more vivid and realistic images.
# Example
| input | output | Prompt |
|:---:|:---:|:---|
| <img src="./images/001_line.png" width="300"/> | <img src="./images/001.png" width="300"/> | A cat looks up, close-up, sapphire eyes |
| <img src="./images/002_line.png" width="300"/> | <img src="./images/002.png" width="300"/> | heron bird standing, closeup, graceful |
| <img src="./images/003_line.png" width="300"/> | <img src="./images/003.png" width="300"/> | a modern build design |
| <img src="./images/004_line.png" width="300"/> | <img src="./images/004.png" width="300"/> | A old woman talking |
# Use
We recommend using ComfyUI for local inference

# With Bokeh
```python
import torch
from diffusers import StableDiffusion3ControlNetPipeline
from diffusers import SD3ControlNetModel
from diffusers.utils import load_image
controlnet = SD3ControlNetModel.from_pretrained("tensorart/Bokeh_Depth_Controlnet")
pipe = StableDiffusion3ControlNetPipeline.from_pretrained(
"tensorart/bokeh_3.5_medium",
controlnet=controlnet
)
pipe.to("cuda", torch.float16)
control_image = load_image("https://huggingface.co/tensorart/Bokeh_Line_Controlnet/resolve/main/images/001_line.png")
prompt = "A cat looks up, close-up, sapphire eyes"
negative_prompt ="anime,render,cartoon,3d"
negative_prompt_3=""
image = pipe(
prompt,
num_inference_steps=30,
negative_prompt=negative_prompt,
negative_prompt_3=negative_prompt_3,
control_image=control_image,
height=1728,
width=1152,
guidance_scale=4,
controlnet_conditioning_scale=0.8
).images[0]
image.save('image.jpg')
```
## Contact
* Website: https://tensor.art https://tusiart.com
* Developed by: TensorArt
* Api: https://tams.tensor.art/ |