File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4141 parser .add_argument ("--use_usp" , action = "store_true" )
4242 parser .add_argument ("--offload" , action = "store_true" )
4343 parser .add_argument ("--fps" , type = int , default = 24 )
44- parser .add_argument ("--seed" , type = int , default = - 1 )
44+ parser .add_argument ("--seed" , type = int , default = None )
4545 parser .add_argument (
4646 "--prompt" ,
4747 type = str ,
5454 print ("model_id:" , args .model_id )
5555
5656 assert (args .use_usp and args .seed is not None ) or (not args .use_usp ), "usp mode need seed"
57- if args .seed == - 1 :
57+ if args .seed is None :
5858 random .seed (time .time ())
5959 args .seed = int (random .randrange (4294967294 ))
6060
Original file line number Diff line number Diff line change 3232 parser .add_argument ("--use_usp" , action = "store_true" )
3333 parser .add_argument ("--offload" , action = "store_true" )
3434 parser .add_argument ("--fps" , type = int , default = 24 )
35- parser .add_argument ("--seed" , type = int , default = - 1 )
35+ parser .add_argument ("--seed" , type = int , default = None )
3636 parser .add_argument (
3737 "--prompt" ,
3838 type = str ,
4545 print ("model_id:" , args .model_id )
4646
4747 assert (args .use_usp and args .seed is not None ) or (not args .use_usp ), "usp mode need seed"
48- if args .seed == - 1 :
48+ if args .seed is None :
4949 random .seed (time .time ())
5050 args .seed = int (random .randrange (4294967294 ))
5151
You can’t perform that action at this time.
0 commit comments