I am using the code provided by this Github https://github.com/vyraun/Half-Size/blob/master/algo.py
Although he did not only use PCA, he combined some algorithms (but