-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train your own dataset #222
Comments
If you have your own dataset, you need to prepare them as follow: -DeblurGAN-master
You need to put your sharp and blurred images in these folders accordingly. Make sure for example, when you put the blurred image, in the "..\blurred\train" folder, you put it's associate sharp image in "..\sharp\train" folder. Now you need to create another folder, let's call it "combine" and put it in the following directory: via cmd or VScode (any platform that you are using) go to the "DeblurGAN-master" folder and "run combine_A_and_B.py". below is an example: python datasets/combine_A_and_B.py --fold_A "C:\TEMP\DeblurGAN-master\blurred_sharp\blurred" --fold_B "C:\TEMP\DeblurGAN-master\blurred_sharp\sharp" --fold_AB "C:\TEMP\DeblurGAN-master\blurred_sharp\combine" It will create two subfolders (train and test) in the "combine" folder that you created earlier. You will see the blurred and sharp images concatenated. Now make sure you have visdom package correctly installed in your python. python -m visdom.server you will probably get the following message: Checking for scripts.
|
We can't get the result of deblur type after testing a blurry image. What should we do? do we need to combine a blurry and sharp image like in the process of training? Also is it possible to select particular region only of the image to deblur? something like comparative between an entire image and the selected part region of the image, thank you! below our own test image that showed in the results after testing it. |
I want to train my dataset and what to do
The text was updated successfully, but these errors were encountered: