Skip to content

alibi-detect: utils: fetch: "Paths are no longer accepted as the fname argument." #936

Description

@therayquaza

Code extracted from https://docs.seldon.io/projects/alibi-detect/en/stable/examples/cd_mmd_cifar10.html

from alibi_detect.utils.fetching import fetch_tf_model

dataset = 'cifar10'
model = 'resnet32'
clf = fetch_tf_model(dataset, model)

Result:

[/usr/local/lib/python3.12/dist-packages/keras/src/utils/file_utils.py](https://localhost:8080/#) in get_file(fname, origin, untar, md5_hash, file_hash, cache_subdir, hash_algorithm, extract, archive_format, cache_dir, force_download)
    239     else:
    240         if os.sep in fname:
--> 241             raise ValueError(
    242                 "Paths are no longer accepted as the `fname` argument. "
    243                 "To specify the file's parent directory, use "

ValueError: Paths are no longer accepted as the `fname` argument. To specify the file's parent directory, use the `cache_dir` argument. Received: fname=/content/resnet32.h5

version: 0.12.0
python version: 3.12.11

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions