Skip to content
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

I am trying to run using webcam : python -m demo.demo_frankmocap --input_path webcam --renderer_type opengl_gui #18

Open
shashwatcs opened this issue May 27, 2021 · 20 comments

Comments

@shashwatcs
Copy link

Traceback (most recent call last):
File "D:\MINICONDA\envs\frankmocap\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\MINICONDA\envs\frankmocap\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\demo\demo_frankmocap.py", line 23, in
from bodymocap.body_bbox_detector import BodyPoseEstimator
File "C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\bodymocap\body_bbox_detector.py", line 18, in
from detectors.body_pose_estimator.pose2d_models.with_mobilenet import PoseEstimationWithMobileNet
ModuleNotFoundError: No module named 'detectors'

@carlosedubarreto
Copy link
Owner

We had problems like this in the past because of a problem installing git package.

try this code
conda install -c anaconda git

then run the installation bat again, please.

@shashwatcs
Copy link
Author

it say ERROR: detectron2-0.3-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

@carlosedubarreto
Copy link
Owner

well that is a big issue then....

The problem is. To install detectron was so difficult, that, to be able to make things easier for everyone, I compiled it in my machine, and shared this compiled package.

Looks like yous system is not compatible with mine... so you would have to compile in your own machine.

But I think what is the problem.
I think its throwing this error, because you are not using the version that was on the instruction.

It was you that installed python 3.8?
For frankmocap I prepared everything to run using python 3.7

If you have a different version of python, probably will be easier to install and run the installation via python 3.7, so you wont have to compile detectron on your own.

And I cant explain how I did, because I dont remember 😅

Another thing. As far as I know, detectron is used only if you want to do pose estimation on the whole body or hands only.

If you are good to run only the body, without pose estimationm from the hands, you could run the other command to pose estimate only the body.

This only body solution would be this code (I took from frankmocap site)

python -m demo.demo_bodymocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output

@shashwatcs
Copy link
Author

Ok I will try with py 2.7

@carlosedubarreto
Copy link
Owner

carlosedubarreto commented May 27, 2021

Ok I will try with py 2.7

2.7 no....

try with 3.7

on miniconda you can create virtualenviroment setting it to be 3.7, probably vanila python can let you do the same. I guess, just dont know how.

@shashwatcs
Copy link
Author

oh sorry
3.7

@shashwatcs
Copy link
Author

3.7.10 is fine

@shashwatcs
Copy link
Author

C:\Users\binod\AppData\Local\Programs\Python\Python37\python37.exe: can't find 'main' module in 'detectron2-0.3-cp37-cp37m-win_amd64.whl'

@shashwatcs
Copy link
Author

I am getting this error

@shashwatcs
Copy link
Author

It installed Thank You for your support.

@shashwatcs
Copy link
Author

Command "c:\users\binod\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\binod\AppData\Local\Temp\pip-install-3g8ffzwy\pycocotools\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\binod\AppData\Local\Temp\pip-record-s8vc8le1\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\binod\AppData\Local\Temp\pip-install-3g8ffzwy\pycocotools
You are using pip version 10.0.1, however version 21.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
got this issue

@shashwatcs
Copy link
Author

This solved

@shashwatcs
Copy link
Author

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install detectron2-0.3-cp37-cp37m-win_amd64.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\detectron2-0.3-cp37-cp37m-win_amd64.whl
Collecting Pillow>=7.1
  Using cached Pillow-8.2.0-cp37-cp37m-win_amd64.whl (2.2 MB)
Collecting tqdm>4.29.0
  Using cached tqdm-4.61.0-py2.py3-none-any.whl (75 kB)
Collecting yacs>=0.1.6
  Using cached yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting tensorboard
  Using cached tensorboard-2.5.0-py3-none-any.whl (6.0 MB)
Collecting fvcore>=0.1.2
  Using cached fvcore-0.1.5.post20210518.tar.gz (49 kB)
Collecting pydot
  Using cached pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Collecting termcolor>=1.1
  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting cloudpickle
  Using cached cloudpickle-1.6.0-py3-none-any.whl (23 kB)
Collecting matplotlib
  Using cached matplotlib-3.4.2-cp37-cp37m-win_amd64.whl (7.1 MB)
Collecting pycocotools>=2.0.2
  Using cached pycocotools-2.0.2.tar.gz (23 kB)
