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

FileNotFoundError: The pose configuration file for the exported model at DLC_Dog_resnet_50_iteration-0_shuffle-0\pose_cfg.yaml was not found. Please check the path to the exported model directory #34

Closed
rrimyyu opened this issue Jan 11, 2021 · 5 comments

Comments

@rrimyyu
Copy link

rrimyyu commented Jan 11, 2021

Hello my name is Rim, currently I am working with deepLabCut live. I wonder if you can help me with followed questions.
I followed the installation instructions for Windows10. I get :

(dlc-live) C:\Users\limli\Desktop\DeepLabCut\DeepLabCut-live-master\DeepLabCut-live-master>dlc-live-test
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:530: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\tensorflow\python\framework\dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])

Creating temporary directory...

Downloading full_dog model from the DeepLabCut Model Zoo...
tar: Error opening archive: Failed to open '\\.\tape0'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  174M    0  4108    0     0   4108      0 12:23:47 --:--:-- 12:23:47  8470
curl: (23) Failed writing body (2908 != 2920)

 Running inference...

https://github.com/DeepLabCut/DeepLabCut-live/blob/master/check_install/dog_clip.avi?raw=True\dog_clip.avi

Run 1 / 1

Traceback (most recent call last):
  File "C:\Users\limli\anaconda3\envs\dlc-live\Scripts\dlc-live-test-script.py", line 33, in <module>
    sys.exit(load_entry_point('deeplabcut-live==0.0.3', 'console_scripts', 'dlc-live-test')())
  File "C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\dlclive\check_install\check_install.py", line 38, in main
    benchmark_videos(model_dir, video_file, display=True, resize=0.5, pcutoff=0.25)
  File "C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\dlclive\benchmark.py", line 644, in benchmark_videos
    output=output,
  File "C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\dlclive\benchmark.py", line 301, in benchmark
    display_cmap=cmap,
  File "C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\dlclive\dlclive.py", line 150, in __init__
    self.read_config()
  File "C:\Users\limli\anaconda3\envs\dlc-live\lib\site-packages\dlclive\dlclive.py", line 164, in read_config
    f"The pose configuration file for the exported model at {cfg_path} was not found. Please check the path to the exported model directory"
FileNotFoundError: The pose configuration file for the exported model at DLC_Dog_resnet_50_iteration-0_shuffle-0\pose_cfg.yaml was not found. Please check the path to the exported model directory

Thank you very much for the help.

@MMathisLab
Copy link
Member

hi @rim-yu it is the same issue as the others, it seems you don't have curl installed, see this line:

curl: (23) Failed writing body (2908 != 2920)

please see docs for the quick fix: https://github.com/DeepLabCut/DeepLabCut-live/blob/master/docs/install_desktop.md

Please note, you also should have curl installed on your computer (typically this is already installed on your system), but just in case, just run sudo apt install curl

@rrimyyu
Copy link
Author

rrimyyu commented Jan 11, 2021

As you can see below, I already installed curl.

(dlc-live) C:\Users\limli\Desktop\DeepLabCut\DeepLabCut-live-master\DeepLabCut-live-master>conda list

