Coder Social home page Coder Social logo

capogluuu / denoising-autoencoders-with-pytorch Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 18.96 MB

Remove noise from printed text with CNN Autoencoder in Pytorch

Jupyter Notebook 99.71% Python 0.29%
denoising-autoencoders cnn-pytorch python image

denoising-autoencoders-with-pytorch's Introduction

Denoising-Autoencoders-with-Pytorch

As we know, the photos we take from cameras are sometimes not suitable for processing. In this project, a necessary step was taken in order to achieve maximum efficiency while a project such as text detection was being carried out. This step is to clear the pictures from their noises. A convolutional neural network and autoencoder were used in this project. Have a good time.

Noisy picture and clear picture

RESULT

denoising-autoencoders-with-pytorch's People

Contributors

capogluuu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

caseybackes

denoising-autoencoders-with-pytorch's Issues

TypeError: Invalid shape (416, 528, 1) for image data

Hello, When I try to run the following lines on Colab,

a = DataLoader_Class(path_zip, path)
b = a.read_all_image()
a.see_an_image(5)

I get this error with see_an_image(5):

torch.Size([144, 1, 416, 528])
torch.Size([144, 1, 416, 528])
torch.Size([72, 1, 416, 528])

TypeError Traceback (most recent call last)
in ()
1 a = DataLoader_Class(path_zip, path)
2 b = a.read_all_image()
----> 3 a.see_an_image(5)

5 frames
/usr/local/lib/python3.7/dist-packages/matplotlib/image.py in set_data(self, A)
697 or self._A.ndim == 3 and self._A.shape[-1] in [3, 4]):
698 raise TypeError("Invalid shape {} for image data"
--> 699 .format(self._A.shape))
700
701 if self._A.ndim == 3:

TypeError: Invalid shape (416, 528, 1) for image data

Do you have any idea how I can fix this issue?
Thanks in advance

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.