Skip to content

Python Dependencies on MocapNET MNET4 using Colab #139

@AmmarkoV

Description

@AmmarkoV

From Vivek Chouhan (https://www.linkedin.com/in/vivek-chouhan/) :

while running mocapnet mnet4 using colab
users will get error while running the mocap command as the command as > dev/null at end which doesnt show the error
and issue is mediapipe has removed all its previous versions so it is not able to find .solutions module in it
and by default it downloads 0.10.35
so i think upgrade will be required

there are lot of dependency issues with mocapnet regarding its python3 libraries

u need to update the setup.sh file where we get the models zip folder from drive

below i have pasted the portion of text which needs to be replaced by the part where we install py libraries

this will make it work without any errors

python3 -m pip install --upgrade pip
hashtag#python3 -m pip install tensorflow numpy numba tensorboard_plugin_profile tensorflow-model-optimization keras pillow tf2onnx onnxruntime onnx matplotlib pydot mediapipe $OPENCV scikit-learn hashtag#More stuff
python3 -m pip install mediapipe==0.10.9
python3 -m pip install
tensorflow==2.13.1
keras==2.13.1
protobuf==3.20.3
numpy==1.24.3
numba==0.57.1
pillow==10.4.0
onnx==1.14.1
onnxruntime==1.16.3
matplotlib==3.7.5
pydot==1.4.2
scikit-learn==1.3.2
opencv-python==4.8.1.78
opencv-contrib-python==4.8.1.78

hashtag#Two ways to get Models!
hashtag#One through the database and compile them yourself (commented out to save Google Collab CPU time)..
hashtag#python3 -m getModelFromDatabase --get 318
hashtag#To generate the archive in the next lines do :

zip mnet4_318.zip step1_/

hashtag#Another just take the precompiled ensembles ready to run

wget http://ammar.gr/mocapnet/mnet4/mnet4_-314.zip -O mnet4_-314.zip

unzip -o mnet4_-314.zip #<- upgrade to 324 mnet4_318.zip

hashtag#Unzip models for PoseNET.py operation..
wget http://ammar.gr/mocapnet/mnet4/mediapipe.zip -O my_models.zip
unzip -o my_models.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions