Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

--ignore-size error #93

Closed
TravisScottex opened this issue Apr 9, 2020 · 2 comments
Closed

--ignore-size error #93

TravisScottex opened this issue Apr 9, 2020 · 2 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@TravisScottex
Copy link

Ubuntu 16, all work but no ignore size parameter

[INFO] Executing Mask To Maskref
Traceback (most recent call last):
File "DeepNude/main.py", line 82, in
argv.run()
File "/var/www/html/.../.../argv/init.py", line 35, in run
args.func(args)
File "/var/www/html/.../.../main.py", line 25, in main
select_processing().run()
File "/var/www/html/.../.../processing/init.py", line 23, in run
r = self._execute(args)
File "/var/www/html/.../.../processing/image.py", line 96, in _execute
r = run_worker(p, self.__image_steps, config=self._args)
File "/var/www/html/.../.../processing/worker.py", line 49, in run_worker
r = w.run(
[image_step[i] for i in w.input_index], config=config)
File "/var/www/html/.../.../transform/init.py", line 26, in run
return super().run(*args, config=config)
File "/var/www/html/.../.../processing/init.py", line 23, in run
r = self._execute(*args)
File "/var/www/html/.../.../transform/opencv/mask.py", line 55, in _execute
res2 = cv2.bitwise_and(green, green, mask=green_mask)
cv2.error: OpenCV(4.2.0) /io/opencv/modules/core/src/arithm.cpp:250: error: (-215:Assertion failed) (mtype == CV_8U || mtype == CV_8S) && _mask.sameSize(*psrc1) in function 'binary_op'

@TravisScottex TravisScottex added the bug Something isn't working label Apr 9, 2020
@stale
Copy link

stale bot commented Jun 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jun 8, 2020
@stale stale bot closed this as completed Jun 16, 2020
@kolessios
Copy link
Contributor

Sorry for the late reply, the --ignore-resize parameter is not recommended to use unless you know what you are doing. The algorithm obligatorily requires that the photos be of dimensions 512x512 otherwise the above error occurs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants