tensorflow / tensorflow/models

struct2deph input image

Open
#8,118 1 comment 0 reactions 1 assignee View on GitHub

@aneliaangelova is already working on this.

Since May 22, 2020.

models:research type:support
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 :
Screenshot from 2020-02-07 20-06-41

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 ?

Screenshot from 2020-02-07 20-10-52

Best regards,
Thank you all for your help

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.