Skip to content

manager.verify_and_download: Asset key not found error with download_assets #1

Description

@mhxion

Detailed description of the problem

Running download_assets --algorithms <any algorithm>, will show Asset key not found in asset_manifest.toml and quit with exit code 0 (success!) while no download has succeeded.

$ download_assets --algorithms hrnetw48
2026-08-17 14:20:29,407 [INFO] main.entry_point: Initialising asset manager; project: '.', run_config: '<configs_folder_path>/detectors_run_file.toml'
2026-08-17 14:20:29,409 [INFO] manager.verify_and_download:
================================================================================
Download Manager Assets Check
================================================================================


2026-08-17 14:20:29,409 [WARNING] manager.verify_and_download: Asset key '/Users/<username>/Workshop/nicetoolbox/nicetoolbox/detectors/assets/mmpose/configs/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth' not found in asset_manifest.toml.
2026-08-17 14:20:29,409 [WARNING] manager.verify_and_download: Asset key '/Users/<username>/Workshop/nicetoolbox/nicetoolbox/detectors/assets/mmpose/configs/faster_rcnn_r50_fpn_coco.py' not found in asset_manifest.toml.
2026-08-17 14:20:29,409 [WARNING] manager.verify_and_download: Asset key '/Users/<username>/Workshop/nicetoolbox/nicetoolbox/detectors/assets/mmpose/configs/hrnet_w48_coco_wholebody_384x288_dark-f5726563_20200918.pth' not found in asset_manifest.toml.

Expected Behavior

  • The assets as defined in the manifest and config files should be downloaded
  • Failure should be exited with code 1

Steps to reproduce the behavior

  • Set up the NICE tool environment with uv/conda
  • Run download_assets --algorithms <any algorithm>: download_assets --algorithms hrnetw48

Do you have any idea what may have caused this?

It's a mismatch between how the asset path from asset_manifest.toml and the asset path given in detectors_config.toml are compared. One is relative and the other is absolute in download_manager/manager.py:

for key in set(asset_keys):
if key not in self.manifest:
logging.warning(f"Asset key '{key}' not found in asset_manifest.toml.")
continue

Do you have an idea how to solve the issue?

Yes. I will open a PR soon. The issue does not happen with run_detectors because run_detectors use ensure_assets_for_config method that does the correct comparison between the two paths.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions