File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1649,7 +1649,7 @@ def __init__(
1649
1649
num_samples = 1 ,
1650
1650
results_folder = './results' ,
1651
1651
amp = False ,
1652
- fp16 = False ,
1652
+ mixed_precision_type = 'fp16' ,
1653
1653
use_ema = True ,
1654
1654
split_batches = True ,
1655
1655
dataloader = None ,
@@ -1663,11 +1663,9 @@ def __init__(
1663
1663
1664
1664
self .accelerator = Accelerator (
1665
1665
split_batches = split_batches ,
1666
- mixed_precision = 'fp16' if fp16 else 'no'
1666
+ mixed_precision = mixed_precision_type if amp else 'no'
1667
1667
)
1668
1668
1669
- self .accelerator .native_amp = amp
1670
-
1671
1669
# model
1672
1670
1673
1671
self .model = diffusion_model
Original file line number Diff line number Diff line change 1
- __version__ = '0.1.4 '
1
+ __version__ = '0.1.5 '
You can’t perform that action at this time.
0 commit comments