{"id":22615535,"url":"https://github.com/sovit-123/image-deblurring-using-deep-learning","last_synced_at":"2025-04-11T12:12:32.507Z","repository":{"id":45828591,"uuid":"258668550","full_name":"sovit-123/image-deblurring-using-deep-learning","owner":"sovit-123","description":"PyTorch implementation of image deblurring using deep learning. Use a simple convolutional autoencoder neural network to deblur Gaussian blurred images.","archived":false,"fork":false,"pushed_at":"2023-02-16T09:24:50.000Z","size":3931,"stargazers_count":26,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T08:38:15.339Z","etag":null,"topics":["computer-vision","computer-vision-neural-networks","convolutional-neural-networks","deep-learning","deep-neural-networks","deeplearning-image-deblur","image-deblur","image-deblurring","machine-learning","neural-networks","pytorch"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sovit-123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-25T02:17:16.000Z","updated_at":"2025-03-03T22:08:23.000Z","dependencies_parsed_at":"2022-09-07T04:52:09.147Z","dependency_job_id":null,"html_url":"https://github.com/sovit-123/image-deblurring-using-deep-learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sovit-123%2Fimage-deblurring-using-deep-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sovit-123%2Fimage-deblurring-using-deep-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sovit-123%2Fimage-deblurring-using-deep-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sovit-123%2Fimage-deblurring-using-deep-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sovit-123","download_url":"https://codeload.github.com/sovit-123/image-deblurring-using-deep-learning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248398505,"owners_count":21097292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","computer-vision-neural-networks","convolutional-neural-networks","deep-learning","deep-neural-networks","deeplearning-image-deblur","image-deblur","image-deblurring","machine-learning","neural-networks","pytorch"],"created_at":"2024-12-08T19:08:16.532Z","updated_at":"2025-04-11T12:12:32.489Z","avatar_url":"https://github.com/sovit-123.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n\n\n* **First of all, you can find the dataset on Kaggle:**\n\n  * **Dataset  =\u003e https://www.kaggle.com/kwentar/blur-dataset.**\n\n* Get the dataset and extract it inside the `input` folder. Following is the directory structure for the project:\n\n  ```\n  ├───input\n  │   ├───defocused_blurred\n  │   ├───gaussian_blurred\n  │   ├───motion_blurred\n  │   └───sharp\n  ├───outputs\n  │   └───saved_images\n  └───src\n  ```\n\n\n\n## Steps to Execute\n\n* I have not used the blurred images that are given in the original dataset for image deblurring. They are spatially variant due to motion blurring and defocus-blurring. I have added Gaussian blurring to the images using the `add_guassian_blur.py` script inside the `src` folder. Then I have used these images for deblurring.\n* **The following is the order of execution:**\n  1. `add_gaussian_blur.py`\n  2. `deblur_ae.py`\n* ***Note: Execute all the scripts while being within the `src` folder inside the terminal***.\n\n\n\n## \u003cu\u003eSome Results\u003c/u\u003e\n\n* **Loss Plot**\n\n  ![](https://github.com/sovit-123/image-deblurring-using-deep-learning/blob/master/outputs/loss.png?raw=true)\n\n* **Blurred Image**\n\n  ![](https://github.com/sovit-123/image-deblurring-using-deep-learning/blob/master/outputs/saved_images/blur0.jpg?raw=true)\n\n  **Final Deblurred Image**\n\n  ![](https://github.com/sovit-123/image-deblurring-using-deep-learning/blob/master/outputs/saved_images/val_deblurred39.jpg?raw=true)\n\n\n\n## \u003cu\u003eFuture Work\u003c/u\u003e\n\n* To deblur the spatially variant images inside the `defocused_blurred` and `motion_blurred` folders.\n* Add more and better models to `models.py` script. \n* **Any useful contribution to the project is highly appreciated.**\n\n\n\n## \u003cu\u003eReferences\u003c/u\u003e\n\n* Paper: Image Deblurring with BlurredNoisy Image Pairs, **Lu Yuan, Jian Sun, Long Quan, Heung-Yeung Shum.**\n* [Image super-resolution as sparse representation of raw image patches](https://www.researchgate.net/publication/221364186_Image_super-resolution_as_sparse_representation_of_raw_image_patches), **Jianchao Yang†, John Wright‡, Yi Ma‡, Thomas Huang†**.\n* mage Deblurring and Super-Resolution Using Deep Convolutional Neural Networks](https://www.researchgate.net/publication/328985265_Image_Deblurring_and_Super-Resolution_Using_Deep_Convolutional_Neural_Networks), **Fatma Albluwi, Vladimir A. Krylov \u0026 Rozenn Dahyot**.\n  * [GitHub Code](https://github.com/YapengTian/SRCNN-Keras).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsovit-123%2Fimage-deblurring-using-deep-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsovit-123%2Fimage-deblurring-using-deep-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsovit-123%2Fimage-deblurring-using-deep-learning/lists"}