mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-09 05:53:54 +02:00
Use 255.0 everywhere
This commit is contained in:
@@ -67,7 +67,7 @@ def classify_face(temp_vision_frame : VisionFrame, face_landmark_5 : FaceLandmar
|
||||
model_mean = get_model_options().get('mean')
|
||||
model_standard_deviation = get_model_options().get('standard_deviation')
|
||||
crop_vision_frame, _ = warp_face_by_face_landmark_5(temp_vision_frame, face_landmark_5, model_template, model_size)
|
||||
crop_vision_frame = crop_vision_frame.astype(numpy.float32)[:, :, ::-1] / 255
|
||||
crop_vision_frame = crop_vision_frame.astype(numpy.float32)[:, :, ::-1] / 255.0
|
||||
crop_vision_frame -= model_mean
|
||||
crop_vision_frame /= model_standard_deviation
|
||||
crop_vision_frame = crop_vision_frame.transpose(2, 0, 1)
|
||||
|
||||
Reference in New Issue
Block a user