Skip to content

Commit c6bafaf

Browse files
half
1 parent 3c26277 commit c6bafaf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

classifiers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,7 @@ def INPUT_TYPES(cls):
5656

5757
def classify(self, yolo_classifier_model, image_to_classify):
5858
image_to_classify = image_to_classify.permute(0, 3, 1, 2)
59-
60-
if yolo_classifier_model.model.fp16:
61-
image_to_classify = image_to_classify.half()
62-
else:
63-
image_to_classify = image_to_classify.float()
64-
59+
image_to_classify = image_to_classify.half()
6560
image_to_classify = image_to_classify.squeeze(0)
6661
transform = transforms.Compose([
6762
transforms.Resize(size=(224, 224))

0 commit comments

Comments
 (0)