손가락이 뭔지 계속 이런 테스트를 하고 있다... 이전 글 참조해라 

1. DDSD 손가락 치료 1탄 - 손가락 이상은 완벽하게 치료가능하다- https://arca.live/b/aireal/74342543?p=1

2. DDSD 손가락 치료 2탄 - 예제 + 알파  - https://arca.live/b/aireal/74563224

이제 심화학습으로 상상력과 노가다의 영역이다.


우선 지난 글의 before & after 이다.
detail hands, professional photography,(masterpiece,best quality:1.3),DSLR RAW filmgrain photo,edited in Adobe Lightroom,highres,HQ,intrinsic detail,focused,insane quality rendering,cinematic lighting,raytracing,depth of field Negative prompt: (worst quality, low quality:1.4), (worst quality,low quality,normal quality:1.3),anime,illustration,3d,octane render,drawing,cell shading,semi-realistic,cgi,sketch,cartoon,blur,lowres,greyscale,monochrome,text,title Steps: 30, Sampler: Euler, CFG scale: 5.5, Seed: 3264136435, Size: 768x512, Model hash: feadfe3cfe, Model: 3moonNIReal_3moonNIRealV2, Clip skip: 2, , DINO 1 : hand, DINO 1 Positive : (good anatomy:1.2), (five fingers:1.3), pretty hands, detail hands, detail fingers, detail nails, professional photography,(masterpiece,best quality:1.3),DSLR RAW filmgrain photo,edited in Adobe Lightroom,highres,HQ,intrinsic detail,focused,insane quality rendering,cinematic lighting,raytracing,depth of field, DINO 1 Negative : (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers, disconnected fingers, (worst quality,low quality,normal quality:1.3),anime,illustration,3d,octane render,drawing,cell shading,semi-realistic,cgi,sketch,cartoon,blur,lowres,greyscale,monochrome,text,title, DINO 1 Denoising : 0.5, DINO 1 CFG Scale : 5.5, DINO 1 Steps : 30, DINO 1 Spliter : False, DINO 1 Split Remove Area : 16, DINO 2 : hand, DINO 2 Positive : (good anatomy:1.2), (five fingers:1.3), pretty hands, detail hands, detail fingers, professional photography,(masterpiece,best quality:1.3),DSLR RAW filmgrain photo,edited in Adobe Lightroom,highres,HQ,intrinsic detail,focused,insane quality rendering,cinematic lighting,raytracing,depth of field, DINO 2 Negative : (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers, disconnected fingers, (worst quality,low quality,normal quality:1.3),anime,illustration,3d,octane render,drawing,cell shading,semi-realistic,cgi,sketch,cartoon,blur,lowres,greyscale,monochrome,text,title, DINO 2 Denoising : 0.5, DINO 2 CFG Scale : 10, DINO 2 Steps : 30, DINO 2 Spliter : True, DINO 2 Split Remove Area : 16
  

치료에 만족하나?  얼굴이랑 손 손가락이 매칭이 되는 것 같아? 얼굴은 예쁜데 손가락을 고쳤으나 왠지 남자 손 같지 않아?  단순히 불구나 이상만 치료하면 그림이 완성도가 높아져? 아니라고 봐. 뭐가 부족했을까 - 프롬이 좀 엉성했었겠지?

Positive Prompt (good anatomy:1.2), (five fingers:1.3), pretty hands, detail hands, detail fingers, detail nails

Negative Prompt(bad anatomy:1.2), (wrong anatomy:1.2), mutation,  amputation,  extra fingers, missing fingers,  disconnected


이번 심화학습에서는 손가락 수정에:

1. DDSD가 마스크안에 모델을 따로 사용하거나 로라를 사용해서 치료하는 방법을 시도해보고;

2. 변태chatgpt에게 도움을 받아서 프롬만 고쳐보기;
3. 거기에 clip skip과의 관계도 어렴풋하게....
해 보았다. 결과는 조금 나아졌어. 


우선 결과부터 보자. 같은 프롬이고 위에서부터 clip skip 1,2,3이다. 치료의 결과가 다르다.




어때? 
아까보다 훨씬 손이 얼굴과 매치되지 않아? 여리라고 섬세하고 .... 
저 위의 손과는 비교하면 그림의 주인공이 싸다구를 때릴꺼다. 그 손으로. 
손이 조금 바뀐것이 뭐? 하는 사람은 그만 보고 저리 가라. 


문제가 생겼다. EXIF에 DDSD작업한 내용이 나오지 않는다. 뭐지? 그래서 정확한 내용이 아니라 내 기억에 의존해서 쓴다. 미얀.


1. 사람 바꿔치면서 손도 고치고 이것저것 다 고치기


마스크를 사람을 택해서 통째로 씌워서 로라를 덮어씌우면 손가락이 꽤 치료가 된다. 손가락 타율좋은 모델로 사람을 바꾸면 더 좋아지겠지? 손가락도 치료하고 얼굴도 교정하고 가슴도 성형하고 옷도 갈아입히고 ..... DINOssssss 귀찮다. 한 방에 해결하자. 
우선 개인적으로 만든 로라로 사람을 바꿨다. (요즘 로라 공부를 열심히 해서 여러가지 수작을 부려서 만든 아래 로라 모델이시다. - 아주 대만족하는 로라다. 아래쪽에 자랑질 그림 있다.)


DINO1 person
Positive Prompt - masterpiece, best quality <로라...>, detailed face, alluring smile, 하여간 AI 니가 할 수 있는 거 다해
Negative Prompt - (worst quality, low quality:1.4)

고인물들이 보이지? 모든 DINO 프롬에 고인물을 축약해서 꼭 넣어라. 확 다르다.


2. 프롬 조정
DINO2 hand:1, DINO3 hand:2  - hand를 계속 조지면서 범위를 축소해라. 꼭!
Positive Prompt - masterpiece, best quality, (good anatomy:1.2), (five fingers:1.3), lovely hands, detail hands, delicate fingers, detail fingers
고인물 + 손의 프롬이 미세조정되었다. 이전의 'pretty' 말고 lovely | slender | elegant | delicate | tapering 같은 단어를 쓰자. 그리고 손에 대한 프롬을 다 나열한 이후 손가락 프롬을 써라, 이게 섞이면 미묘하게 프롬을 무시한다. 
(cuz, 손가락이 손보다 하위개념이다. 
프롬은 상위개념을 먼저 쓰고 하위개념을 나중에 쓰는 순서가 AI에게 우리 말을 잘 알아쳐먹게 하는 방법인 것 같다. 이런 면에서 masterpice는 상위개념일까 하위개념일까?)

Negative Prompt - (worst quality, low quality:1.4), (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers,  disconnected

위의 그림 중에 clip skip 1에서 손바닥의 방향이 바뀌었지 (첫째 줄 오른 쪽)? 
이거 Positive Prompt 때문이 아니라, Negative Prompt에서 고인물과 wrong anatomy 로 SD가 한 치료이다.  

심지어 고인물인 (worst quality, low quality:1.4)만으로도 손가락이 치료되는 마법이 발생하기도 한다.
꼭 해봐라. 

T2I에서와 마찬가지고 DINO에서도 Positive 보다 Negative 가 훨씬 중요하다.

바쁘고 귀찮으면 이거 3개만 neg로 써라.

worst quality, low quality, wrong anatomy

3. clip skip

clip skip 아주 중요하다.
같은 프롬이고 clip skip만 1,2,3인데 치료효과는 다르다. clip skip 1에서 손의 방향이 손바닥에서 손등으로 바뀐 걸 봐라. 대단한 치료이다. 사실 저 긴 손가락의 기형은 다시 그리는 수 밖에 없다. AI가 고민많이 하다가 손의 방향을 바꾸는 것으로 치료한 결과이다. 
AI 대단하다. 근데 clip skip 2 이상에서는 이런 획기적인 치료를 안하다.
낮은 clip skip에서 DDSD 치료가 더 잘된다.  당연하다 프롬을 잘 이행하니까.

clip skip 2부터 DDSD 치료가 효과가 줄어서 clip skip 3에서는 겨우겨우 조금 치료된다. clip 4 에서 택도 없다. 
clip skip 3 이상으로 그림그리는 사람은 DDSD의 효과가 상당히 제한적이다. 그동안 DDSD의 효과에 대해 말들 많았는데 그 중 많은 경우가 clip skip 2 이상을 쓰는 챈붕들의 불만일지도 모른다. 자기전에 가차 1000장 돌리면서 손의 타율을 획기적으로 올리기를 원하면 clip skip 1로 먼저 그려보고 가차를 돌려라. 전기세를 아낄 수 있을 지도 모른다.
clip skip은 상위개념이라서 DDSD의 제작자도 마스크 안의 clip skip을 조정해 주실 지는 모르겠다. (추가: 제작자께서 벌써 해주셨다. https://arca.live/b/aireal/74887765?p=1, 테스트하고 이 글 업데이트 할께)


4. 완전 폭망 답 없는 경우: 

그릴 때 이미 clip skip 도 3이상 쓰고, 아무리 DINO1,2,3,4, 해도 수정하다 만 것 같고..........에이 썅 버려 할 경우에도 언제나와 같이 답은 있다. 
- 알고 있는 방법을 몽땅 다 쓰는 거다. 
자 그린 그림이 이렇게 나왔다. 
뭐가 뭔지 하나도 모르겠지? 심지어 남의 손도 얽혀서 말미잘같다. 
심지어 그릴 때 clip skip도 3이다. 
DDSD 수정의 효과도 걱정된다.

폭망한거다. 버리자......

라고 할 줄 알았냐? 이렇게 잘 나온 그림을 버린다고? 미쳤냐? 고친다. 고칠 수 있다


고친 결과부터 보자.

 
(detailed hands:1.4), (photorealistic:1.4), official art, unity 8k wallpaper, ultra detailed, aesthetic, masterpiece,best quality, lifelike rendering, immersive atmosphere, chiaroscuro, moody lighting, premium artwork, 1girl,solo, crop bikini, silk bikini, ,emotional expressions, matte skin,outdoor,  , Negative prompt: ng_deepnegative_v1_75t, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)) watermark Steps: 29, Sampler: Euler a, CFG scale: 7, Seed: 1243262044, Size: 768x512, Model hash: e1cabe6028, Model: PHOTO_V08_V08a, Clip skip: 3, DINO 1: hand, DINO 1 Positive: "masterpiece, best quality, (good anatomy:1.2), (five fingers:1.3), lovely hands, detail hands, delicate fingers, detail fingers", DINO 1 Negative: "(worst quality, low quality:1.4), (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers, disconnected", DINO 1 Denoising: 0.7, DINO 1 CFG Scale: 9, DINO 1 Steps: 50, DINO 1 Spliter: False, DINO 1 SplitRemove Area: 16, DINO 1 Ckpt Model: ANIME\dreamshaper_5BakedVae.safetensors, DINO 1 Vae Model: None, DINO 1 Clip Skip: Original, DINO 2: hand, DINO 2 Positive: "masterpiece, best quality, (good anatomy:1.2), (five fingers:1.3), lovely hands, detail hands, delicate fingers, detail fingers", DINO 2 Negative: "(worst quality, low quality:1.4), (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers, disconnected", DINO 2 Denoising: 0.5, DINO 2 CFG Scale: 9, DINO 2 Steps: 50, DINO 2 Spliter: False, DINO 2 SplitRemove Area: 16, DINO 2 Ckpt Model: ANIME\dreamshaper_5BakedVae.safetensors, DINO 2 Vae Model: None, DINO 2 Clip Skip: Original, DINO 3: hand:2, DINO 3 Positive: "masterpiece, best quality, (good anatomy:1.2), (five fingers:1.3), lovely hands, detail hands, delicate fingers, detail fingers", DINO 3 Negative: "(worst quality, low quality:1.4), (bad anatomy:1.2), (wrong anatomy:1.2), mutation, amputation, extra fingers, missing fingers, disconnected", DINO 3 Denoising: 0.4, DINO 3 CFG Scale: 9, DINO 3 Steps: 50, DINO 3 Spliter: False, DINO 3 SplitRemove Area: 16, DINO 3 Ckpt Model: ANIME\dreamshaper_5BakedVae.safetensors, DINO 3 Vae Model: None, DINO 3 Clip Skip: Original Template: (detailed hands:1.4), (photorealistic:1.4), official art, unity 8k wallpaper, ultra detailed, aesthetic, masterpiece,best quality, lifelike rendering, immersive atmosphere, chiaroscuro, moody lighting, premium artwork, 1girl,solo, crop bikini, silk bikini, ,emotional expressions, matte skin,outdoor,  , Negative Template: ng_deepnegative_v1_75t, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)) watermark

