diff --git a/BabbleApp/Models/GARBONETv24/onnx/head_with_selu.onnx b/BabbleApp/Models/GARBONETv24/onnx/head_with_selu.onnx index 1d138f4..dcc79d9 100644 Binary files a/BabbleApp/Models/GARBONETv24/onnx/head_with_selu.onnx and b/BabbleApp/Models/GARBONETv24/onnx/head_with_selu.onnx differ diff --git a/BabbleApp/babble_model_loader.py b/BabbleApp/babble_model_loader.py index da8af74..a1c13ba 100644 --- a/BabbleApp/babble_model_loader.py +++ b/BabbleApp/babble_model_loader.py @@ -13,7 +13,6 @@ def run_model(self, embedding, netural_blends): frame = transforms.to_tensor(frame) frame = transforms.unsqueeze(frame, 0) frame = transforms.normalize(frame) - print(frame) frame = frame * 2 - 1 #make the image 3 channels but concat frame = np.concatenate((frame, frame, frame), axis=1) @@ -55,9 +54,10 @@ def run_model_embeding(self): frame = transforms.unsqueeze(frame, 0) frame = transforms.normalize(frame) frame = frame * 2 - 1 - frame = np.concatenate((frame, frame, frame), axis=1) - + #convert to color by duplicating the channels + frame = np.concatenate((frame, frame, frame), axis=1) + out = self.sess_encoder.run([self.output_name_encoder], {self.input_name_encoder: frame}) out = out[0] output_emb = np.concatenate((out, out), axis=-1) diff --git a/BabbleApp/babble_processor.py b/BabbleApp/babble_processor.py index 3ff3da3..b664456 100644 --- a/BabbleApp/babble_processor.py +++ b/BabbleApp/babble_processor.py @@ -217,6 +217,7 @@ class BabbleProcessor: def run(self): run_model_embeding(self) + print("[INFO] Created model embeding") #load the model embeding. It's a NPY embed_netural = np.load('UserData/model_embeding.npy') netural_blends = np.load('UserData/netural.npy')