LTX-Video icon indicating copy to clipboard operation
LTX-Video copied to clipboard

Documentation issues

Open DarkTyger opened this issue 7 months ago • 0 comments

git clone https://github.com/Lightricks/LTX-Video.git
cd LTX-Video

python -m venv env
source env/bin/activate
python -m pip install -e .\[inference-script\]

python inference.py --prompt "A hot air balloon rises" --height 640 --width 480 --num_frames 60 --seed 1234567 --pipeline_config configs/ltxv-13b-0.9.7-distilled.yaml

Expected: Software works.

Actual: Invalid credentials in Authorization header (see below)

Looks like some steps are missing:

  1. Log in to https://huggingface.co
  2. Visit https://huggingface.co/settings/tokens
  3. Click Create new token
  4. Set Token name to: ltx-video
  5. Run: pip install huggingface_hub
  6. Run: huggingface-cli login
  7. Paste token
  8. Confirm adding token as git credential

The files can now download.

Traceback (most recent call last):
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/username/temp/video/env/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltxv-13b-0.9.7-distilled.safetensors

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/username/temp/video/inference.py", line 774, in <module>
    main()
    ~~~~^^
  File "/home/username/temp/video/inference.py", line 298, in main
    infer(**vars(args))
    ~~~~~^^^^^^^^^^^^^^
  File "/home/username/temp/video/inference.py", line 426, in infer
    ltxv_model_path = hf_hub_download(
        repo_id="Lightricks/LTX-Video",
    ...<2 lines>...
        repo_type="model",
    )
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 988, in hf_hub_download
    return _hf_hub_download_to_local_dir(
        # Destination
    ...<15 lines>...
        local_files_only=local_files_only,
    )
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1243, in _hf_hub_download_to_local_dir
    _raise_on_head_call_error(head_call_error, force_download, local_files_only)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1645, in _raise_on_head_call_error
    raise head_call_error
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1533, in _get_metadata_or_catch_error
    metadata = get_hf_file_metadata(
        url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token
    )
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1450, in get_hf_file_metadata
    r = _request_wrapper(
        method="HEAD",
    ...<5 lines>...
        timeout=timeout,
    )
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 286, in _request_wrapper
    response = _request_wrapper(
        method=method,
    ...<2 lines>...
        **params,
    )
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 310, in _request_wrapper
    hf_raise_for_status(response)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/username/temp/video/env/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
huggingface_hub.errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/Lightricks/LTX-Video/resolve/main/ltxv-13b-0.9.7-distilled.safetensors (Request ID: Root=1-6846243a-60116a7151302d7b7dfa1011;6a68d4e8-6d7a-4ea2-a043-b59f7b091ad6)

Invalid credentials in Authorization header

Are there steps missing to authorize the download?

DarkTyger avatar Jun 09 '25 00:06 DarkTyger