Skip to content

Trying to solve the anti-aliasing problem with machine learning

License

Notifications You must be signed in to change notification settings

alpertunga-bile/AAML

Repository files navigation

AAML

Attributes | Results

  • Trying to solve the anti-aliasing problem with machine learning models. In this project, a 3x3 filter was used to estimate the middle pixel values based on RGBA. As an alternative research, it is tried to increase the image quality with these models.

  • For this project PNG, JPG and JPEG image files can be used for the dataset.

  • At this point, it is important to enlarge the data set. After that, training will be done using the machine learning model and dataset then tests will be done on many pictures.

  • At 28/01/2023, there are nearly 200.000.000 rows of data. The data is splitted into 5 datasets. Each dataset has unique rows in themselves. Therefore each dataset can be used as single datasets. In training, the datasets are selected as random.

  • At 18/03/2023, there are nearly 380.000.000 rows of data. The data is splitted into 10 datasets. Each dataset has unique rows in themselves. Therefore each dataset can be used as single datasets. In training, the datasets are selected as random.

  • Currently "ADAM_RGB", "model" and "RMSPROP_RGBA" are trained. The training is ongoing.

  • Using Python 3.7.8. Used packages can be found in requirements.txt file.

Attributes

  • top_left_r
  • top_left_g
  • top_left_b
  • top_left_a
  • top_r
  • top_g
  • top_b
  • top_a
  • top_right_r
  • top_right_g
  • top_right_b
  • top_right_a
  • left_r
  • left_g
  • left_b
  • left_a
  • right_r
  • right_g
  • right_b
  • right_a
  • bottom_left_r
  • bottom_left_g
  • bottom_left_b
  • bottom_left_a
  • bottom_r
  • bottom_g
  • bottom_b
  • bottom_a
  • bottom_right_r
  • bottom_right_g
  • bottom_right_b
  • bottom_right_a
  • middle_r
  • middle_g
  • middle_b
  • middle_a

Results

  • At the row by row version, model predicts one row and changes the pixel values and predict below row. This can be useful because when model is predicting it uses upper predicted row.

  • At the full image version, model predicts with all of the original image's pixel values then changes the pixel values.


  • Latest Result Date : 18/03/2023 | ADAM_RGB model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test row full

  • Latest Result Date : 04/03/2023 | ADAM_RGB model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test row full

  • Latest Result Date : 28/01/2023 | ADAM_RGB model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test rowByrow fullImage

  • Latest Result Date : 15/01/2023 | "model" model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test row full

  • Latest Result Date : 11/01/2023 | "model" model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test index index

  • Latest Result Date : 10/01/2023 | "model" model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test index index

  • Latest Result Date : 05/01/2023 | "model" model is used
Original Row By Row by 3x3 filter Full Image by 3x3 filter
test index image