-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Dear all,
- I tried to install Pose2Sim Version 0.10 on Google Colab.
Installation of conda is a little different:
https://saturncloud.io/blog/how-to-install-conda-package-to-google-colab/
!pip install -q condacolab
import condacolab
condacolab.install()
!conda --version
import condacolab
condacolab.check()
switch in Colab to , not only in the bash executing the command
%cd /usr/local/lib/python3.10/site-packages/Pose2Sim/Demo_SinglePerson
Colab has no GUI, so we have to work headless or with a virtual GUI:
There seems to be a workaround (Xvfb):
https://colab.research.google.com/drive/1flu31ulJlgiRL1dnN2ir8wGh9p7Zij2t#scrollTo=8-AxnvAVyzQQ
!pip install pyvirtualdisplay
!apt-get install -y xvfb python-opengl ffmpeg
on Ubuntu: huggingface/deep-rl-class#275
!apt-get install -y xvfb python3-opengl ffmpeg
I then had to this code before running the Demo_SinglePerson:
from pyvirtualdisplay import Display
display = Display(visible=0, size=(1400, 900))
display.start()
from Pose2Sim import Pose2Sim
Pose2Sim.calibration()
Pose2Sim.poseEstimation()
Pose2Sim.synchronization()
Pose2Sim.personAssociation()
Pose2Sim.triangulation()
Pose2Sim.filtering()
Pose2Sim.markerAugmentation()
Pose2Sim.kinematics()
Then I get:
DisabledFunctionError: cv2.imshow() is disabled in Colab, because it causes Jupyter sessions
to crash; see jupyter/notebook#3935.
As a substitution, consider using
from google.colab.patches import cv2_imshow
Well, It seems that then all imports would have been to be replaced. Any chances to run it headless?
- I then tried to install Pose2Sim Version 0.10 on Windows 10:
Installation seemed ok. After trying Demo_SinglePerson with the provided script:
from Pose2Sim import Pose2Sim
Pose2Sim.calibration()
Pose2Sim.poseEstimation()
Pose2Sim.synchronization()
Pose2Sim.personAssociation()
Pose2Sim.triangulation()
Pose2Sim.filtering()
Pose2Sim.markerAugmentation()
Pose2Sim.kinematics()
I got:
No valid CUDA installation found: using OpenVINO backend with CPU.
Inference run on every single frame.
Using HALPE_26 model (body and feet) for pose estimation.
Mode: balanced.
Traceback (most recent call last):
File "c:\Users<osuser>.conda\envs\Pose2Sim\Lib\site-packages\Pose2Sim\Demo_SinglePerson\test.py", line 3, in
Pose2Sim.poseEstimation()
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\Pose2Sim\Pose2Sim.py", line 238, in poseEstimation
rtm_estimator(config_dict)
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\Pose2Sim\poseEstimation.py", line 450, in rtm_estimator
pose_tracker = PoseTracker(
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\solution\pose_tracker.py", line 121, in init
model = solution(mode=mode,
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\solution\body_with_feet.py", line 104, in init
self.det_model = YOLOX(det,
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\object_detection\yolox.py", line 20, in init
super().init(onnx_model,
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\base.py", line 43, in init
onnx_model = download_checkpoint(onnx_model)
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\file.py", line 149, in download_checkpoint
extract_zip(cached_file, tmp_dir)
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\site-packages\rtmlib\tools\file.py", line 28, in extract_zip
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\zipfile.py", line 1268, in init
self._RealGetContents()
File "C:\Users<osuser>.conda\envs\Pose2Sim\lib\zipfile.py", line 1335, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
Any help or suggestions welcome.
Currently I have no own Linux machine available.
Thanks in advance.