Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inference with fft #33

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Fix inference with fft #33

merged 2 commits into from
Mar 5, 2025

Conversation

Ivang71
Copy link
Contributor

@Ivang71 Ivang71 commented Mar 5, 2025

Currently running infer_fft.py fails with the following error

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/utils/registry.py", line 85, in build_from_config
    return req_type_entry(cfg, logger=logger, *args, **kwargs)
  File "/workspace/dtback/ACE_plus/modules/ace_plus_ldm.py", line 21, in __init__
    super().__init__(cfg, logger=logger)
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/model/network/ldm/ldm.py", line 91, in __init__
    self.construct_network()
  File "/workspace/dtback/ACE_plus/modules/ace_plus_ldm.py", line 78, in construct_network
    self.first_stage_model = MODELS.build(self.first_stage_config,
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/utils/registry.py", line 142, in build
    return self.build_func(cfg,
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/model/registry.py", line 26, in build_model
    model.load_pretrained_model(pretrain_cfg)
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/model/network/autoencoder/ae_kl.py", line 366, in load_pretrained_model
    with FS.get_from(pretrained_model, wait_finish=True) as local_model:
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/utils/file_system.py", line 245, in get_from
    local_path = client.get_object_to_local_file(
  File "/usr/local/lib/python3.10/dist-packages/scepter/modules/utils/file_clients/huggingface_fs.py", line 49, in get_object_to_local_file
    key, file_path = key.split('@', 1)
ValueError: not enough values to unpack (expected 2, got 1)

this pr fixes the problem

@CLAassistant
Copy link

CLAassistant commented Mar 5, 2025

CLA assistant check
All committers have signed the CLA.

@maochaojie maochaojie merged commit 6d7708a into ali-vilab:main Mar 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants