Skip to content

superanimal_topviewmouse detector #3256

@SomayehSe

Description

@SomayehSe

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

Microsoft Windows [Version 10.0.26200.8037]

DeepLabCut version

3.0.0rc13

What engine are you using?

pytorch

DeepLabCut mode

single animal

Device type

NVIDIA RTX 4000 Ada Generation

Bug description 🐛

This error says DeepLabCut is trying to download the superanimal_topviewmouse model, but Python cannot find the SSL certificate file it was told to use.

Steps To Reproduce

No response

Relevant log output

python -m deeplabcut
Loading DLC 3.0.0rc13...
Starting GUI...
Loading DLC 3.0.0rc13...
INFO:console:Running video inference on ['D:\\Research\\BEHAVE\\code\\test_data\\m1\\m1_T1.mp4'] with superanimal_topviewmouse_hrnet_w32
INFO:console:Using pytorch for model hrnet_w32
INFO:console:Loading....
INFO:console: 
INFO:console:superanimal_topviewmouse_fasterrcnn_mobilenet_v3_large_fpn
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
WARNING:huggingface_hub.utils._http:Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
Traceback (most recent call last):
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\deeplabcut\gui\utils.py", line 25, in run
    self.func()
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\deeplabcut\modelzoo\video_inference.py", line 392, in video_inference_superanimal
    detector_path = get_super_animal_snapshot_path(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\deeplabcut\pose_estimation_pytorch\modelzoo\utils.py", line 83, in get_super_animal_snapshot_path
    download_super_animal_snapshot(dataset, model_name)
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\deeplabcut\pose_estimation_pytorch\modelzoo\utils.py", line 146, in download_super_animal_snapshot
    download_huggingface_model(
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\dlclibrary\dlcmodelzoo\modelzoo_download.py", line 196, in download_huggingface_model
    hf_hub_download(repo_id, targzfn, cache_dir=str(target_dir))
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\huggingface_hub\utils\_validators.py", line 89, in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\huggingface_hub\file_download.py", line 986, in hf_hub_download
    return _hf_hub_download_to_cache_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\huggingface_hub\file_download.py", line 1196, in _hf_hub_download_to_cache_dir
    _create_symlink(blob_path, pointer_path, new_blob=False)
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\site-packages\huggingface_hub\file_download.py", line 677, in _create_symlink
    shutil.copyfile(abs_src, abs_dst)
  File "C:\Users\somseifi\anaconda3\envs\DEEPLABCUT\Lib\shutil.py", line 262, in copyfile
    with open(dst, 'wb') as fdst:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\somseifi\\anaconda3\\envs\\DEEPLABCUT\\Lib\\site-packages\\deeplabcut\\modelzoo\\checkpoints\\models--mwmathis--DeepLabCutModelZoo-SuperAnimal-TopViewMouse\\snapshots\\d443257e4b1145f7439e0953c2015d60fcdc1185\\superanimal_topviewmouse_fasterrcnn_mobilenet_v3_large_fpn.pt'

Anything else?

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

ModelZoorelated to models/code for modezoo.deeplabcut.orgbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions