# Eddie's Learning Record 36 **Published by:** [Eddie's Learning Records](https://paragraph.com/@eddiehe/) **Published on:** 2023-03-07 **URL:** https://paragraph.com/@eddiehe/eddies-learning-record-36 ## Content 1. DurationMonday, February 27th, 2023 - Saturday, March 4th, 2023 2. Learning Records2.1 Re-croppingIt could be concluded that I fixed the cropping problem or I added a new cropping feature. The height of the ROI returned by cv2 is slightly longer than the weight. Therefore, I added half of the height to the weight and I could get a square bounding box. Then, the cropped square image is fed to the pre-processing. Suprisingly, the landmarks could be detected on every image, which means the detection index shift that I spent a lot of time and effort before is useless now. It was a good news or a bad news somehow. The new cropping function is applied to both CAS(ME)^2 and SAMM Long Videos dataset. 2.2 BuildingBuilt the training and test function for CAS_Test and SAMM_Test dataset that are used in the MEGC2022. Built a function to store the normalize, augment and .pkl files loading function. Built training and test .ipynb files for the MEGC2022. 2.3 Extraction and Pre-processingThanks to the new cropping function the extraction and pre-process were running smoothly. 2.4 RefactoringLet hyperparameters set at the beginning of every .ipynb file. Now I could just set the hyperparameters and then click "Run All" and I could get the prediction. 2.5 Paper WritingWrote the part of describing the Locality Self-Attention and Swin Transformer. 3. Feelings3.1 Confused, Perplexed and AnxiousEvery macro-expression spotting experiments cost more than three days. What else could I do during the training period? ## Publication Information - [Eddie's Learning Records](https://paragraph.com/@eddiehe/): Publication homepage - [All Posts](https://paragraph.com/@eddiehe/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@eddiehe): Subscribe to updates - [Twitter](https://twitter.com/eddiehe99): Follow on Twitter ## Optional - [Collect as NFT](https://paragraph.com/@eddiehe/eddies-learning-record-36): Support the author by collecting this post - [View Collectors](https://paragraph.com/@eddiehe/eddies-learning-record-36/collectors): See who has collected this post