Instructions to use ifmylove2011/girlslike-krea2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ifmylove2011/girlslike-krea2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw,krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ifmylove2011/girlslike-krea2") 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
lora训练素材
#17
by LI123654 - opened
大佬,请问下一般去那里搜集照片?多大分辨率、容量比较合适?我看之前你回答的问题还说通过其他手段来进行补充,这个是指什么?
大佬,请问下一般去那里搜集照片?多大分辨率、容量比较合适?我看之前你回答的问题还说通过其他手段来进行补充,这个是指什么?
年代近一点的就用堆糖、微博、ins之类的就行;
年代远点的就得用百度、谷歌自己找找或者类似明星写真网、女星档案这种网站去搜索了;
一般找到的图除了一些高清(类似商业代言图这种4k往上的)图,都得自行处理进行高清修复,有个2k就行(短边2048以上),如果要抠图,保证处理后尽量在1k以上(大概和我上传的dataset中差不多);
补充的话是指有些人物找到的胸像、腰像、膝像、侧像不够,需要自己利用编辑模型或者多模态的大语言模型进行修正以及扩图,以此尽量保证训练素材的多样化,增强lora的泛化性。
ifmylove2011 changed discussion status to closed
谢谢大佬