🚀 Flux_Cute3D
Flux_Cute3D是一个基于特定模型训练的文本到图像生成项目。通过特定的触发词,它能生成具有特定风格的图像,可借助diffusers库方便地使用。
🚀 快速开始
你可以按照以下步骤快速使用Flux_Cute3D进行图像生成:
- 确保你已经安装了必要的依赖库,如
diffusers
和torch
。
- 使用以下代码进行图像生成:
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
对于更多细节,包括LoRAs的加权、合并和融合,请查看diffusers中加载LoRAs的文档。
✨ 主要特性
- 特定风格生成:使用触发词
NEOCUTE3D
可以触发特定风格的图像生成。
- 便捷集成:可以与🧨 diffusers库轻松集成,方便使用。
💻 使用示例
基础用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
高级用法
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('SebastianBodza/flux_cute3D', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]
📚 详细文档
触发词
你应该使用NEOCUTE3D
来触发图像生成。
训练信息
该项目在Replicate上使用以下链接进行训练:
https://replicate.com/ostris/flux-dev-lora-trainer/train
示例展示
以下是一些示例提示和对应的输出图像:
提示文本 |
输出图像 |
NEOCUTE3D of Picture a valiant knight in shining armor, mounted on a gallant steed, charging with a lance towards an opponent in a lively medieval fair setting |
骑士 |
NEOCUTE3D of a astronaut in a high-tech space suit stepping onto an alien landscape, proudly planting a flag as colorful alien flora surrounds them |
宇航员 |
NEOCUTE3D of a street musician playing the violin with a colorful background |
小提琴手 |
NEOCUTE3D of a cyclist riding through a scenic mountain trail |
自行车手 |
NEOCUTE3D of a ninja doing a high kick |
忍者 |
NEOCUTE3D of a a cute monster |
可爱怪物 |
📄 许可证
本项目使用的许可证为flux-1-dev-non-commercial-license。
属性 |
详情 |
模型类型 |
基于black-forest-labs/FLUX.1-dev 的文本到图像生成模型 |
训练数据 |
未明确提及 |