-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Installation documentation does not create a working demo #3103
Comments
I am also facing the same issue , How did you solve it? |
create a .venv and instead using mim to install |
@ablankenship10 I also had problems following the docs. This is what worked for me (Ubuntu 22.04): conda create -n mmpose-env python=3.8
conda activate mmpose-env
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install -U openmim
# Since there was a warning that pytorch requires fsspec which is not installed
conda install fsspec -c conda-forge
mim install mmengine
# We need to specify version, otherwise it installs the latest, which is not compatible
mim install "mmcv==2.1.0"
mim install mmdet
# Installing mmpose from source
git clone https:/open-mmlab/mmpose.git
cd mmpose
pip install -r requirements.txt
pip install -v -e .
# Running the demo
python demo/image_demo.py tests/data/coco/000000000785.jpg td-hm_hrnet-w48_8xb32-210e_coco-256x192.py td-hm_hrnet-w48_8xb32-210e_coco-256x192-0e67c616_20220913.pth --out-file vis_results.jpg --draw-heatmap
# Finally, all works but Pytorch produces a warning "UserWarning: Applied workaround for CuDNN issue, install nvrtc.so"
# To fix it, go to environment's lib directory and create a symbolic link
cd $CONDA_PREFIX/lib && sudo ln -sfn libnvrtc.so.11.8.89 libnvrtc.so
|
How did you installed it after cloning it, it has too much of file in it.. |
well it is mentioned in the installation guides how to install with source. |
Thanks for help. I am running the code on Colab , hence I followed to install mmcv from the source ,but when i run the inference, or running the training file , it is giving me registry error. Can you please know what steps you followed for installation. Also , I have installed mmcv from the source which took me 40 minutes for the build setup.
|
📚 The doc issue
Following the documentation at https://mmpose.readthedocs.io/en/latest/installation.html verbatim does not produce a functional demo script.
There are mismatches of versions when trying to setup all the dependencies (mmengine, mmcv, mmdev, mmpose). Not specifying specific versions and relying on latest for all also doesn't work.
The first issue encountered starts at Step 3 running
mim install "mmdet>=3.1.0"
The next section with Notes on how to resolve version mismatch conflicts is a bit confusing. It took ChatGPT reading it twice to understand a proper set of version numbers to install for each package. The <=> symbol suggests to me that a version less than, equal to, or greater than is acceptable which makes no sense, maybe thats just me.
The next issue encountered is running
mim install "mmpose>=1.1.0"
The last error comes when attempting to run the code listed under Verify the Installation (Option B)
After debugging all these issues, getting versions of everything that do work with each other, including subdependencies like numpy and xtcocotools, the code will run but I get the following warning and error, it still does not work:
I'm unsure where to move forward from here.
Suggest a potential alternative/fix
Please update the docs with correct working compatible versions and/or a simplified minimum viable setup process
Ubuntu Linux 22.04
Python 3.10.12
Thanks for your time.
The text was updated successfully, but these errors were encountered: