[diffusion] multi-platform: use current_platform.device_type to replace hard-coded cuda device (#15232)
Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
This commit is contained in:
@@ -430,8 +430,8 @@ class SamplingParams:
|
||||
"--generator-device",
|
||||
type=str,
|
||||
default=SamplingParams.generator_device,
|
||||
choices=["cuda", "cpu"],
|
||||
help="Device for random generator (cuda or cpu). Default: cuda",
|
||||
choices=["cuda", "musa", "cpu"],
|
||||
help="Device for random generator (cuda, musa or cpu). Default: cuda",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--num-frames",
|
||||
|
||||
Reference in New Issue
Block a user