Skip to content

subprocess.CalledProcessError: Command '~' returned non-zero exit status 1. #151

Description

@justin4ai

Hello, I am running your training code following the command:

image

. But I face the following error:

07/15/2024 21:08:12 - INFO - __main__ - Distributed environment: NO
Num processes: 1
Process index: 0
Local process index: 0
Device: cuda

Mixed precision type: fp16

{'force_upcast', 'scaling_factor'} was not found in config. Values will be initialized to default values.
Traceback (most recent call last):
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/diffusers/configuration_utils.py", line 371, in load_config
    config_file = hf_hub_download(
  File "/home/ubuntu/.local/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn
    validate_repo_id(arg_value)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 154, in validate_repo_id
    raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': './pretrained_weights/sd-image-variations-diffusers'. Use `repo_type` argument if needed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/justin/workspace/Moore-AnimateAnyone/train_stage_1.py", line 726, in <module>
    main(config)
  File "/home/ubuntu/justin/workspace/Moore-AnimateAnyone/train_stage_1.py", line 266, in main
    reference_unet = UNet2DConditionModel.from_pretrained(
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 712, in from_pretrained
    config, unused_kwargs, commit_hash = cls.load_config(
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/diffusers/configuration_utils.py", line 407, in load_config
    raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like ./pretrained_weights/sd-image-variations-diffusers is not the path to a directory containing a config.json file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode'.
Traceback (most recent call last):
  File "/home/ubuntu/miniforge3/envs/freqnet/bin/accelerate", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main
    args.func(args)
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/accelerate/commands/launch.py", line 979, in launch_command
    simple_launcher(args)
  File "/home/ubuntu/miniforge3/envs/freqnet/lib/python3.9/site-packages/accelerate/commands/launch.py", line 628, in simple_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/ubuntu/miniforge3/envs/freqnet/bin/python3.9', 'train_stage_1.py', '--config', 'configs/train/stage1.yaml']' returned non-zero exit status 1.

Do you have any idea about this?

And one more thing is I didn't download two weights for openpose and sd-image-variation not knowing how to do. Will it be the cause of the problem?
image

Cheers,
Junyeong Ahn

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