Instructions to use tensor-diffusion/melaura-v1-0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tensor-diffusion/melaura-v1-0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tensor-diffusion/melaura-v1-0", dtype=torch.bfloat16, device_map="cuda") prompt = "melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update tokenizer/tokenizer_config.json
Browse files
tokenizer/tokenizer_config.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
| 8 |
"rstrip": false,
|
| 9 |
"single_word": false
|
| 10 |
},
|
| 11 |
-
"clean_up_tokenization_spaces": true,
|
| 12 |
"do_lower_case": true,
|
| 13 |
"eos_token": {
|
| 14 |
"__type": "AddedToken",
|
|
@@ -20,7 +19,9 @@
|
|
| 20 |
},
|
| 21 |
"errors": "replace",
|
| 22 |
"model_max_length": 77,
|
|
|
|
| 23 |
"pad_token": "<|endoftext|>",
|
|
|
|
| 24 |
"tokenizer_class": "CLIPTokenizer",
|
| 25 |
"unk_token": {
|
| 26 |
"__type": "AddedToken",
|
|
@@ -30,4 +31,4 @@
|
|
| 30 |
"rstrip": false,
|
| 31 |
"single_word": false
|
| 32 |
}
|
| 33 |
-
}
|
|
|
|
| 8 |
"rstrip": false,
|
| 9 |
"single_word": false
|
| 10 |
},
|
|
|
|
| 11 |
"do_lower_case": true,
|
| 12 |
"eos_token": {
|
| 13 |
"__type": "AddedToken",
|
|
|
|
| 19 |
},
|
| 20 |
"errors": "replace",
|
| 21 |
"model_max_length": 77,
|
| 22 |
+
"name_or_path": "openai/clip-vit-large-patch14",
|
| 23 |
"pad_token": "<|endoftext|>",
|
| 24 |
+
"special_tokens_map_file": "./special_tokens_map.json",
|
| 25 |
"tokenizer_class": "CLIPTokenizer",
|
| 26 |
"unk_token": {
|
| 27 |
"__type": "AddedToken",
|
|
|
|
| 31 |
"rstrip": false,
|
| 32 |
"single_word": false
|
| 33 |
}
|
| 34 |
+
}
|