🚀 Emma Watson Face (FLUX + SDXL)
本项目是一个基于文本到图像生成的模型,能够根据输入的文本描述,生成以Emma Watson为主题的高质量图像,融合了FLUX和SDXL的优势,为用户带来丰富多样的图像创作体验。
🚀 快速开始
下载模型
此模型的权重以Safetensors格式提供。你可以在Files & versions标签中下载。
使用🧨 diffusers库
以下是使用该模型的代码示例:
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/emma-watson-face-flux-sdxl', weight_name='Emma_Watson-000052.safetensors')
image = pipeline('Instagram selfie of a nordic viking warrior princess with black warpaint under her eyes. There is a beautiful norwegian fjord in the background and other viking troops walking past her. She looks fierce and beautiful yet calm. ').images[0]
如需了解更多详细信息,包括LoRAs的加权、合并和融合,请查看diffusers中加载LoRAs的文档。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/emma-watson-face-flux-sdxl', weight_name='Emma_Watson-000052.safetensors')
image = pipeline('Instagram selfie of a nordic viking warrior princess with black warpaint under her eyes. There is a beautiful norwegian fjord in the background and other viking troops walking past her. She looks fierce and beautiful yet calm. ').images[0]
高级用法
在实际使用中,你可以根据不同的文本描述生成多样化的图像。例如:
image = pipeline('A magical transformation of young Emma Watson, iconically dressed as Hermione Granger from the Harry Potter movie franchise, standing in the grand hall of Hogwarts School of Witchcraft and Wizardry. She is bathed in the warm glow of floating candles and flickering torchlight, her hair in perfect Gryffindor-style curls and wearing her house\'s signature scarlet and gold robes, tied at the neck with a neat bow. Her eyes, a piercing shade of brown, are focused intently on an ancient, open spellbook in her hands. The hall is adorned with banners bearing the four house emblems – the Gryffindor lion, Slytherin snake, Ravenclaw eagle, and Hufflepuff badger – which flutter softly in the background. The floor beneath her is a gleaming mosaic of black and white tiles, leading the viewer\'s gaze to the long tables laden with enchanting food, surrounded by students and teachers in various stages of conversation and laughter. The air is filled with a sense of wonder and anticipation as a stray feather from a nearby bewitched bird floats past her face, reflecting the light. Her wand is at the ready, a subtle reminder of the powerful magic within her grasp. The iconic Hogwarts house points in the background, the Sorting Hat perched atop one, casts a playful shadow over the scene. The image is a captivating blend of the enchanting world of Harry Potter and the undeniable charm of Emma Watson, inviting the viewer to step into the magical realm and share in the excitement of an unforgettable moment.').images[0]
📄 许可证
本模型使用的许可证为bespoke-lora-trained-license。
📋 模型信息
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-dev |
标签 |
text-to-image, stable-diffusion, lora, diffusers, template:sd-lora, migrated, photorealistic, emma watson, woman, celebrity, harry potter |
许可证类型 |
other |
许可证名称 |
bespoke-lora-trained-license |
许可证链接 |
https://multimodal.art/civitai-licenses?allowNoCredit=True&allowCommercialUse=Image&allowDerivatives=True&allowDifferentLicense=True |
(CivitAI)