showlab / X-Adapter

[CVPR 2024] X-Adapter: Adding Universal Compatibility of Plugins for Upgraded Diffusion Model
https://showlab.github.io/X-Adapter/
Apache License 2.0
743 stars 44 forks source link

🐛 Fix ImportError: cannot import name 'randn_tensor' #11

Open kadirnar opened 9 months ago

kadirnar commented 9 months ago

Error Messages:

ImportError: cannot import name 'randn_tensor'
ImportError: cannot import name 'PositionNet
vladmandic commented 9 months ago

this should also include update to requirements.txt as previous imports are ok for old requirements (diffusers==0.26 from 08/2023). suggested change implies that you're using newer diffusers.