Imbalanced dataset sampler w/ crossentropyloss not importing on google colab
gnai opened this issue · comments
G commented
Hello, Im trying to import the module on google colab but im getting a no module found error, someone fixed this?
I also tried to install with !pip install torchsampler.
Thanks
Dezoito commented
Were you able to solve this?
UPDATE: this works for me
!git clone https://github.com/ufoym/imbalanced-dataset-sampler.git
%cd /content/imbalanced-dataset-sampler
!pip install .
%cd /content/
Ricardo J Gonzalez commented
You could also do
pip install git+https://github.com/ufoym/imbalanced-dataset-sampler
robinzhaorr commented
You could also do
pip install git+https://github.com/ufoym/imbalanced-dataset-sampler
!pip install git+https://github.com/ufoym/imbalanced-dataset-sampler
For Google Colab