세상에 없는 단어 사용하기
사진 똑같은 배경 똑같은 구도 말고 다양한 배경과 구도 사용하기
이미지 512 X 512가 Resizing 젤 잘 됨
BIRME - Bulk Image Resizing Made Easy 2.0 (Online & Free)
About Birme New features in version 2 NEW* Added support for WebP format Now you can adjust the focal point of each photo individualy Auto load previous settings you used Auto focal point detection Renaming file names in bulk Save resized images as files i
www.birme.net
Image jpeg
quality 100%
이미지들 긁어서 F12 하고
ex) hscc
의미없는 이름 치고 엔터
fast-DreamBooth.ipynb
Run, share, and edit Python notebooks
colab.research.google.com
GPU 사용
Setting up the environment 환경 설정
Downloading the model 학습 시킬 모델 선정
Create/Load a Session 세션 불러와서 이어서 학습 가능
훈련재개할 떄 Resume_Training
Training_Steps : 준비한 학습용 이미지 * 200이 적당
해보고 만족 안되면 500씩 늘리기
Seed: 별도로 없으면 랜덤 원하는 시드값 있으면 넣기
text_encoder_training :
퍼센티지 낮추면 style transfer은 잘되는데 더 많은 training stpes이 요구
높은 퍼센트로하면 학습용 이미지에 가중치를 줘서 적은 steps에도 강렬한 결과를 만들지만 stylize는 힘들어진다.
Checkpoint_ 체크포인트 설정
훈련한 결과 ckpt 나온다.
safetenors 파일로 변환 후
stable-diffusion-webui>models>Stable-diffusion에 넣어서 사용해도 되고,
Colab 자체에서 webui랑 통합해서 사용할 수 있음
Test The Trained Model에서 Session_Name에 입력하고 사용해보기
ex) a photo of hscc 쳐보기
과적합나면 text_encoder 끄거나 퍼센트 낮춰보기
Checkpoint Merger에서 과적합난 모델이랑 다른 모델 병합해도 잘 나옴
'AI' 카테고리의 다른 글
| Stable Diffusion 기능 정리 (2) | 2024.03.06 |
|---|