Giter Club home page Giter Club logo

tf-monodepth2's People

Contributors

fangget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tf-monodepth2's Issues

is pretrained model broken ?

when i run the command :
python train_monodepth2.py train config/monodepth2_kitti.yml ./model/pretrained_model/model.latest

i am getting the error :

_Traceback (most recent call last):
File "train_monodepth2.py", line 51, in
_cli_test(config, output_dir, args)
File "train_monodepth2.py", line 25, in cli_test
monodepth2_learner.test(output_dir)
File "C:\Users\essys\Desktop\project_1\depth_estimation\tf-monodepth2-master\tf-monodepth2-master\model\monodepth2_learner.py", line 371, in test
self.saver.restore(sess, latest_ckpt)
File "C:\Users\essys\Anaconda3\envs\tf_gpu\lib\site-packages\tensorflow\python\training\saver.py", line 1274, in restore
raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.

why did this normalization

def preprocess_image(self, image):

Hi, thanks for you contribution for the tf implementation. I want to know why did you do this normalization.
I am writing my own version of monodepth2 too. But it seems there's something wrong. The loss can converge, but the test result can only achieve abs rel 0.152. Can you provide some suggestion about my situation?

model file name is wrong

The link mono_640x192_pt(ours) actually points to a file named with ...nopt, and the other file is ...pt.
Is this just a wrong name or the file is wrong? And I wonder what is the difference between nopt and pt model?

How to test my own images?

Hi,
Thanks for your brilliant work! Could you tell me how to test my own image for a generalization task? I mean how to preprocess my own picture. Do I just need resize the shape to (640,192) and use your test code?
And I still feel puzzled about these three line code in the model/ monodepth2_learner.py
image, do these two matrices circled by the red have the same size? I try to run the test code and find there is a bug when concatenating the two matrices.

Thanks in advance for your reply.

train error

i got the same problem could you give me some advice
my preprocess img is 1248 *128 is correct then i dont change the size image_height: 192
image_width: 640 in the yaml

Originally posted by @xuchen-dev in #11 (comment)

Training errror

Traceback (most recent call last):
File "monodepth2.py", line 63, in
args.func(config, output_dir, args)
File "monodepth2.py", line 17, in _cli_train
monodepth2_learner.train(output_dir)
File "/home/jiatian/project/depth/tf-monodepth2/model/monodepth2_learner.py", line 404, in train
self.save(sess, ckpt_dir, 'latest')
File "/usr/lib/python3.6/contextlib.py", line 88, in exit
next(self.gen)
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/training/supervisor.py", line 1014, in managed_session
self.stop(close_summary_writer=close_summary_writer)
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/training/supervisor.py", line 839, in stop
ignore_live_threads=ignore_live_threads)
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/jiatian/venv/lib/python3.6/site-packages/six.py", line 696, in reraise
raise value
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/training/queue_runner_impl.py", line 257, in _run
enqueue_callable()
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1287, in _single_operation_run
self._call_tf_sessionrun(None, {}, [], target_list, None)
File "/home/jiatian/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
(0) Invalid argument: Expected size[1] in [0, 608], but got 640
[[{{node data_loading/Slice}}]]
[[data_loading/Slice_4/_1053]]
(1) Invalid argument: Expected size[1] in [0, 608], but got 640
[[{{node data_loading/Slice}}]]
0 successful operations.
0 derived errors ignored.

Hi, do you know why does this error happens? Thanks

Getting Depth to points in the image.

How would you obtain the depth to all points in the image using the output of the model?
Does it involve using the camera intrinsics, or is there a way to directly obtain depth?

Not able to train

Hi all,

Conda env details -

cudatoolkit 9.0
cudnn 7.1.2
tensorflow-gpu 1.6.0

Data Preprocessing -

Followed the same command what was mentioned in the repo
0000000001

While training facing an error - not able to find why is it caused
Or Am i missing something else @FangGet ?

Attaching the error below
Traceback (most recent call last):
File "monodepth2.py", line 63, in
args.func(config, output_dir, args)
File "monodepth2.py", line 17, in _cli_train
monodepth2_learner.train(output_dir)
File "/home/DEPTH_MODEL/tf-monodepth2/model/monodepth2_learner.py", line 405, in train
self.save(sess, ckpt_dir, 'latest')
File "/home/anaconda3/envs/tf_mono/lib/python3.6/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 1000, in managed_session
self.stop(close_summary_writer=close_summary_writer)
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 828, in stop
ignore_live_threads=ignore_live_threads)
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/six.py", line 703, in reraise
raise value
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/training/queue_runner_impl.py", line 252, in _run
enqueue_callable()
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1259, in _single_operation_run
None)
File "/home/anaconda3/envs/tf_mono/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 516, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Expected size[1] in [0, 608], but got 640
[[Node: data_loading/Slice = Slice[Index=DT_INT32, T=DT_UINT8, _device="/job:localhost/replica:0/task:0/device:CPU:0"](data_loading/DecodeJpeg, data_loading/Slice_4/begin, data_loading/Slice_3/size)]]

error when trying to test

NotFoundError (see above for traceback): Key monodepth2_model/pose_decoder/res18_tc/biases not found in checkpoint
[[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]

I ran into such error when trying to test. Should the checkpoint be updated?

Question about training

Screenshot from 2019-09-25 15-41-14

After training for about 4 epochs, i get results like above. Is this the issue with the input data? or something else?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.