zzzyuqing / DreamMat

[SIGGRAPH2024] DreamMat: High-quality PBR Material Generation with Geometry- and Light-aware Diffusion Models
MIT License
246 stars 9 forks source link

No 'from_unet_inchannel' functions in ControlNetModel #4

Closed CzzzzH closed 3 weeks ago

CzzzzH commented 1 month ago

Hello, thanks for the great work!

The script of training controlnet uses ControlNetModel.from_unet_inchannel instead of ControlNetModel.from_unet, but it seems that there isn't such a function in my diffusers library. What is the version of diffusers you use? Or is it just the same as using ControlNetModel.from_unet?

zzzyuqing commented 1 month ago

Yes, in the newer versions of diffusers, you can directly use ControlNetModel.from_unet. Thanks for the reminder, I've updated the code.