Code Monkey home page Code Monkey logo

unsupervised-domain-specific-deblurring's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar

unsupervised-domain-specific-deblurring's Issues

this code have inplace bug

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [80, 3, 1, 1]] is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
python-BaseException

Applying to a general image restoration

Hello
How are you?
Thanks for contributing to this project.
I am going to use this method to a general image restoration (denoise, deraining, etc).
Do u think it is possible?

RuntimeError: reduce failed to synchronize: device-side assert triggered

Hi,
Thanks for your code. But I met some problem when I run this code

/pytorch/aten/src/THCUNN/BCECriterion.cu:42: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust::detail::tuple_of_iterator_references<thrust::device_reference, thrust::device_reference, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float]: block: [0,0,0], thread: [30,0,0] Assertion input >= 0. && input <= 1. failed.
/pytorch/aten/src/THCUNN/BCECriterion.cu:42: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust::detail::tuple_of_iterator_references<thrust::device_reference, thrust::device_reference, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float]: block: [0,0,0], thread: [31,0,0] Assertion input >= 0. && input <= 1. failed.
Traceback (most recent call last):
File "train.py", line 87, in
main()
File "train.py", line 58, in main
model.update_D(images_a, images_b)
File "/home/dengzeyu/run_on_server/Unsupervised-Domain-Specific-Deblurring-master/src/model.py", line 191, in update_D
loss_D1_A = self.backward_D(self.disA, self.real_I_encoded, self.fake_I_encoded)
File "/home/dengzeyu/run_on_server/Unsupervised-Domain-Specific-Deblurring-master/src/model.py", line 222, in backward_D
ad_fake_loss = nn.functional.binary_cross_entropy(out_fake, all0)
File "/home/dengzeyu/anaconda3/envs/py36/lib/python3.6/site-packages/torch/nn/functional.py", line 2113, in binary_cross_entropy
input, target, weight, reduction_enum)
RuntimeError: reduce failed to synchronize: device-side assert triggered
Do you know the reason?
Best

about test set

Hi, I had a question while reading your paper. In the section on the data set in your paper, you mentioned the following: "We randomly split the whole dataset into three mutually exclusive subsets: sharp training set (100K images), blurred training set (100K images) and test set (2137 images). For the blurred training set, we use the method in Section 3.6 to blur the images." But we did not find out exactly what test set you used in this sentence. I would like to know exactly what test set was used to evaluate performance.

confuse about the code

i have read your code carefully, there are two confusions in my head:

  1. first, why add guassian noise in Content Encoder part
  2. second,why exists four discriminators: disB2 and disA2? is it indispensable? can i cancel it?

model

Would you provide the trained model?

Spectral Norm

Do you use spectral norm in the discriminators?
Thank you.

Gradient Clipping

Dear author,

In the DRIT model you have taken inspiration from, gradient clipping is applied to stabilize gan training. I couldn't see that in your implementation if I am not mistaken. I was wondering if this is intentional.

Thank you.

KeyError:'enc_c' appeared while testing

this is my code for testing :python test.py --dataroot ../datasets/test/test_blur/ --num 1 --resume ../models/VGGFace16.pth --name job_name --orig_dir ../datasets/test/test_orig --percep face --result_dir ../datasets/test/results
And error occured:
Traceback (most recent call last):
File "test.py", line 105, in
main()
File "test.py", line 41, in main
model.resume(opts.resume, train=False)
File "D:\Study\deblur\Unsupervised-Domain-Specific-Deblurring-master\src\model.py", line 326, in resume
self.enc_c.load_state_dict(checkpoint['enc_c'])
KeyError: 'enc_c'
There is no result, how to solve the problem?

Multi-gpu support

Hi,
Thanks for your code. I wonder if the code can be adapted to support multi-gpus?

Best,

about train data

Hi, after reading your paper, I found that you used three datasets to train the model. But I am not sure whether you use each dataset to train the model individually or put all data together to train the model?If possible, can you provide the pre-processed relevant data?

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.