Git Product home page Git Product logo

pytorch-learning-to-see-in-the-dark's Issues

Test

when you test,you can use torch.nograd().

cuda memory insufficient

Hi, thanks for your work!
I am trying test.py on gpu, but got error "cuda out of memory".(rtx 2080ti)
Any solution could solve this?
thanks!

Where is the slice operation in test code?

Hello,
You mentioned that you slice the original input images into small pieces(1024*1024) in readme, however, I cannot find the corresponding operations in the test code. Would you please tell me where is the slice operation? thank you~

Training time?

Hey, how much time it approximately takes to train the SONY model using the specified configuration?

Does the function _initialize_weights() necessary?

You have added a _initialize_weights() function, does it is necessary to pytorch?

def _initialize_weights(self): for m in self.modules(): if isinstance(m, nn.Conv2d): m.weight.data.normal_(0.0, 0.02) if m.bias is not None: m.bias.data.normal_(0.0, 0.02) if isinstance(m, nn.ConvTranspose2d): m.weight.data.normal_(0.0, 0.02)

Maybe There is a bug in train.py, when flip the image

Here in the second if, I think the axis should be 2. axis=0 means flip along the batch dimension

    if np.random.randint(2,size=1)[0] == 1:  # random flip 
        input_patch = np.flip(input_patch, axis=1)
        gt_patch = np.flip(gt_patch, axis=1)
    if np.random.randint(2,size=1)[0] == 1: 
        input_patch = np.flip(input_patch, **axis=0**)
        gt_patch = np.flip(gt_patch, **axis=0**)
    if np.random.randint(2,size=1)[0] == 1:  # random transpose 
        input_patch = np.transpose(input_patch, (0,2,1,3))
        gt_patch = np.transpose(gt_patch, (0,2,1,3))

Cant make it work on Cuda [windows]

Hi

CPU works, but cuda shows error. I cant figure out how to fix it.
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Thanks

About the codes

Thanks for releasing the code. I want to know if you have got the results of the paper when using the pytorch codes.

im = raw.postprocess

How to understand im = raw.postprocess(use_camera_wb=True, half_size=False, no_auto_bright=True, output_bps=16)

about the loss function

I want to use pytorch to implement a new loss function. And almost all the online information say that I should make a new class that inherit the nn.Module. But I found you just create a function ‘reduce_mean()’. Does it means that it is just so easy in pytorch to make an own funtion.

Considering your failure case

I'm pretty sure you can just pass the whole image into the network for testing, so you wouldn't need to slice it up.

scale_full

How to understand origin_full = scale_full?Why are the results very different?
How to understand scale_full = scale_full*np.mean(gt_full)/np.mean(scale_full)?
What is the role of scale_full?

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.