A Hopfield network to recover noisy images.
in particular, learn network on A to J letters and recover noisy images with network.
Install dependencies by running following command:
pip install -r requirements.txt
-
To generating original images and noisy images run following command:
python generate_images.py -
To learn
Hopfield Networkwith generated original images and recover noisy images with learned network run following command:
python hopfield.py -
To evaluate the recovered images in comparison with the original images, run the following command:
python evaluate.py
Sample of noisy image and recovered image:
Noisy image with 30% noise and 32px font.
Recovered
table of accuracy for recovering noisy images for all fonts and 10%, 30% and 60% noise.
Amir Rezaei @ameerezae


