Skip to content

ValueError: Cannot find the requested files in the cached path and outgoing traffic has been disabled. #13

Description

@sadaner1988

root@vivian-pc:/wangpu/code/open_source_pipeline_and_app/autopilot/Prompt4Driving/Prompt4Driving# python3 ./tools/test_prompt_tracking.py ./projects/configs/prompttrack/f3_prompttrack.py /wangpu/data/prompt4driving/f1/f1_q5_e12.pth --eval=bbox --out=./work_dirs/f3_prompttrack/results.pkl --jsonfile_prefix=./work_dirs/f3_prompttrack
wandb: WARNING W&B installed but not logged in. Run wandb login or set the WANDB_API_KEY env variable.
projects
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/wangpu/code/open_source_pipeline_and_app/autopilot/Prompt4Driving/Prompt4Driving/projects/tracking_plugin/models/trackers/tracker_prompt.py", line 86, in init
self.init_params_and_layers()
File "/wangpu/code/open_source_pipeline_and_app/autopilot/Prompt4Driving/Prompt4Driving/projects/tracking_plugin/models/trackers/tracker_prompt.py", line 761, in init_params_and_layers
self.tokenizer = RobertaTokenizerFast.from_pretrained('./roberta_base/', local_files_only=True)
File "/usr/local/lib/python3.8/dist-packages/transformers/tokenization_utils_base.py", line 1140, in from_pretrained
return cls._from_pretrained(*inputs, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/transformers/tokenization_utils_base.py", line 1213, in _from_pretrained
resolved_vocab_files[file_id] = cached_path(
File "/usr/local/lib/python3.8/dist-packages/transformers/file_utils.py", line 564, in cached_path
output_path = get_from_cache(
File "/usr/local/lib/python3.8/dist-packages/transformers/file_utils.py", line 708, in get_from_cache
raise ValueError(
ValueError: Cannot find the requested files in the cached path and outgoing traffic has been disabled. To enable model look-ups and downloads online, set 'local_files_only' to False.

大佬,报上面这个错,怎么解决呀

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