Giter VIP home page Giter VIP logo

epinet's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

epinet's Issues

How to generate lytro 9*9 data?

Hi Changha,

I found that in your real-world result, you captured light-field images by a Lyrto Illum camera. And in your data dir, there are 81 images from different perspective. How did you generate these 81 images from Lytro file *.lfr or *.lfp? Is there any code or tools for me to generate these images on my own data?

Test performance different from that of HCI benchmark

Hi Dr. Shin,
Thank you very much for your excellent works, it really helps me a lot. But I got a little confused when I tested HCI light field scene (boxes, cotton, dino, sideboard) with offered model (pretrained model 9x9 and 5x5), I found that the performances of estimates (MSE and Bad pixel ratio) is different from that published on HCI benchmark website, I guess maybe that the models you offered is different from that you used for HCI benchmark test? Do you have any idea about the difference? Thank you for your attention!
Yours sincerely,
Jinglei

questions about AttributeError: 'threadsafe_iter' object has no attribute 'shape'

I have a problem when I try to run the code:
Traceback (most recent call last):
File "EPINET_train.py", line 278, in
initial_epoch=iter00, verbose=1,workers=1)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py", line 1426, in fit_generator
initial_epoch=initial_epoch)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training_generator.py", line 115, in model_iteration
shuffle=shuffle)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training_generator.py", line 377, in convert_to_generator_like
num_samples = int(nest.flatten(data)[0].shape[0])
AttributeError: 'threadsafe_iter' object has no attribute 'shape'

Anyone may give me some suggestions about it?
Thanks a lot !!

A bug in boolmask

line 121 in func_generate_traindata.py
if(image_id==4 or 6 or 15): this statement will always be True.
Maybe you want something like this? if(image_id==4 or image_id==6 or image_id==15):

And for line 128-132,
if( np.sum(a_tmp[idx_start+scale*crop_half1: idx_start+scale*crop_half1+scale*label_size:scale, idy_start+scale*crop_half1: idy_start+scale*crop_half1+scale*label_size:scale])>0 or np.sum(a_tmp[idx_start: idx_start+scale*input_size:scale, idy_start: idy_start+scale*input_size:scale])>0 ): valid=0
Should this code fragment be also in if(image_id==4): and if(image_id==6): ?

Resolution of output disparity map should be 512x512 in case of synthetic LF data

Hi Changha,

Very thankful for your github contribution code. Can you confirm the resolution of disparity map ?
In your code, it generates 490x490 one but 512x512 is more correct, isnt it?
I ask this question because the ground truth of synthetic LF has resolution 512x512. I want to make a fair comparison.

Have a good day, btw.

How to evaluate 490x490 output with light field evaluation-toolkit?

Hi Changha,

Very thankful for your github contribution code. In your code, your output is 490x490. I want to know how to use the evaluation-toolkit from HCI benchmark to evaluate 490x490 output, their source code can only be used to evaluate 512x512 output, thank you!

Have a good day, btw

disparity label setting after random shift augmentation

we select the 7×7 views and disparity image of its center view to train our network.

The paper mentioned the disparity label should respond to its center view after random shift augmentation. But in the current code, load_LFdata function introduces the code:
traindata_label=np.zeros((len(dir_LFimages), 512, 512),np.float32), it doesn't include all view disparity.
Although the generate_traindata_for_train function assumes the situation, the disparity image of its center view can't be produced. So I want to clarify the detail of whether to use the center disparity label during the training process.

repetitive computation in test data generation

these lines should be taken out of the for loop of kkk.

if(len(traindata_all)>=12 and traindata_label.shape[-1]==9):
traindata_label_batchNxN[ii,:,:]=traindata_label[image_id,idx_start+crop_half1: idx_start+crop_half1+label_size,idy_start+crop_half1: idy_start+crop_half1+label_size, 4+ix_rd, 4+iy_rd]
elif(len(traindata_label.shape)==5):
traindata_label_batchNxN[ii,:,:]=traindata_label[image_id ,idx_start+crop_half1: idx_start+crop_half1+label_size,idy_start+crop_half1: idy_start+crop_half1+label_size,0,0]
else:
traindata_label_batchNxN[ii,:,:]=traindata_label[image_id ,idx_start+crop_half1: idx_start+crop_half1+label_size,idy_start+crop_half1: idy_start+crop_half1+label_size]

Hello, some question about training code

I use imgaug to do data_augmentation, and train this model (input 9x9 images), and noticed that every epoch in model.fit() cost 100+ seconds and I run this on 2 TITAN V,and after 2600 epochs the results are bad, so I just want to know how you train this model, do you have a plan to release the full code? Since I was in this trouble for almost one month, more details would be appreciated.

More details in augmentation would be appreciated

Hello Changha Shin.
In the paper, you mentioned that methods such as randomly converting color to gray scale from [0,1] is used. However, by reviewing the "epinet_fun/func_makeinput.py" I notice that it've already converted the image into gray scale before returning the data.
Is the training data all gray or just part of it?
Is this function only applied in the test process or in the training as well?
More details in augmentation would be appreciated.
Thank you for your great work.

FAQ: LF image ordering

image_order

We extract epipolar image stacks like this.
If you use your LF dataset, LF image ordering may be different, so be careful.

seq90d [76, 67, 58, 49, 40, 31, 22, 13, 4 ] --> image_stack_90d(dimension:NxNx9)
seq0d [36, 37, 38, 39, 40, 41, 42, 43, 44 ] --> image_stack_0d(dimension:NxNx9)
seq45d [72, 64, 56, 48, 40, 32, 24, 16, 8 ] --> image_stack_45d(dimension:NxNx9)
seqM45d [ 0, 10, 20, 30, 40, 50, 60, 70, 80 ] --> image_stack_minus45d(dimension:NxNx9)

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.