-
Notifications
You must be signed in to change notification settings - Fork 127
Description
get this error:
Traceback (most recent call last):
File "/workspace/disk1/gasanov/FluxMusic/sample.py", line 119, in
main(args)
File "/workspace/disk1/gasanov/FluxMusic/sample.py", line 64, in main
t5 = load_t5(device, max_length=256)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/disk1/gasanov/FluxMusic/utils.py", line 9, in load_t5
return HFEmbedder("google/t5-v1_1-xxl", max_length=max_length, torch_dtype=torch.bfloat16).to(device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/disk1/gasanov/FluxMusic/modules/conditioner.py", line 25, in init
self.tokenizer: T5Tokenizer = T5Tokenizer.from_pretrained(local_path_tokenizer, max_length=max_length)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 2190, in from_pretrained
resolved_config_file = cached_file(
^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/transformers/utils/hub.py", line 466, in cached_file
raise EnvironmentError(
OSError: Incorrect path_or_model_id: '/maindata/data/shared/multimodal/public/ckpts/stable-diffusion-3-medium-diffusers/tokenizer_3'. Please provide either the path to a local folder or the repo_id of a model on the Hub.
when running:
python sample.py
--version base
--ckpt_path checkpoints/flux-music-base.pt
--prompt_file config/example.txt