Skip to content

Commit 8a058c6

Browse files
committed
Fix sample image input data type issue.
1 parent b71b636 commit 8a058c6

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

samples/linux/python/convnext_base/convnext_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def Inference(input_image_path):
145145
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
146146

147147
# Run the inference.
148-
output_data = convnext_base.Inference([image])
148+
output_data = convnext_base.Inference(image)
149149

150150
# Reset the HTP.
151151
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/convnext_tiny/convnext_tiny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def Inference(input_image_path):
144144
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
145145

146146
# Run the inference.
147-
output_data = convnext_tiny.Inference([image])
147+
output_data = convnext_tiny.Inference(image)
148148

149149
# Reset the HTP.
150150
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/efficientnet_b0/efficientnet_b0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def Inference(input_image_path):
145145
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
146146

147147
# Run the inference.
148-
output_data = efficientnet_b0.Inference([image])
148+
output_data = efficientnet_b0.Inference(image)
149149

150150
# Reset the HTP.
151151
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/efficientnet_b4/efficientnet_b4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def Inference(input_image_path):
144144
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
145145

146146
# Run the inference.
147-
output_data = efficientnet_b4.Inference([image])
147+
output_data = efficientnet_b4.Inference(image)
148148

149149
# Reset the HTP.
150150
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/efficientnet_v2_s/efficientnet_v2_s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def Inference(input_image_path):
144144
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
145145

146146
# Run the inference.
147-
output_data = efficientnet_v2_s.Inference([image])
147+
output_data = efficientnet_v2_s.Inference(image)
148148

149149
# Reset the HTP.
150150
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/googlenet/googlenet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def Inference(input_image_path):
159159
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
160160

161161
# Run the inference.
162-
output_data = googlenet.Inference([image])
162+
output_data = googlenet.Inference(image)
163163

164164
# Reset the HTP.
165165
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/inception_v3/inception_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def Inference(input_image_path):
146146
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
147147

148148
# Run the inference.
149-
output_data = inceptionV3.Inference([image])
149+
output_data = inceptionV3.Inference(image)
150150

151151
# Reset the HTP.
152152
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/levit/levit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def Inference(input_image_path):
144144
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
145145

146146
# Run the inference.
147-
output_data = levit.Inference([image])
147+
output_data = levit.Inference(image)
148148

149149
# Reset the HTP.
150150
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/quicksrnetmedium/quicksrnetmedium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def Inference(input_image_path, output_image_path, show_image = True):
116116
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
117117

118118
# Run the inference.
119-
output_image = quicksrnetmedium.Inference([image])
119+
output_image = quicksrnetmedium.Inference(image)
120120

121121
# Reset the HTP.
122122
PerfProfile.RelPerfProfileGlobal()

samples/linux/python/real_esrgan_general_x4v3/real_esrgan_general_x4v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def Inference(input_image_path, output_image_path):
121121
PerfProfile.SetPerfProfileGlobal(PerfProfile.BURST)
122122

123123
# Run the inference.
124-
output_image = realesrgan.Inference([image])
124+
output_image = realesrgan.Inference(image)
125125

126126
# Reset the HTP.
127127
PerfProfile.RelPerfProfileGlobal()

0 commit comments

Comments
 (0)