Code Monkey home page Code Monkey logo

w-net's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

w-net's Issues

Please add a license file

@LouisFoucard - this looks fantastic. I've run through your notebook and am pleased by the results so far.

Can you please add a "LICENSE" file to the top-level directory of the repo?
Ideally, you would choose Apache-2.0, MIT, or BSD, but choosing one is important to enable others to use your open source repo.

Thank you!

Could you release the trained weights?

Hi Louis,

Thanks for the great repository. It's very exciting work.

I've been trying for a few days to reproduce your results using this code and the provided sample images. I was assuming I could take your sample images and "overfit" the network to these to at least see some results. Unfortunately I can't seem to get the network to produce good quality left->right and right->left reconstructions, and the disparity map looks quite incorrect. My intuition says I should only need a large corpus of training data if I want to produce a generalised model, and that a small training set should at least be able to perform well when validated against itself. Would you agree with this assumption?

I don't expect you to spend your time on helping me get it working, but I wondered if you might release your pretrained weights so I can repeat your results with the sample images?

Thanks in advance!
Chris

Different disparity levels?

In this work, you've hardcorded the expected disparity levels to +- 16. Is there anything stopping us from increasing those to a larger number, like +-128? There are other datasets that I'd like to test on that have these levels of disparity. What would need to change in the code to enable larger disparity searches?

add the missing "im_left"

Great work! I am trying testing and learning from your work.

It seems the origin go-through script missed the definition of "im_left".
I try to add the one-liner before the scripts need it and it seems to work:

im_left = stereo_im[:, np.r_[0, 0:img_cols-1],:]

FYI.

about the yield in data_loader.py

hi, I want to know why when the get the train data, their are two generator.

def train_generator_func():
while True:
X = train_generator1.next()
print X.shape
Y1 = train_generator2.next()
yield X, [Y1, np.zeros(shape=(Y1.shape[0], img_rows - 4, img_cols - 4)),
np.zeros(shape=(Y1.shape[0], img_rows - 4, img_cols - 4))]

please, can I discard the Y1 ?
and just use the X? thank you very much.

Problem in the generator named 'data_generator' and the corresponding generators in 'data_loader.py' file

I got an error at the very last section of the w_net_walk_through.ipynb file :

  2 depthmaps = []
  3 for i in tqdm(range(1)):

----> 4 dat = data_generator.next()
5
6 disparity_map_left, disparity_map_right = disp_maps_forward.predict(dat[0][0:10])

AttributeError: 'generator' object has no attribute 'next'

After going through https://stackoverflow.com/questions/1073396/is-generator-next-visible-in-python-3-0 , I found that on python 3 you need to use data_generator.next() or next(data_generator).

Note: I had to change this in the walk_through.ipynb file and the data_loader.py file as well

But even after this I get a Type Error:

TypeError: 'float' object cannot be interpreted as an integer

Here is the output:

TypeError Traceback (most recent call last)
in ()
2 depthmaps = []
3 for i in tqdm(range(1)):
----> 4 dat = data_generator.next()
5
6 disparity_map_left, disparity_map_right = disp_maps_forward.predict(dat[0][0:10])

~/PycharmProjects/tensorplay/venv/w-net-master/data_loader.py in train_generator_func()
50 def train_generator_func():
51 while True:
---> 52 X = train_generator1.next(self)
53 Y1 = train_generator2.next(self)
54 yield X, [Y1, np.zeros(shape=(Y1.shape[0], img_rows - 4, img_cols - 4)),

~/PycharmProjects/tensorplay/venv/lib/python3.6/site-packages/keras_preprocessing/image.py in next(self)
1817 # The transformation of images is not under thread lock
1818 # so it can be done in parallel
-> 1819 return self._get_batches_of_transformed_samples(index_array)

~/PycharmProjects/tensorplay/venv/lib/python3.6/site-packages/keras_preprocessing/image.py in _get_batches_of_transformed_samples(self, index_array)
1763 batch_x = np.zeros(
1764 (len(index_array),) + self.image_shape,
-> 1765 dtype=backend.floatx())
1766 # build batch of image data
1767 for i, j in enumerate(index_array):

TypeError: 'float' object cannot be interpreted as an integer

I am unable to fix this. Please help..

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.