Text-to-Image
Diffusers
PyTorch
gcode
cnc
plotter
polargraph
stable-diffusion
text-to-gcode
diffusion
Instructions to use twarner/dcode-sd-gcode-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use twarner/dcode-sd-gcode-v3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("twarner/dcode-sd-gcode-v3", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download clip_tokenizer/special_tokens_map.json from twarner/dcode-sd-gcode-v3: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/twarner/dcode-sd-gcode-v3/resolve/main/clip_tokenizer/special_tokens_map.json
- Command line
-
hf download hf://twarner/dcode-sd-gcode-v3/clip_tokenizer/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/twarner/dcode-sd-gcode-v3/resolve/main/clip_tokenizer/special_tokens_map.json
472 Bytes
| { | |
| "bos_token": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |