@@ -981,7 +981,7 @@ class UNetOnnxConfig(VisionOnnxConfig):
981
981
@property
982
982
def inputs (self ) -> Dict [str , Dict [int , str ]]:
983
983
common_inputs = {
984
- "sample" : {0 : "batch_size" , 1 : "num_channels" , 2 : "height" , 3 : "width" },
984
+ "sample" : {0 : "batch_size" , 2 : "height" , 3 : "width" },
985
985
"timestep" : {0 : "steps" },
986
986
"encoder_hidden_states" : {0 : "batch_size" , 1 : "sequence_length" },
987
987
}
@@ -998,7 +998,7 @@ def inputs(self) -> Dict[str, Dict[int, str]]:
998
998
@property
999
999
def outputs (self ) -> Dict [str , Dict [int , str ]]:
1000
1000
return {
1001
- "out_sample" : {0 : "batch_size" , 1 : "num_channels" , 2 : "height" , 3 : "width" },
1001
+ "out_sample" : {0 : "batch_size" , 2 : "height" , 3 : "width" },
1002
1002
}
1003
1003
1004
1004
@property
@@ -1045,13 +1045,13 @@ class VaeEncoderOnnxConfig(VisionOnnxConfig):
1045
1045
@property
1046
1046
def inputs (self ) -> Dict [str , Dict [int , str ]]:
1047
1047
return {
1048
- "sample" : {0 : "batch_size" , 1 : "num_channels" , 2 : "height" , 3 : "width" },
1048
+ "sample" : {0 : "batch_size" , 2 : "height" , 3 : "width" },
1049
1049
}
1050
1050
1051
1051
@property
1052
1052
def outputs (self ) -> Dict [str , Dict [int , str ]]:
1053
1053
return {
1054
- "latent_sample" : {0 : "batch_size" , 1 : "num_channels_latent" , 2 : "height_latent" , 3 : "width_latent" },
1054
+ "latent_sample" : {0 : "batch_size" , 2 : "height_latent" , 3 : "width_latent" },
1055
1055
}
1056
1056
1057
1057
@@ -1069,13 +1069,13 @@ class VaeDecoderOnnxConfig(VisionOnnxConfig):
1069
1069
@property
1070
1070
def inputs (self ) -> Dict [str , Dict [int , str ]]:
1071
1071
return {
1072
- "latent_sample" : {0 : "batch_size" , 1 : "num_channels_latent" , 2 : "height_latent" , 3 : "width_latent" },
1072
+ "latent_sample" : {0 : "batch_size" , 2 : "height_latent" , 3 : "width_latent" },
1073
1073
}
1074
1074
1075
1075
@property
1076
1076
def outputs (self ) -> Dict [str , Dict [int , str ]]:
1077
1077
return {
1078
- "sample" : {0 : "batch_size" , 1 : "num_channels" , 2 : "height" , 3 : "width" },
1078
+ "sample" : {0 : "batch_size" , 2 : "height" , 3 : "width" },
1079
1079
}
1080
1080
1081
1081
0 commit comments