어떠냐? 100프로는 아니어도 폐기대상은 아니지 않을 까?
이런 사진은 hands를 DINO로 마스킹에서 프롬으로 조질때 clip skip이 높아서 프롬도 더럽게 안먹는다. 
그러니.... 위의 2번 방법에서의 프롬은 그대로 쓰고 딱 하나만 더 바꿔라. - 마스킹에서 손을 그리고 고칠 모델을 다른 것을 쓰는 것이다.

실사보다 2.5D, 2D 모델이 손에 뼈가 없는 것처럼 잘 빠진 것을 응용한 것이다. 
왜 애니 모델을 실사에 쓰냐고?

응? 뭐?손이 2.5D면 어떻고 2D면 어때. 구분할 수 있어? '손만 2D네' 하고 구분할 수 있는 매의 눈이 있을까?


위의 수정에서 내가 사용한 모델은 dreamshaper_5BakedVae.safetensors  이다. 여기에 DINO Denoising strength 0.7,  DINO CFG Scale 10,  DINO 1 Steps 2배로 했다. 나머지 수정방법도 EXIF에 다 있다.

끄읕
-----------------

여기부터 내용과 관계없는 자랑질이다

이번 글에 사용된, 내가 만든 실사 로라의 끝판왕인 흑미녀이시다. 흑미녀에 관심이 있으시고 만드신 흑로라 있으면 같이 나눠보자.