mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-16 10:03:41 -07:00
fixed bug in manual extractor on windows 10
This commit is contained in:
parent
5ed1637acb
commit
7ed7f2bab9
1 changed files with 3 additions and 6 deletions
|
@ -198,12 +198,9 @@ class ExtractSubprocessor(SubprocessorBase):
|
|||
skip_remaining = True
|
||||
break
|
||||
|
||||
new_param_x = self.param['x'] / self.view_scale
|
||||
new_param_y = self.param['y'] / self.view_scale
|
||||
new_param_rect_size = self.param['rect_size']
|
||||
|
||||
new_param_x = np.clip (new_param_x, 0, w-1)
|
||||
new_param_y = np.clip (new_param_y, 0, h-1)
|
||||
new_param_x = np.clip (self.param['x'], 0, w-1) / self.view_scale
|
||||
new_param_y = np.clip (self.param['y'], 0, h-1) / self.view_scale
|
||||
new_param_rect_size = self.param['rect_size']
|
||||
|
||||
if self.param_x != new_param_x or \
|
||||
self.param_y != new_param_y or \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue