Instructions to use cocktailpeanut/canny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cocktailpeanut/canny 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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("cocktailpeanut/canny") prompt = "canny style image of a kitten" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +42 -0
- canny-000004.safetensors +3 -0
- canny-000008.safetensors +3 -0
- canny-000012.safetensors +3 -0
- canny-000016.safetensors +3 -0
- canny.safetensors +3 -0
- dataset.toml +14 -0
- sample/canny_000200_00_20240918175433.png +0 -0
- sample/canny_000200_01_20240918175438.png +0 -0
- sample/canny_000200_02_20240918175444.png +0 -0
- sample/canny_000200_03_20240918175449.png +0 -0
- sample/canny_000400_00_20240918143934.png +0 -0
- sample/canny_000400_00_20240918175814.png +0 -0
- sample/canny_000400_01_20240918143940.png +0 -0
- sample/canny_000400_01_20240918175820.png +0 -0
- sample/canny_000400_02_20240918143946.png +0 -0
- sample/canny_000400_02_20240918175826.png +0 -0
- sample/canny_000400_03_20240918143951.png +0 -0
- sample/canny_000400_03_20240918175831.png +0 -0
- sample/canny_000600_00_20240918180155.png +0 -0
- sample/canny_000600_01_20240918180201.png +0 -0
- sample/canny_000600_02_20240918180206.png +0 -0
- sample/canny_000600_03_20240918180212.png +0 -0
- sample/canny_000800_00_20240918144643.png +0 -0
- sample/canny_000800_00_20240918180537.png +0 -0
- sample/canny_000800_01_20240918144649.png +0 -0
- sample/canny_000800_01_20240918180543.png +0 -0
- sample/canny_000800_02_20240918144654.png +0 -0
- sample/canny_000800_02_20240918180549.png +0 -0
- sample/canny_000800_03_20240918144700.png +0 -0
- sample/canny_000800_03_20240918180554.png +0 -0
- sample/canny_001000_00_20240918180920.png +0 -0
- sample/canny_001000_01_20240918180925.png +0 -0
- sample/canny_001000_02_20240918180931.png +0 -0
- sample/canny_001000_03_20240918180937.png +0 -0
- sample/canny_001200_00_20240918145352.png +0 -0
- sample/canny_001200_00_20240918181303.png +0 -0
- sample/canny_001200_01_20240918145358.png +0 -0
- sample/canny_001200_01_20240918181308.png +0 -0
- sample/canny_001200_02_20240918145404.png +0 -0
- sample/canny_001200_02_20240918181314.png +0 -0
- sample/canny_001200_03_20240918145409.png +0 -0
- sample/canny_001200_03_20240918181320.png +0 -0
- sample/canny_001400_00_20240918181646.png +0 -0
- sample/canny_001400_01_20240918181652.png +0 -0
- sample/canny_001400_02_20240918181658.png +0 -0
- sample/canny_001400_03_20240918181703.png +0 -0
- sample/canny_001600_00_20240918150057.png +0 -0
- sample/canny_001600_00_20240918182031.png +0 -0
- sample/canny_001600_01_20240918150103.png +0 -0
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- flux
|
| 5 |
+
- lora
|
| 6 |
+
- diffusers
|
| 7 |
+
- template:sd-lora
|
| 8 |
+
- fluxgym
|
| 9 |
+
widget:
|
| 10 |
+
- output:
|
| 11 |
+
url: sample/canny_002000_00_20240918150803.png
|
| 12 |
+
text: canny style image of a gymnast
|
| 13 |
+
- output:
|
| 14 |
+
url: sample/canny_002000_01_20240918150809.png
|
| 15 |
+
text: canny style image of a kitten
|
| 16 |
+
- output:
|
| 17 |
+
url: sample/canny_002000_02_20240918150814.png
|
| 18 |
+
text: canny style image of a person biking on the street
|
| 19 |
+
- output:
|
| 20 |
+
url: sample/canny_002000_03_20240918150820.png
|
| 21 |
+
text: canny style image of new york times square
|
| 22 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 23 |
+
instance_prompt: canny style
|
| 24 |
+
license: other
|
| 25 |
+
license_name: flux-1-dev-non-commercial-license
|
| 26 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
# canny
|
| 30 |
+
|
| 31 |
+
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
|
| 32 |
+
|
| 33 |
+
<Gallery />
|
| 34 |
+
|
| 35 |
+
## Trigger words
|
| 36 |
+
|
| 37 |
+
You should use `canny style` to trigger the image generation.
|
| 38 |
+
|
| 39 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
|
| 40 |
+
|
| 41 |
+
Weights for this model are available in Safetensors format.
|
| 42 |
+
|
canny-000004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15ed83ba77693d9eac2fff969cb000c0c1b6b9796d7d058ef30d95bd0bf87803
|
| 3 |
+
size 39757112
|
canny-000008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b4133f964884ecfbfaecfa95efc588f496239aed3c5ce0338fb65c58a06de51
|
| 3 |
+
size 39757112
|
canny-000012.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bcf4e8d405060c7f17f26cf5823da17a42f011feac2035e40b9a6968ca2eab1
|
| 3 |
+
size 39757120
|
canny-000016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6440abf99d79ddf2e7ee945d599e0530b9f46b0fd59448e53eb5a290a05b6cd
|
| 3 |
+
size 39757120
|
canny.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92279a462a03b48827c1062d6a8254508ab9bb8ce6ba8e28e93738e01b43e438
|
| 3 |
+
size 39757120
|
dataset.toml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[general]
|
| 2 |
+
shuffle_caption = false
|
| 3 |
+
caption_extension = '.txt'
|
| 4 |
+
keep_tokens = 1
|
| 5 |
+
|
| 6 |
+
[[datasets]]
|
| 7 |
+
resolution = 512
|
| 8 |
+
batch_size = 1
|
| 9 |
+
keep_tokens = 1
|
| 10 |
+
|
| 11 |
+
[[datasets.subsets]]
|
| 12 |
+
image_dir = 'C:\pinokio\api\fluxgym.git\datasets\canny'
|
| 13 |
+
class_tokens = 'canny style'
|
| 14 |
+
num_repeats = 6
|
sample/canny_000200_00_20240918175433.png
ADDED
|
sample/canny_000200_01_20240918175438.png
ADDED
|
sample/canny_000200_02_20240918175444.png
ADDED
|
sample/canny_000200_03_20240918175449.png
ADDED
|
sample/canny_000400_00_20240918143934.png
ADDED
|
sample/canny_000400_00_20240918175814.png
ADDED
|
sample/canny_000400_01_20240918143940.png
ADDED
|
sample/canny_000400_01_20240918175820.png
ADDED
|
sample/canny_000400_02_20240918143946.png
ADDED
|
sample/canny_000400_02_20240918175826.png
ADDED
|
sample/canny_000400_03_20240918143951.png
ADDED
|
sample/canny_000400_03_20240918175831.png
ADDED
|
sample/canny_000600_00_20240918180155.png
ADDED
|
sample/canny_000600_01_20240918180201.png
ADDED
|
sample/canny_000600_02_20240918180206.png
ADDED
|
sample/canny_000600_03_20240918180212.png
ADDED
|
sample/canny_000800_00_20240918144643.png
ADDED
|
sample/canny_000800_00_20240918180537.png
ADDED
|
sample/canny_000800_01_20240918144649.png
ADDED
|
sample/canny_000800_01_20240918180543.png
ADDED
|
sample/canny_000800_02_20240918144654.png
ADDED
|
sample/canny_000800_02_20240918180549.png
ADDED
|
sample/canny_000800_03_20240918144700.png
ADDED
|
sample/canny_000800_03_20240918180554.png
ADDED
|
sample/canny_001000_00_20240918180920.png
ADDED
|
sample/canny_001000_01_20240918180925.png
ADDED
|
sample/canny_001000_02_20240918180931.png
ADDED
|
sample/canny_001000_03_20240918180937.png
ADDED
|
sample/canny_001200_00_20240918145352.png
ADDED
|
sample/canny_001200_00_20240918181303.png
ADDED
|
sample/canny_001200_01_20240918145358.png
ADDED
|
sample/canny_001200_01_20240918181308.png
ADDED
|
sample/canny_001200_02_20240918145404.png
ADDED
|
sample/canny_001200_02_20240918181314.png
ADDED
|
sample/canny_001200_03_20240918145409.png
ADDED
|
sample/canny_001200_03_20240918181320.png
ADDED
|
sample/canny_001400_00_20240918181646.png
ADDED
|
sample/canny_001400_01_20240918181652.png
ADDED
|
sample/canny_001400_02_20240918181658.png
ADDED
|
sample/canny_001400_03_20240918181703.png
ADDED
|
sample/canny_001600_00_20240918150057.png
ADDED
|
sample/canny_001600_00_20240918182031.png
ADDED
|
sample/canny_001600_01_20240918150103.png
ADDED
|