SforAiDl / KD_Lib

A Pytorch Knowledge Distillation library for benchmarking and extending works in the domains of Knowledge Distillation, Pruning, and Quantization.
https://kd-lib.readthedocs.io/
MIT License
609 stars 58 forks source link

No module named 'KD_Lib.KD' #143

Closed tolusophy closed 2 years ago

tolusophy commented 2 years ago

What could be the cause of the above error after using

from KD_Lib.KD import VanillaKD
Het-Shah commented 2 years ago

I can't see the error message. Can you post the error message again?

tolusophy commented 2 years ago

No module named 'KD_Lib.KD'

That could be because of the pip install

Now, I am tyrying to install from source to see if it works

tolusophy commented 2 years ago

Same error

Het-Shah commented 2 years ago

I am unable to reproduce this error. Can you try making a fresh environment and try installing KD_Lib?

tolusophy commented 2 years ago

kd-lib 0.0.32 requires matplotlib==3.2.1, but you have matplotlib 3.6.1 which is incompatible. kd-lib 0.0.32 requires pip==21.1, but you have pip 22.2.2 which is incompatible. kd-lib 0.0.32 requires wheel==0.32.1, but you have wheel 0.37.1 which is incompatible.

Het-Shah commented 2 years ago

Can you install the required versions in your environment? Your environment is interfered with by the package versions in your base environment.

For example to install matplotlib==3.2.1 run pip install matplotlib==3.2.1

tolusophy commented 2 years ago

Yeah, I am trying that now. Cheers!

tolusophy commented 2 years ago

Great! I'm closing it now! Merci beaucoup