Skip to content

Launch training with accelerate launch arg error #125

@radames

Description

@radames

Launching training with accelerate launch raise argument errors

Traceback (most recent call last):
  File "/usr/local/bin/accelerate-launch", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 690, in main
    launch_command(args)
  File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 684, in launch_command
    simple_launcher(args)
  File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 280, in simple_launcher
    mixed_precision = PrecisionType(args.mixed_precision.lower())
AttributeError: 'NoneType' object has no attribute 'lower'

However, you can still start the training by calling the script with python

python train_unconditional.py ...

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