tensorflow / tensorflow/models
struct2deph input image
@aneliaangelova is already working on this.
Since May 22, 2020.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Dear all,
I am studying struct2deph script https://sites.google.com/view/struct2depth and I am looking for taking into account an image png get as output its depth prediction.
For that I implemented the code and followed all the instructions. I run the code inference.py with this :

Unfortunately the result is that I get the following error : cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
After looking online it seems that my inputs are not right and can't be read. Do you happen to know how I can read a png image in this script to transform it into a predict depht png file ?

Best regards,
Thank you all for your help
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.