Comfyui Advanced Tutorial 05 - Depth Map

AI Told www.youtube.com

סיכום תמציתי

הסרטון מסביר כיצד להשתמש במפת עומק (depth map) כדי ליצור גרסאות שונות של תמונות קיימות מבלי להפר זכויות יוצרים. הוא מציג שלושה תהליכי עבודה שונים ב-ComfyUI:

  • שימוש במפת עומק בלבד לשינוי סגנון התמונה.
  • שילוב מפת עומק עם ControlNet ליצירת תמונות עקביות יותר.
  • תהליך עבודה מותאם אישית ליצירת תמונות ריאליסטיות של בני אדם.

הסרטון מדגיש את החשיבות של פרמטרים כמו "גשר" (האיזון בין עקביות ליצירתיות) ושימוש ב-Lora מתאימים.

  • שימוש במפת עומק ליצירת וריאציות של תמונות קיימות.
  • שלושה תהליכי עבודה שונים ב-ComfyUI.
  • התאמת פרמטרים כמו "גשר" ושימוש ב-Lora.

מבוא למפת עומק ושימושים

הסרטון עוסק בשימוש במפת עומק (depth map) כדי ליצור גרסאות שונות של תמונות קיימות, תוך הימנעות מהפרת זכויות יוצרים. מפת עומק מאפשרת לקבל מידע התייחסות מתמונה ולהשתמש בו ליצירת תמונה חדשה בסגנון שונה. הסרטון יציג שלושה תהליכי עבודה שונים וידגים את התוצאות של כל אחד מהם.

תהליך עבודה ראשון: שימוש במפת עומק בלבד

