Hi! When I train my model, I'm getting this error:
raise Exception ("Exception occured in sample %s. Error: %s" % (sample.filename, traceback.format_exc() ) )
Exception: Exception occured in sample /Users/mateuspestana/Downloads/DeepFaceLab_MacOS/workspace/data_dst/aligned/03987.jpg. Error: Traceback (most recent call last):
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/samplelib/SampleGeneratorFace.py", line 134, in batch_func
x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/samplelib/SampleProcessor.py", line 106, in process
warp_params = imagelib.gen_warp_params(resolution,
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/imagelib/warp.py", line 146, in gen_warp_params
random_transform_mat = cv2.getRotationMatrix2D((w // 2, w // 2), rotation, scale)
TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type
Does anyone knows how to solve it?
Oh, I'm using an M1 Pro.
Hi! When I train my model, I'm getting this error:
```
raise Exception ("Exception occured in sample %s. Error: %s" % (sample.filename, traceback.format_exc() ) )
Exception: Exception occured in sample /Users/mateuspestana/Downloads/DeepFaceLab_MacOS/workspace/data_dst/aligned/03987.jpg. Error: Traceback (most recent call last):
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/samplelib/SampleGeneratorFace.py", line 134, in batch_func
x, = SampleProcessor.process ([sample], self.sample_process_options, self.output_sample_types, self.debug, ct_sample=ct_sample)
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/samplelib/SampleProcessor.py", line 106, in process
warp_params = imagelib.gen_warp_params(resolution,
File "/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/imagelib/warp.py", line 146, in gen_warp_params
random_transform_mat = cv2.getRotationMatrix2D((w // 2, w // 2), rotation, scale)
TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type
```
Does anyone knows how to solve it?
Oh, I'm using an M1 Pro.
Hi @mateuspestana!
This particular issue is due to your version of opencv package being not compatible with DeepFaceLab code. As a temporary workaround you can edit the /Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/imagelib/warp.py file and change the line
Hi @mateuspestana!
This particular issue is due to your version of `opencv` package being not compatible with DeepFaceLab code. As a temporary workaround you can edit the `/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/imagelib/warp.py` file and change the line
```python
random_transform_mat = cv2.getRotationMatrix2D((w // 2, w // 2), rotation, scale)
```
to
```python
random_transform_mat = cv2.getRotationMatrix2D((w // 2.0, w // 2.0), rotation, scale)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi! When I train my model, I'm getting this error:
Does anyone knows how to solve it?
Oh, I'm using an M1 Pro.
Hi @mateuspestana!
This particular issue is due to your version of
opencvpackage being not compatible with DeepFaceLab code. As a temporary workaround you can edit the/Users/mateuspestana/Downloads/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/imagelib/warp.pyfile and change the lineto
@mateuspestana did you get chance to try the ^^ workaround?
Just tried it and started training. By now, it's working flawlessly. Thanks!