Collecting tabulate
  Using cached tabulate-0.8.9-py3-none-any.whl (25 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
Collecting numpy
  Using cached numpy-1.20.3-cp37-cp37m-win_amd64.whl (13.6 MB)
Collecting pyyaml>=5.1
  Using cached PyYAML-5.4.1-cp37-cp37m-win_amd64.whl (210 kB)
Collecting iopath>=0.1.7
  Using cached iopath-0.1.8-py3-none-any.whl (19 kB)
Collecting portalocker
  Using cached portalocker-2.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: setuptools>=18.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from pycocotools>=2.0.2->detectron2==0.3) (52.0.0.post20210125)
Collecting cython>=0.27.3
  Using cached Cython-0.29.23-cp37-cp37m-win_amd64.whl (1.6 MB)
Collecting pyparsing>=2.2.1
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.3.1-cp37-cp37m-win_amd64.whl (51 kB)
Collecting python-dateutil>=2.7
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting cycler>=0.10
  Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pywin32!=226
  Using cached pywin32-300-cp37-cp37m-win_amd64.whl (9.2 MB)
Collecting markdown>=2.6.8
  Using cached Markdown-3.3.4-py3-none-any.whl (97 kB)
Collecting tensorboard-plugin-wit>=1.6.0
  Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
Collecting google-auth<2,>=1.6.3
  Using cached google_auth-1.30.1-py2.py3-none-any.whl (146 kB)