תהליך העבודה הראשון כולל טעינת תמונת התייחסות, ממנה יופק מידע העומק. לאחר מכן, ישנה קבוצה בשם "עומק" הכוללת את "Depth Anything Preprocessor". אם אין לכם Depth v2, הוא יורד אוטומטית (בגודל של כ-1-2 ג'יגהבייט). בנוסף, יש להוריד את Depth Lora, שכן התהליך לא עובד בלעדיה. ישנה אפשרות לטעון Lora נוספים עבור שלב הדגימה הראשון, תוך הקפדה על הוספת מילות מפתח מתאימות. מומלץ להשתמש באותם Lora גם בשלב השני. בנוסף, יש להשתמש בתיקון High-Res Fix, המופיע בכל תהליכי העבודה. פרמטר חשוב הוא ה"גשר", המאפשר להתאים בין עקביות ליצירתיות. ערך קרוב ל-1 יוצר תמונה יצירתית יותר, בעוד שערך קרוב ל-0 יוצר תמונה עקבית יותר. מומלץ לקרוא את ההערות המצורפות להסבר מפורט יותר.

הדגמה: תמונה של כיתה עם תלמידים, עם בקשה (prompt) מג'מיני ליצור תמונה בסגנון לגו. התוצאה מרשימה, שכן הסגנון שונה לחלוטין מבלי לשנות את מיקום האובייקטים. עם זאת, ישנם ליקויים כמו טקסט לא ברור ופרטים חסרים, מה שמצביע על הצורך בתהליך Inpainting, שיידון בהמשך.

תהליך עבודה שני: שילוב מפת עומק עם ControlNet

תהליך העבודה השני זהה לקודם, אך עם תוספת קטנה: ControlNet. למרות שמדובר בשינוי קטן לכאורה, הוא משפיע באופן משמעותי על התמונות, והופך אותן לעקביות יותר מבחינת פרטים, אך פחות יצירתיות. מומלץ לא להשתמש בערך חוזק (Strength) של 1 עבור ControlNet, אלא בערכים נמוכים יותר כמו 0.25 או 0.50. ערך של 1 עלול לשבור את התמונה וליצור תמונה דומה מדי למקור.

הדגמה: שימוש ב-ControlNet עם אותו סגנון ובקשה (prompt) כמו קודם, במטרה לשחזר את התמונה המקורית. התוצאה דומה מאוד למקור, אך אחת התמונות נוצרה על ידי AI.

תהליך עבודה שלישי: תמונות ריאליסטיות של בני אדם

מכיוון שלא ניתן להשתמש במפת עומק עם Sigma Vision, יש צורך ליצור תמונות ריאליסטיות של בני אדם עם המיקום הרצוי. תהליך עבודה זה כולל מספר תוספות: טעינת Lora נוסף עבור בני אדם (מומלץ לקרוא את ההערות המצורפות), ושימוש ב-Lora מיוחדים עבור פרטי העור. בצד ימין של תהליך העבודה ישנם שני Detailer וביטויי מתמטיקה המתאימים את גודל האריח בהתאם לקלט. בנוסף, ישנם Upscaler כמו Flux Dev ו-Sigma Vision Upscaler. מומלץ להשתמש ב-Sigma Vision לקבלת תוצאות טובות יותר, אך ניתן להשתמש ב-Flux ליצירתיות רבה יותר. מומלץ לקרוא את ההערות המצורפות להסבר מפורט על ה-Detailer. מספר הצעדים של ה-Basic VAE Upscaler מוגדר כברירת מחדל ל-2 כדי להאיץ את התהליך, אך ניתן להגדיל אותו ל-4 לקבלת פרטים נוספים. כדי לייעל את התהליך, מומלץ להשתמש ב-Turbo VAE במהלך ה-Upscaling, ולהתאים את מספר הצעדים בהתאם להגדרות.

הדגמה: השוואה בין התוצאות של Sigma Vision Detailer ו-Flux Detailer. Sigma Vision Detailer מספק תוצאות טובות יותר עבור תמונות של בני אדם, עם פרטים ריאליסטיים יותר.

דוגמאות נוספות ומטרות תהליכי העבודה

מטרת תהליכי העבודה היא לקבל התייחסות מתמונה קיימת וליצור גרסה משוכפלת או שונה שלה. עבור תמונות של בני אדם, המטרה היא ליצור דמות ריאליסטית שניתן להשתמש בה למטרות מיתוג, כמו למשל דוגמנית אינסטגרם. הסרטון מציין תוכניות ליצור פרק נוסף שיעסוק בתהליך מסחרי, לאחר הסבר על Inpainting וכלי עבודה נוספים.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Transcript

YouTube Transcript Generator

0:00 Welcome to episode 5. Today's discussion is depth map. The main reason to use this is getting reference from an image on the net and making a version or a copy without getting copyright. I will give you three workflows. After that, I will show you the results for each one of them. First, we have load reference image here. The image which we will get depth from. After that, we have a group called depth. It includes depth anything pre-processor. If you don't have depth v2, it will be downloaded automatically about one or two gigs. And the depth laura, you must download this. It doesn't work without this depth laura. I will give all the links.

0:46 Optional Laura load section. You can put your own loras. It is for sampler one. Do not forget to put your keywords. After that, we have Laura load again for pass two. I recommend same loras as pass one. The rest is you know from first episodes the high-risisk fix which always has to be in all our workflows. But one parameter is now more critical to be explained here. I call it the bridge which has two options the steps and d noiseis. It adjusts between consistency and creativity. Close to value one makes creative close to zero makes consistent. I chose the 0.65 65D noise and 30 steps. I suggest you should read the notes. Now, let me show you one example of this

1:33 workflow. First, I load this image. A classroom with students and after that I asked Gemini to make me prompt as if this image was made by Lego style. Now, results. It is impressive. Without changing the position of anything, we just changed the style. Of course, there are errors like text, details, etc. Because of this, it shows us a need. and inpainting workflow will be our topic later but overall it is not bad. Now time to get into the second workflow which is absolutely same just one little difference. Now this second workflow's only difference is control net although it looks small difference there is significant change on images it makes more consistent details but lacks creativity but do not try to use at

2:20 strength value 1. I suggest 025 or 050. The value of one completely broken and similar image to original. You should use this one. Now an example with controlNet plus the same style and prompt is describing the original image. Here we use and try to replicate the original image. You see it is very similar but one of them is AI. Although I have not upscaled this one yet. It is too good. Before we get into the third workflow, I want to show you the output of it. Since we can't use depth with Sigma vision, there is a need to make realistic human images with the position we want to replicate. I made a custom workflow for human images. With Laura's and detailer, we get this result. Now,

3:06 let's see how we can get this quality. I will only tell the extras different from the other workflows. First difference is we have extra Laura load for human. I will leave the notes you should read carefully. We have special luras for skin detailer. On the right side of the workflow, we have two detailers and math expressions which adjust the tile size according to the input. We have upscaler flux dev and sigma vision upscaler. I prefer the sigma vision but if you want like more creativity you can use flux. These are detailers. You should read the notes I have given you on the workflow. I made the basiculer steps set to two to make faster, but if you want more details, you can set it to four. It increases the SD upscaler steps, but it increases the

3:53 time. So to be more efficient, I put turbola while upscaling. Also, this workflow can be optimized with turbola and its steps you can adjust according to your settings. Time to see the result of upscaler. You can easily see Sigma vision detailer is best on human images. Realistic details have been added. For example, this person can be our t-shirt model. You know, I gave you the object migration workflow. We can easily change the t-shirt and add logo with that. This is why we are doing this. Now, I will show you some different examples of these workflows result. So, the goal of these workflows is to get reference we like on the net and after that we tell Gemini to give the prompt for the exact same which is the replicate or make different version of it. For the human

4:39 images, our goal is to make realistic character we can use for our branding for like Instagram model showing off. I am telling you these to give ideas. Also, I am planning to make episode for this commercial walkthrough after showing in painting and some tools we need. Hope this tutorial helps to improve your designs. See you next video.

Share

YouTube Video Summaries