Instructions to use Autodraft/CM2000112 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Autodraft/CM2000112 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Autodraft/CM2000112", 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
| import importlib | |
| import os | |
| from internals.util import getcwd | |
| path = os.path.join(getcwd(), "external/scripts") | |
| __scripts__ = [] | |
| for name in os.listdir(path): | |
| name = name.split("/")[-1].replace(".py", "") | |
| imp = importlib.import_module(f"external.scripts.{name}") | |
| if hasattr(imp, "Script") and imp not in __scripts__: | |
| __scripts__.append(imp) | |