Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colab error #82

Closed
Oltrex opened this issue Jan 12, 2022 · 7 comments
Closed

Colab error #82

Oltrex opened this issue Jan 12, 2022 · 7 comments

Comments

@Oltrex
Copy link

Oltrex commented Jan 12, 2022

FileNotFoundError: [Errno 2] No such file or directory: '/content/output/1224276_original_mask.png'

sdxfcgvbhyunjiasddas

It happens with both custom images and the ones as examples

@bbboy1901
Copy link

I got the same error message on Colab. The first error in the traceback indicates there's a problem with importing cv2. I was able to solve the problem with some help from this thread on Stackoverflow...

https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2

Basically just uninstalling Colab's default opencv installation (v4.5.5.62) and installing a previous version (v4.1.2.30) fixed it.

I added these two lines to my Colab right after the main code installation cell to make it work:

!pip uninstall opencv-python-headless==4.5.5.62 --yes

!pip install opencv-python-headless==4.1.2.30

@Oltrex
Copy link
Author

Oltrex commented Jan 19, 2022

that fixed it¡ thanks, alse is there any way to make it output hd results, it heavily downscales it

@senya-ashukha
Copy link
Collaborator

Hi @bbboy1901,

Thx for the fix! It is now in the ipython notebook;

@senya-ashukha
Copy link
Collaborator

senya-ashukha commented Jan 19, 2022

Hi @Oltrex, did you try to look at the output folder?

@senya-ashukha
Copy link
Collaborator

The initial issue is fixed, so I close this;

@Oltrex
Copy link
Author

Oltrex commented Jan 19, 2022

Hi @Oltrex, did you try to look at the output folder?

yes, it was in there, im new to colab and these stuff so i didnt knew i could just browse files and download it, thanks for the help everyone

@siam009
Copy link

siam009 commented Jan 30, 2022

Still facing the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants