suduo94 / D4M

A pytorch implementation of CVPR24 paper "D4M: Dataset Distillation via Disentangled Diffusion Model"
BSD 2-Clause "Simplified" License
23 stars 2 forks source link

Regarding the StableDiffusionGenLatentsPipeline #4

Closed zou-yawen closed 3 months ago

zou-yawen commented 3 months ago

hi, I try to modify Diffusers source code according to scripts/README.md. However, it produces "ImportError: cannot import name 'StableDiffusionGenLatentsPipeline' from 'diffusers' " Could you please help me

suduo94 commented 3 months ago

Hi there, thanks for your interest! It would be best if you tried to modify the Diffusers source code according to the Readme.md. Remember to install the Diffusers package in an editable mode (See this page for more details).

zou-yawen commented 3 months ago

Hi there, thanks for your interest! It would be best if you tried to modify the Diffusers source code according to the Readme.md. Remember to install the Diffusers package in an editable mode (See this page for more details).

Thank you very much for your reply. I install the Diffusers package in an editable mode follow "git clone https://github.com/huggingface/diffusers.git cd diffusers pip install -e ".[torch]" " and modify the Diffusers source code according to the [Readme.md] image image image image produce error
image Could you please help me, looking forward your reply.

suduo94 commented 3 months ago

I've checked your code and that's right. So I guess that this is because of the diffuser's version. We use the 0.21.0.dev0 in our paper, you could try again with this version.