Views
No views yet
model.safetensors file for efficient loading.1# import or define class DeepDanbooruModel
2from PIL import Image
3
4model = DeepDanbooruModel.from_pretrained("pearisli/deepdanbooru-pytorch")
5model = model.to("cuda")
6
7image = Image.open("example.jpg").convert("RGB")
8model.tag(image)