ShikunLi / Sel-CL

CVPR 2022: Selective-Supervised Contrastive Learning with Noisy Labels
89 stars 17 forks source link

Apex 0.1 installation problem while trying to run codes from git repo - https://github.com/ShikunLi/Sel-CL #6

Open prinxc25 opened 1 year ago

prinxc25 commented 1 year ago

Hi, I tried installing apex0.1 using the code

  1. 1st this """%%writefile setup.sh git clone https://github.com/NVIDIA/apex cd apex pip install -v --disable-pip-version-check --no-cache-dir ./""" and then this """!sh setup.sh""" after this got this message too Successfully built apex Installing collected packages: apex Attempting uninstall: apex Found existing installation: apex 0.1 Uninstalling apex-0.1: Removing file or directory /usr/local/lib/python3.8/dist-packages/apex-0.1.dist-info/ Removing file or directory /usr/local/lib/python3.8/dist-packages/apex/ Successfully uninstalled apex-0.1 Successfully installed apex-0.1

  2. When I ran the code in git repo - https://github.com/ShikunLi/Sel-CL, in the log file I am getting error which suggests installation of apex is not done correctly, the error message is as follows """multi_tensor_applier fused unscale kernel is unavailable, possibly because apex was installed without --cuda_ext --cpp_ext. Using Python fallback. Original ImportError was: ModuleNotFoundError("No module named 'amp_C'")""" results.log

  3. to this I tried installing apex through

  4. """pip install -v --disable-pip-version-check --no-cache-dir --global_option = "--cpp_ext" --global_option ="--cuda_ext" ./ """ which gives error while installing and apex doesn't get installed.

I would appreciate any help that I can get so that I can run the code successfully. Thankss.

Kadam-Tushar commented 1 year ago

Hi @prinxc25, You can refer https://github.com/Kadam-Tushar/Sel-CL where I tried to remove apex dependency.