Comfyui Advanced Tutorial 01 - Highresfix

AI Told www.youtube.com

סיכום תמציתי

הסרטון הוא קורס מתקדם ב-ComfyUI, המתמקד בשיפור איכות התמונות הנוצרות באמצעות מודל Flux. הסרטון מדגיש את החשיבות של שימוש ב-Hires fix להפחתת טשטוש הרקע, התאמת עוצמת ה-Lora נגד טשטוש, יצירת פרומפטים מפורטים ומאוזנים, ושימוש בטכניקות דגימה מתקדמות. בנוסף, הסרטון מציג תהליך עבודה מקיף הכולל דגימה מרובה שלבים ושימוש בצמתי ביטול דגימה (Unsampler) לשיפור איכות התמונה.

  • שימוש ב-Hires fix להפחתת טשטוש הרקע.
  • התאמת עוצמת ה-Lora נגד טשטוש לתוצאות מיטביות.
  • יצירת פרומפטים מפורטים ומאוזנים לשיפור איכות התמונה.
  • שימוש בטכניקות דגימה מתקדמות, כולל צמתי ביטול דגימה (Unsampler).

בחירת המודל המתאים

הסרטון ממליץ על שימוש במודל Flux ליצירת תמונות ב-ComfyUI, ומסביר כי למרות שישנם מודלים אחרים כמו Hydream, ל-Flux יש יתרונות כמו תמיכה ב-Loras וב-ControlNet, וזמני יצירה טובים יותר. מודלים מכווננים (Fine-tuned) של Flux, כמו Flux Sigma Vision, מועדפים ליצירת תמונות מבוססות אנוש. מודלים אלה ו-Loras זמינים באתר Civet AI. בסרטון נעשה שימוש במודל Fluxdev QX quantiz ובמודל quantized text encoder, כאשר קישורים להורדה מופיעים בתיאור הסרטון. מומלץ להתאים את מודל הכימות (Quantization) להגדרות המחשב האישי.

הפחתת טשטוש רקע באמצעות Hires fix

אחת הבעיות העיקריות ביצירת תמונות עם Flux היא טשטוש הרקע. כדי לפתור בעיה זו, הסרטון מציג את שיטת Hires fix, הכוללת הגדלת קנה המידה של תמונת ה-Latent מהדוגם הראשון (Sampler) וחיבורה לדוגם השני. שיטה זו מאפשרת לדוגם להוסיף פרטים נוספים מבלי לשנות את התמונה באופן משמעותי. ערכים קריטיים בתהליך זה כוללים את רמת ה-Denoise של הדוגם השני ואת ערך ההכוונה (Guidance) של Flux, כאשר הערך 50 עובד היטב. מומלץ להשתמש ב-Lora נגד טשטוש מאתר Civet AI.

השפעת עוצמת ה-Lora נגד טשטוש

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

חשיבות הפרומפט המפורט והמאוזן

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

תהליך עבודה מקיף ליצירת תמונות באיכות גבוהה

הסרטון מציג תהליך עבודה מקיף ליצירת תמונות באיכות גבוהה, הכולל מספר חלקים: טעינת מודל Flux, הגדרת פרמטרים (כולל שימוש ב-Loras), דוגם ראשון ליצירת התמונה הראשונית, וצומת ביטול דגימה (Unsampler) המערבב Latent ריק עם ה-Latent של התמונה הראשונה. תהליך ביטול הדגימה אורך זמן, אך משפר משמעותית את איכות התמונה. לאחר הדוגם השני, ניתן לראות את ההבדל העצום באיכות התמונה. קיים גם צומת מעבר שלישי, אך הוא מוגדר כברירת מחדל לעקיפה מכיוון שהוא מאריך מאוד את זמן היצירה.

בדיקת התוצאות והדגמה

הסרטון מציג תוצאות של תמונות שנוצרו באמצעות תהליך העבודה המקיף, תוך שימוש בפרומפט מפורט ובמודל Flux מכוונן. התמונות מדגימות שיפור משמעותי באיכות כאשר משתמשים ב-Hires fix. הסרטון מציג גם תוצאות של שימוש בשיטת TTP upscaling, המשפרת עוד יותר את איכות התמונה וממזערת שגיאות.

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 a new video. Today I will present the Comfy UI advanced course part one as promised. Note that this is not a beginner course. So let's get to the first topic. Which model to use? This question has a simple answer, Flux. But there are many reasons behind that. I would like to say Hydream, but it just doesn't have Loras control net and the generation time is worse, but it has better prompt adherence. There are also fine-tuned models for Flux. I prefer flux sigma vision for generating human-based images. The fine-tuned models and luras are available on Civot AI. In this video, I will use the Fluxdev QX quantiz model and also the quantized text encoder model. All links

0:45 will be in the description. Adjust the quantization model to your PC settings. You must use the Comfy UI manager to install the custom nodes I used in this workflow. The main problem while generating images from Flux is background blur. There is a way of getting rid of that. It is called hires fix. This method is upscaling the latent image from sampler one and connect it to the second sampler. This way sampler add more details without changing the image completely. There are some critical values while doing it. The D noiseis level of sampler 2. The flux guidance value 50 works. Default value of 3.5 on general workflows doesn't work well and Lauras, especially the anti-blur Laura on Civet AI. You can check the website.

1:32 Strongly recommended. Now it's time to see the results of workflow. The second image is more detailed. Look at background. The blur amount is significantly less. But we are not done yet. What if we increase the anti-blur Laura strength to two? You will be surprised. The blur is completely gone and it even fixed the hands. Now I need to tell you important tip. The prompt is also very significant parameter. If you describe more detail about the background, the blur has become less. But you also need to tell the main subject of the focus. I mean you need to be balanced while prompting it. If you less describe the main

2:18 subject then background is more on focus. So make more detailed long prompts but be balanced. [Music] Now I have big workflow that works really well. I will explain it part by part. The load flux section this is where the models will be loaded and then set parameter section. You can use your own Laura. After that there is first pass sampler. This is where the first image created. Now here comes interesting part. There is unsampler node here. What it makes is mixing the empty latent with the latent of the image we first created. I need to warn you that this unsampler process also takes time. Same as the first

3:03 sampler. This process is not short. So I'm not telling you that this image created in seconds. After the second sampler, the outputs will be down there, the first and the second image. So you can see the massive difference for the quality. Lastly, there is third pass node here. I will bypass this as default. It also increases the quality, but it takes really long time. So if you want to try it, I need to warn you that it takes much time. The whole workflow is not created by me. I just found it. So credits goes to

3:50 owner. You can check it. It is time to see the results. Let's test it with one image. This is the prompt I am using. Also, I use flux fine-tuned. You can use normal flux dev model. You can check the civet AI for model I am using. I will give the link. I test it with house interior rather than easy single subject. It is because there are lots of details. So the goal is to minimizing errors and test the limits. You can easily see it is really bad without hyra fix. Then we made it better with hyres. But we done yet? No. There is one more thing the upscaling. But it is for next video. However, I will show you the results of upscaling. It is called TTP upscaling method. The

4:37 result is way better. Minimize the errors. Here is the final image we get. Thank you for watching. Hopefully see you next video.

Share

YouTube Video Summaries