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 @@ -906,20 +906,18 @@ def __init__(
906
906
num_samples = 25 ,
907
907
results_folder = './results' ,
908
908
amp = False ,
909
- fp16 = False ,
909
+ mixed_precision_type = 'fp16' ,
910
910
split_batches = True ,
911
911
convert_image_to = None
912
912
):
913
913
super ().__init__ ()
914
914
915
915
self .accelerator = Accelerator (
916
916
split_batches = split_batches ,
917
- mixed_precision = 'fp16' if fp16 else 'no' ,
917
+ mixed_precision = mixed_precision_type if amp else 'no' ,
918
918
kwargs_handlers = [DistributedDataParallelKwargs (find_unused_parameters = True )]
919
919
)
920
920
921
- self .accelerator .native_amp = amp
922
-
923
921
self .model = diffusion_model
924
922
925
923
assert has_int_squareroot (num_samples ), 'number of samples must have an integer square root'
Original file line number Diff line number Diff line change 3
3
setup (
4
4
name = 'RIN-pytorch' ,
5
5
packages = find_packages (exclude = []),
6
- version = '0.7.5 ' ,
6
+ version = '0.7.6 ' ,
7
7
license = 'MIT' ,
8
8
description = 'RIN - Recurrent Interface Network - Pytorch' ,
9
9
author = 'Phil Wang' ,
You can’t perform that action at this time.
0 commit comments