Instructions to use ManglerFTW/CharHelper_Fine-Tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ManglerFTW/CharHelper_Fine-Tuned with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ManglerFTW/CharHelper_Fine-Tuned", 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
File size: 738 Bytes
3a18eba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import sys
import os
try:
import converters
except ImportError:
#if there's a scripts folder where the script is, add it to the path
if 'scripts' in os.listdir(os.path.dirname(os.path.abspath(__file__))):
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '\\scripts')
else:
print('Could not find scripts folder. Please add it to the path manually or place this file in it.')
import converters
if __name__ == '__main__':
args = sys.argv[1:]
if len(args) != 2:
print('Usage: python3 convert_diffusers_to_sd.py <model_path> <output_path>')
sys.exit(1)
model_path = args[0]
output_path = args[1]
converters.Convert_Diffusers_to_SD(model_path, output_path)
|