(self, opt)
| 15 | |
| 16 | class MorphFacesInTheWild: |
| 17 | def __init__(self, opt): |
| 18 | self._opt = opt |
| 19 | self._model = ModelsFactory.get_by_name(self._opt.model, self._opt) |
| 20 | self._model.set_eval() |
| 21 | self._transform = transforms.Compose([transforms.ToTensor(), |
| 22 | transforms.Normalize(mean=[0.5, 0.5, 0.5], |
| 23 | std=[0.5, 0.5, 0.5]) |
| 24 | ]) |
| 25 | |
| 26 | def morph_file(self, img_path, expresion): |
| 27 | img = cv_utils.read_cv2_img(img_path) |
nothing calls this directly
no test coverage detected