Primary competition visual

Amini Cocoa Contamination Challenge

Helping Ghana
$7 000 USD
Completed (11 months ago)
Computer Vision
Object Detection
928 joined
255 active
Starti
Feb 14, 25
Closei
May 11, 25
Reveali
May 12, 25
User avatar
Knowledge_Seeker101
Freelance
Struggling to install Mmcv
Help · 28 Apr 2025, 11:17 · 5

How are you doing Zindians , I am struggling to install mmcv in my google colab environment, its getting stuck at building wheels , i waited for an hour its still not proceeding

Discussion 5 answers
User avatar
nymfree

which version? I last installed 2.0.0 and it took around 15 to 30 min in kaggle

28 Apr 2025, 11:23
Upvotes 1
User avatar
Knowledge_Seeker101
Freelance

i am trying 2.0.0, i wiil try it on kaggle,Thanks alot

User avatar
stefan027

I find managing the dependencies when working with those open-mmlab libraries to be a nightmare. When I work with mmdetection (which requires mmcv, mmengine and mmpretrain) I usually have to downgrade torch. This is the setup that is currently working for me on kaggle. It takes about 5 to 10 min to install everything.

%pip install torch==2.1.1 torchvision==0.16.1 --index-url https://download.pytorch.org/whl/cu121
%pip install transformers==4.35.2
%pip install -U openmim
!mim install mmengine
!mim install "mmcv>=2.0.0rc4, <2.2.0"
%pip install -q mmpretrain

import os
if not os.path.exists("./mmdetection"):
    !git clone https://github.com/open-mmlab/mmdetection.git

%cd mmdetection
%pip install -U pip setuptools wheel
%pip install -e .
28 Apr 2025, 16:52
Upvotes 6
User avatar
CodeJoe

I'm thinking of using mmdetection now. I'm getting tired with yolo😅. Thanks for the setup @stefan027

User avatar
stefan027

Installing the most recent versions of `pip` and `setuptools` now results in a conflict that causes the `mmdet` installation to fail on Kaggle. Replacing the line `%pip install -U pip setuptools wheel` with `%pip install pip==25.0.1 setuptools==79.0.0 wheel==0.45.1` fixes that issue. Installing everything takes < 4 minutes on Kaggle's T4 instances.