Requirement already satisfied: wheel>=0.26 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (0.36.2)
Collecting absl-py>=0.4
  Using cached absl_py-0.12.0-py3-none-any.whl (129 kB)
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-2.0.1-py3-none-any.whl (288 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Using cached google_auth_oauthlib-0.4.4-py2.py3-none-any.whl (18 kB)
Collecting requests<3,>=2.21.0
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting grpcio>=1.24.3
  Using cached grpcio-1.38.0-cp37-cp37m-win_amd64.whl (3.1 MB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
  Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Collecting protobuf>=3.6.0
  Using cached protobuf-3.17.1-cp37-cp37m-win_amd64.whl (908 kB)
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting rsa<5,>=3.1.4
  Using cached rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-4.2.2-py3-none-any.whl (11 kB)
Collecting requests-oauthlib>=0.7.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting importlib-metadata
  Using cached importlib_metadata-4.3.0-py3-none-any.whl (16 kB)
Collecting pyasn1<0.5.0,>=0.4.6
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: certifi>=2017.4.17 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.3) (2020.12.5)
Collecting chardet<5,>=3.0.2
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting zipp>=0.5
  Using cached zipp-3.4.1-py3-none-any.whl (5.2 kB)
Collecting typing-extensions>=3.6.4
  Using cached typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Building wheels for collected packages: fvcore, pycocotools, termcolor, future
  Building wheel for fvcore (setup.py) ... done
  Created wheel for fvcore: filename=fvcore-0.1.5.post20210518-py3-none-any.whl size=60362 sha256=e1414526d0ab54d3d5a18b09e7ed2333f945982ad1f83b4c56c33e87b307c2bf
  Stored in directory: c:\users\binod\appdata\local\pip\cache\wheels\4c\8c\0f\05f1706f3ec808e61e3eab1cf3dfb2526e0490689da5e71854
  Building wheel for pycocotools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\binod\AppData\Local\Temp\pip-wheel-pef6jrzq'
       cwd: C:\Users\binod\AppData\Local\Temp\pip-install-t2fe66wv\pycocotools_81b165f3265d42b4bf2f18b98e1add14\
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\coco.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\mask.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\__init__.py -> build\lib.win-amd64-3.7\pycocotools
  running build_ext
  cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
  c:\users\binod\appdata\local\temp\pip-install-t2fe66wv\pycocotools_81b165f3265d42b4bf2f18b98e1add14\.eggs\cython-0.29.23-py3.7-win-amd64.egg\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\binod\AppData\Local\Temp\pip-install-t2fe66wv\pycocotools_81b165f3265d42b4bf2f18b98e1add14\pycocotools\_mask.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  building 'pycocotools._mask' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\common
  creating build\temp.win-amd64-3.7\Release\pycocotools
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\binod\appdata\local\temp\pip-install-t2fe66wv\pycocotools_81b165f3265d42b4bf2f18b98e1add14\.eggs\numpy-1.20.3-py3.7-win-amd64.egg\numpy\core\include -I./common -ID:\MINICONDA\envs\frankmocap\include -ID:\MINICONDA\envs\frankmocap\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.7\Release\./common/maskApi.obj
  maskApi.c
  ./common/maskApi.c(8): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pycocotools
  Running setup.py clean for pycocotools
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4829 sha256=fb3b9da2cfddb02155cf37a9ec7931edae300680a71c6efb06310ad1d9323860
  Stored in directory: c:\users\binod\appdata\local\pip\cache\wheels\3f\e3\ec\8a8336ff196023622fbcb36de0c5a5c218cbb24111d1d4c7f2
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=e3816be664b02d6ef0a5cf165ce1b7780c038916e34367ea43d0c2368b984393
  Stored in directory: c:\users\binod\appdata\local\pip\cache\wheels\56\b0\fe\4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Successfully built fvcore termcolor future
Failed to build pycocotools
Installing collected packages: urllib3, pyasn1, idna, chardet, zipp, typing-extensions, six, rsa, requests, pywin32, pyasn1-modules, oauthlib, cachetools, tqdm, requests-oauthlib, pyyaml, python-dateutil, pyparsing, portalocker, Pillow, numpy, kiwisolver, importlib-metadata, google-auth, cycler, yacs, werkzeug, termcolor, tensorboard-plugin-wit, tensorboard-data-server, tabulate, protobuf, matplotlib, markdown, iopath, grpcio, google-auth-oauthlib, cython, absl-py, tensorboard, pydot, pycocotools, fvcore, future, cloudpickle, detectron2
    Running setup.py install for pycocotools ... error
    ERROR: Command errored out with exit status 1:
     command: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\binod\AppData\Local\Temp\pip-record-qo8b675t\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\MINICONDA\envs\frankmocap\Include\pycocotools'
         cwd: C:\Users\binod\AppData\Local\Temp\pip-install-t2fe66wv\pycocotools_81b165f3265d42b4bf2f18b98e1add14\
    Complete output (21 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\coco.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\mask.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\__init__.py -> build\lib.win-amd64-3.7\pycocotools
    running build_ext
    skipping 'pycocotools\_mask.c' Cython extension (up-to-date)
    building 'pycocotools._mask' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\common
    creating build\temp.win-amd64-3.7\Release\pycocotools
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MINICONDA\envs\frankmocap\lib\site-packages\numpy\core\include -I./common -ID:\MINICONDA\envs\frankmocap\include -ID:\MINICONDA\envs\frankmocap\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.7\Release\./common/maskApi.obj
    maskApi.c
    ./common/maskApi.c(8): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-t2fe66wv\\pycocotools_81b165f3265d42b4bf2f18b98e1add14\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\binod\AppData\Local\Temp\pip-record-qo8b675t\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\MINICONDA\envs\frankmocap\Include\pycocotools' Check the logs for full command output.

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install faster_rcnn-0.1-cp37-cp37m-win_amd64.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\faster_rcnn-0.1-cp37-cp37m-win_amd64.whl
Installing collected packages: faster-rcnn
Successfully installed faster-rcnn-0.1

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install PyOpenGL_accelerate-3.1.5-cp37-cp37m-win_amd64.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\pyopengl_accelerate-3.1.5-cp37-cp37m-win_amd64.whl
Installing collected packages: PyOpenGL-accelerate
Successfully installed PyOpenGL-accelerate-3.1.5

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install PyOpenGL-3.1.5-cp37-cp37m-win_amd64.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\pyopengl-3.1.5-cp37-cp37m-win_amd64.whl
Installing collected packages: PyOpenGL
Successfully installed PyOpenGL-3.1.5

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install opendr-0.73-py3-none-any.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\opendr-0.73-py3-none-any.whl
Collecting chumpy>=0.58
  Using cached chumpy-0.70.tar.gz (50 kB)
Requirement already satisfied: matplotlib in d:\miniconda\envs\frankmocap\lib\site-packages (from opendr==0.73) (3.4.2)
Requirement already satisfied: Cython in d:\miniconda\envs\frankmocap\lib\site-packages (from opendr==0.73) (0.29.23)
Collecting scipy>=0.13.0
  Using cached scipy-1.6.3-cp37-cp37m-win_amd64.whl (32.6 MB)
Requirement already satisfied: six>=1.11.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from chumpy>=0.58->opendr==0.73) (1.16.0)
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in d:\miniconda\envs\frankmocap\lib\site-packages (from scipy>=0.13.0->chumpy>=0.58->opendr==0.73) (1.20.3)
Requirement already satisfied: cycler>=0.10 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->opendr==0.73) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->opendr==0.73) (8.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->opendr==0.73) (1.3.1)
Requirement already satisfied: pyparsing>=2.2.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->opendr==0.73) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->opendr==0.73) (2.8.1)
Building wheels for collected packages: chumpy
  Building wheel for chumpy (setup.py) ... done
  Created wheel for chumpy: filename=chumpy-0.70-py3-none-any.whl size=58285 sha256=2cdec030d9403f49c4e9a15394a7331d677428d35293a8e86c1d18b8ba52e4a7
  Stored in directory: c:\users\binod\appdata\local\pip\cache\wheels\59\68\de\5e0c5d77e573e8c150e69e07a25035e6b6a04952d6e1814dbc
