AI आर्ट के लिए ControlNet का उपयोग कैसे करें
ControlNet एक powerful extension है जो Stable Diffusion में image generation को precisely control करने की सुविधा देता है। यह आपको pose, depth, edges और अन्य structural elements को maintain रखते हुए नई images बनाने में मदद करता है।
- AUTOMATIC1111 WebUI में ControlNet extension install करें. Extensions tab पर जाकर Available sub-tab select करें। Search box में 'sd-webui-controlnet' type करें और Install button दबाएं। Installation complete होने के बाद Settings > Reload UI पर click करें।
- Reference image upload करें. txt2img या img2img tab में जाएं। ControlNet section expand करें और Enable checkbox check करें। Image upload area में अपना reference image drag करें या browse करके select करें।
- Appropriate preprocessor select करें. Preprocessor dropdown से अपनी requirement के अनुसार option choose करें। Pose control के लिए 'openpose', edge detection के लिए 'canny', depth के लिए 'depth' select करें। Preview button दबाकर processed result देखें।
- Control model select करें. Model dropdown से preprocessor के matching model choose करें। OpenPose के लिए 'control_openpose', Canny के लिए 'control_canny' select करें। Model weight को 0.5-1.0 के बीच adjust करें।
- Prompt और settings configure करें. Main prompt box में detailed description लिखें। CFG Scale को 7-15 के बीच set करें। Steps को 20-50 के बीच रखें। Sampling method के लिए DPM++ 2M Karras recommend किया जाता है।
- Advanced control parameters adjust करें. Control Weight को 0.8-1.2 range में fine-tune करें। Starting Control Step को 0.0 पर रखें और Ending Control Step को 1.0 पर set करें। Control Mode को 'Balanced' पर default रखें।
- Image generate करें और results analyze करें. Generate button click करें और results का wait करें। Generated image में structural accuracy check करें। अगर result satisfactory नहीं है तो Control Weight या Prompt को modify करके retry करें।