absl-py 0.11.0 py37h03978a9_0 conda-forge
astor 0.8.1 pyh9f0ad1d_0 conda-forge
ca-certificates 2020.12.5 h5b45459_0 conda-forge
cached-property 1.5.1 py_0 conda-forge
certifi 2020.12.5 py37h03978a9_0 conda-forge
colorcet 2.0.2 pypi_0 pypi
curl 0.0.1 pypi_0 pypi
deeplabcut-live 0.0.3 pypi_0 pypi
gast 0.4.0 pyh9f0ad1d_0 conda-forge
grpcio 1.34.0 py37h04d2302_0 conda-forge
h5py 3.1.0 nompi_py37h19fda09_100 conda-forge
hdf5 1.10.6 nompi_h5268f04_1113 conda-forge
importlib-metadata 3.3.0 py37h03978a9_2 conda-forge
intel-openmp 2020.3 h57928b3_311 conda-forge
keras-applications 1.0.8 py_1 conda-forge
keras-preprocessing 1.1.0 py_0 conda-forge
krb5 1.17.2 hbae68bd_0 conda-forge
libblas 3.9.0 6_mkl conda-forge
libcblas 3.9.0 6_mkl conda-forge
libcurl 7.71.1 h4b64cdc_8 conda-forge
liblapack 3.9.0 6_mkl conda-forge
libprotobuf 3.14.0 h7755175_0 conda-forge
libssh2 1.9.0 hb06d900_5 conda-forge
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
markdown 3.3.3 pyh9f0ad1d_0 conda-forge
mkl 2020.4 hb70f87d_311 conda-forge
mock 4.0.3 pypi_0 pypi
msys2-conda-epoch 20160418 1 conda-forge
numexpr 2.7.2 pypi_0 pypi
numpy 1.18.5 pypi_0 pypi
opencv-python 4.5.1.48 pypi_0 pypi
openssl 1.1.1i h8ffe710_0 conda-forge
pandas 1.2.0 pypi_0 pypi
param 1.10.0 pypi_0 pypi
pillow 8.1.0 pypi_0 pypi
pip 20.3.3 pyhd8ed1ab_0 conda-forge
protobuf 3.14.0 py37hf2a7229_0 conda-forge
py-cpuinfo 5.0.0 pypi_0 pypi
pyct 0.4.8 pypi_0 pypi
pyreadline 2.1 py37hc8dfbb8_1002 conda-forge
python 3.7.9 h7840368_0_cpython conda-forge
python-dateutil 2.8.1 pypi_0 pypi
python_abi 3.7 1_cp37m conda-forge
pytz 2020.5 pypi_0 pypi
ruamel-yaml 0.16.12 pypi_0 pypi
ruamel-yaml-clib 0.2.2 pypi_0 pypi
scipy 1.6.0 py37h6db1a17_0 conda-forge
setuptools 49.6.0 py37hf50a25e_2 conda-forge
six 1.15.0 pyh9f0ad1d_0 conda-forge
sqlite 3.34.0 h8ffe710_0 conda-forge
tables 3.6.1 pypi_0 pypi
tensorboard 1.13.1 py37_0 conda-forge
tensorflow 1.13.1 h21ff451_7 conda-forge
tensorflow-base 1.13.1 py37_7 conda-forge
tensorflow-estimator 1.13.0 py37h39e3cac_0 conda-forge
termcolor 1.1.0 py_2 conda-forge
tk 8.6.10 h8ffe710_1 conda-forge
tqdm 4.55.1 pypi_0 pypi
typing_extensions 3.7.4.3 py_0 conda-forge
vc 14.2 hb210afc_2 conda-forge
vs2015_runtime 14.28.29325 h5e1d092_0 conda-forge
werkzeug 1.0.1 pyh9f0ad1d_0 conda-forge
wheel 0.36.2 pypi_0 pypi
wincertstore 0.2 py37hc8dfbb8_1005 conda-forge
zipp 3.4.0 py_0 conda-forge
zlib 1.2.11 h62dcd97_1010 conda-forge

@MMathisLab
Copy link
Member

MMathisLab commented Jan 11, 2021

well, as you can see from your own error message, it did not download the file:

Downloading full_dog model from the DeepLabCut Model Zoo...
tar: Error opening archive: Failed to open '\.\tape0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 174M 0 4108 0 0 4108 0 12:23:47 --:--:-- 12:23:47 8470
curl: (23) Failed writing body (2908 != 2920)

@MMathisLab
Copy link
Member

Googling the error, perhaps you are not within the gitbash terminal on windows? howtographql/react-apollo#85

gitforwindows.org

@rrimyyu
Copy link
Author

rrimyyu commented Jan 12, 2021

Thank you so much! I solved it.
캡처

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