Successfully built chumpy
Installing collected packages: scipy, chumpy, opendr
Successfully installed chumpy-0.70 opendr-0.73 scipy-1.6.3

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install detectron2-0.3-cp37-cp37m-win_amd64.wh;
ERROR: Could not find a version that satisfies the requirement detectron2-0.3-cp37-cp37m-win_amd64.wh (from versions: none)
ERROR: No matching distribution found for detectron2-0.3-cp37-cp37m-win_amd64.wh

(frankmocap) C:\Users\binod\Downloads\FRANKMOCAP\MOCAP\whl>pip install detectron2-0.3-cp37-cp37m-win_amd64.whl
Processing c:\users\binod\downloads\frankmocap\mocap\whl\detectron2-0.3-cp37-cp37m-win_amd64.whl
Requirement already satisfied: tabulate in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (0.8.9)
Requirement already satisfied: pydot in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (1.4.2)
Requirement already satisfied: Pillow>=7.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (8.2.0)
Collecting pycocotools>=2.0.2
  Using cached pycocotools-2.0.2.tar.gz (23 kB)
Requirement already satisfied: matplotlib in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (3.4.2)
Requirement already satisfied: tqdm>4.29.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (4.61.0)
Collecting cloudpickle
  Using cached cloudpickle-1.6.0-py3-none-any.whl (23 kB)
Requirement already satisfied: termcolor>=1.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (1.1.0)
Collecting fvcore>=0.1.2
  Using cached fvcore-0.1.5.post20210518-py3-none-any.whl
Collecting future
  Using cached future-0.18.2-py3-none-any.whl
Requirement already satisfied: tensorboard in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (2.5.0)
Requirement already satisfied: yacs>=0.1.6 in d:\miniconda\envs\frankmocap\lib\site-packages (from detectron2==0.3) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from fvcore>=0.1.2->detectron2==0.3) (5.4.1)
Requirement already satisfied: numpy in d:\miniconda\envs\frankmocap\lib\site-packages (from fvcore>=0.1.2->detectron2==0.3) (1.20.3)
Requirement already satisfied: iopath>=0.1.7 in d:\miniconda\envs\frankmocap\lib\site-packages (from fvcore>=0.1.2->detectron2==0.3) (0.1.8)
Requirement already satisfied: portalocker in d:\miniconda\envs\frankmocap\lib\site-packages (from iopath>=0.1.7->fvcore>=0.1.2->detectron2==0.3) (2.3.0)
Requirement already satisfied: setuptools>=18.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from pycocotools>=2.0.2->detectron2==0.3) (52.0.0.post20210125)
Requirement already satisfied: cython>=0.27.3 in d:\miniconda\envs\frankmocap\lib\site-packages (from pycocotools>=2.0.2->detectron2==0.3) (0.29.23)
Requirement already satisfied: python-dateutil>=2.7 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->detectron2==0.3) (2.8.1)
Requirement already satisfied: pyparsing>=2.2.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->detectron2==0.3) (2.4.7)
Requirement already satisfied: cycler>=0.10 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->detectron2==0.3) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from matplotlib->detectron2==0.3) (1.3.1)
Requirement already satisfied: six in d:\miniconda\envs\frankmocap\lib\site-packages (from cycler>=0.10->matplotlib->detectron2==0.3) (1.16.0)
Requirement already satisfied: pywin32!=226 in d:\miniconda\envs\frankmocap\lib\site-packages (from portalocker->iopath>=0.1.7->fvcore>=0.1.2->detectron2==0.3) (300)
Requirement already satisfied: absl-py>=0.4 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (0.12.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (0.4.4)
Requirement already satisfied: protobuf>=3.6.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (3.17.1)
Requirement already satisfied: markdown>=2.6.8 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (3.3.4)
Requirement already satisfied: google-auth<2,>=1.6.3 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (1.30.1)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (0.6.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (1.8.0)
Requirement already satisfied: werkzeug>=0.11.15 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (2.0.1)
Requirement already satisfied: grpcio>=1.24.3 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (1.38.0)
Requirement already satisfied: requests<3,>=2.21.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (2.25.1)
Requirement already satisfied: wheel>=0.26 in d:\miniconda\envs\frankmocap\lib\site-packages (from tensorboard->detectron2==0.3) (0.36.2)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.3) (4.2.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.3) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4 in d:\miniconda\envs\frankmocap\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.3) (4.7.2)
Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.3) (1.3.0)
Requirement already satisfied: importlib-metadata in d:\miniconda\envs\frankmocap\lib\site-packages (from markdown>=2.6.8->tensorboard->detectron2==0.3) (4.3.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\miniconda\envs\frankmocap\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard->detectron2==0.3) (0.4.8)
Requirement already satisfied: idna<3,>=2.5 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.3) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.3) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.3) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.3) (1.26.5)
Requirement already satisfied: oauthlib>=3.0.0 in d:\miniconda\envs\frankmocap\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.3) (3.1.0)
Requirement already satisfied: typing-extensions>=3.6.4 in d:\miniconda\envs\frankmocap\lib\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard->detectron2==0.3) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in d:\miniconda\envs\frankmocap\lib\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard->detectron2==0.3) (3.4.1)
Building wheels for collected packages: pycocotools
  Building wheel for pycocotools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\binod\AppData\Local\Temp\pip-wheel-vjhb_zcm'
       cwd: C:\Users\binod\AppData\Local\Temp\pip-install-su_gy481\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\coco.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\mask.py -> build\lib.win-amd64-3.7\pycocotools
  copying pycocotools\__init__.py -> build\lib.win-amd64-3.7\pycocotools
  running build_ext
  cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
  D:\MINICONDA\envs\frankmocap\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\binod\AppData\Local\Temp\pip-install-su_gy481\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\pycocotools\_mask.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  building 'pycocotools._mask' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\common
  creating build\temp.win-amd64-3.7\Release\pycocotools
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MINICONDA\envs\frankmocap\lib\site-packages\numpy\core\include -I./common -ID:\MINICONDA\envs\frankmocap\include -ID:\MINICONDA\envs\frankmocap\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.7\Release\./common/maskApi.obj
  maskApi.c
  ./common/maskApi.c(8): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pycocotools
  Running setup.py clean for pycocotools
Failed to build pycocotools
Installing collected packages: pycocotools, fvcore, future, cloudpickle, detectron2
    Running setup.py install for pycocotools ... error
    ERROR: Command errored out with exit status 1:
     command: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\binod\AppData\Local\Temp\pip-record-gq58muv9\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\MINICONDA\envs\frankmocap\Include\pycocotools'
         cwd: C:\Users\binod\AppData\Local\Temp\pip-install-su_gy481\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\
    Complete output (21 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\coco.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\mask.py -> build\lib.win-amd64-3.7\pycocotools
    copying pycocotools\__init__.py -> build\lib.win-amd64-3.7\pycocotools
    running build_ext
    skipping 'pycocotools\_mask.c' Cython extension (up-to-date)
    building 'pycocotools._mask' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\common
    creating build\temp.win-amd64-3.7\Release\pycocotools
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MINICONDA\envs\frankmocap\lib\site-packages\numpy\core\include -I./common -ID:\MINICONDA\envs\frankmocap\include -ID:\MINICONDA\envs\frankmocap\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-3.7\Release\./common/maskApi.obj
    maskApi.c
    ./common/maskApi.c(8): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\MINICONDA\envs\frankmocap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"'; __file__='"'"'C:\\Users\\binod\\AppData\\Local\\Temp\\pip-install-su_gy481\\pycocotools_0ad3b48ddd924cc8a239f35d35d4df0b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\binod\AppData\Local\Temp\pip-record-gq58muv9\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\MINICONDA\envs\frankmocap\Include\pycocotools' Check the logs for full command output.

Only detectron2 is not able to install

@carlosedubarreto
Copy link
Owner

carlosedubarreto commented May 28, 2021

Take a look at this previous issue, maybe it can help you

#13

Because from what I saw, you are having problems with pycocotools

@shashwatcs
Copy link
Author

It resolve but now when i run I am trying to run using webcam : python -m demo.demo_frankmocap --input_path webcam --renderer_type opengl_gui
Key already registered with the same priority: GroupSpatialSoftmax and does nothing

@carlosedubarreto
Copy link
Owner

Oh sorry, I didnt try with webcam, so i'm not able to help.
The best would be to search for an issue on official frankmocap github site, probably someone else also had this problem and maybe there are some instructions to help you.

@shashwatcs
Copy link
Author

it says same for vid also

@carlosedubarreto
Copy link
Owner

Unfortunately I didnt have this type of issue, even for this problem you should get a better response at the original frankmocap github.

@shashwatcs
Copy link
Author

Sir I just had to delete and make the env again but now it says detectron _C is missing

@carlosedubarreto
Copy link
Owner

Please send the full output when you run the installation, probably there are some errors over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants