<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Eddie's Learning Records</title>
        <link>https://paragraph.com/@eddiehe</link>
        <description>Record interesting academic information I have recently seen and some associations. Not updated on a regular basis. My site: https://eddiehe.super.site</description>
        <lastBuildDate>Fri, 02 Oct 2026 18:58:35 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Eddie's Learning Records</title>
            <url>https://storage.googleapis.com/papyrus_images/072eed9b0c0ba964fac2062b8fa6ac27</url>
            <link>https://paragraph.com/@eddiehe</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Eddie's Learing Record 44]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learing-record-44</link>
            <guid>6PP67RmjcIK3zJoDQEOd</guid>
            <pubDate>Fri, 05 May 2023 03:57:34 GMT</pubDate>
            <description><![CDATA[1. DurationMonday, Apr. 24th, 2023 - Sunday, Apr. 30th, 20232. Learning Records2.1. UpdatingRevised my English Curriculum Vitae and Chinese Resume bas...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, Apr. 24th, 2023 - Sunday, Apr. 30th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1. Updating</h2><p>Revised my English Curriculum Vitae and Chinese Resume based on the SATA principles.</p><p></p><h2>2.2. Submission</h2><p>Used Grammarly to correct my paper draft and created a LaTeX manuscript based on the template.</p><p>Spent about a whole afternoon writing a Cover Letter.</p><p>The manuscript was submitted to Applied Sciences on Apr. 29th, 2023.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1. Relieved</h2><p>Gave a gasp of relief after the submission. At least I took the first step.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 43]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-43</link>
            <guid>lfqSI29jnhaUj5oSs7WT</guid>
            <pubDate>Fri, 05 May 2023 02:47:02 GMT</pubDate>
            <description><![CDATA[1. DurationMonday, Apr. 17th, 2023 - Sunday, Apr. 23th, 20232. Learning Records2.1. ExploringSearched for potential supervisors in CityU and PolyU.2.2...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, Apr. 17th, 2023 - Sunday, Apr. 23th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1. Exploring</h2><p>Searched for potential supervisors in CityU and PolyU.</p><p></p><h2>2.2. Revision</h2><p>Revised the patent document. At least four versions of the document were made.</p><p></p><h2>2.3. Writing</h2><p>Started to write my English Curriculum Vitae and Chinese Resume.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1. Relieved</h2><p>I gave a gasp of relief after the table which stores the information of the supervisors was filled.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 42]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-42</link>
            <guid>eFvktnPIyj9y44Vdj1mc</guid>
            <pubDate>Mon, 24 Apr 2023 12:40:47 GMT</pubDate>
            <description><![CDATA[1. DurationMonday, April 10th, 2023 - Sunday, April 16th, 20232. Learning Records2.1 WritingAdded more details about the overall architecture. Demonst...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, April 10th, 2023 - Sunday, April 16th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Writing</h2><p>Added more details about the overall architecture. Demonstrated and calculated the feature size of each stage as the network gets deeper. Besides, I also wrote the ablation part. But to be honest, writing the portion I mentioned above put me in a difficult position because it was all about bragging. I struggled with exaggerating how excellent my proposed method was. Actually, it was just slightly better than a piece of shit. Based on this fact, it was much easier to write the limitations.</p><p></p><h2>2.2 Exploring</h2><p>Searched for potential supervisors in HKUST and CUHK. The research areas and interests of the professors at HKUST are much more related to science, not engineering. Compared to science, I am keener on  engineering.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Procrastination</h2><p>The students on every team are brilliant. They all come from prestigious schools. Consequently, it is almost impossible for me, a nobody, to get that advanced doctoral opportunities.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 41]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-41</link>
            <guid>Q3mu3pFFUHDUX8SeyXA2</guid>
            <pubDate>Wed, 19 Apr 2023 12:53:22 GMT</pubDate>
            <description><![CDATA[1. Duration Monday April 3rd, 2023 - Saturday, April 8th, 2023    2. Learning Record 2.1 Writing Only wrote the results of my paper drafts.    3. Feeling 3.1 Busy I went home twice this week. It cost about half a day to go home. Going back to school from home costs the same. ]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday April 3rd, 2023 - Saturday, April 8th, 2023</p><p></p><hr><p></p><h2>2. Learning Record</h2><h2>2.1 Writing</h2><p>Only wrote the results of my paper drafts.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Busy</h2><p>I went home twice this week. It cost about half a day to go home. Going back to school from home costs the same.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 40]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-40</link>
            <guid>1OcU4z68lsnFnNaLTRJZ</guid>
            <pubDate>Wed, 19 Apr 2023 10:15:13 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, March 27th, 2023 - Sunday, April 2nd, 2023    2. Learning Records 2.1 Experiments Redid macro-expression spotting experiments on CAS(ME)^2 and SAMM Long Videos datasets. Combining different versions of macro- and micro-expression spotting experiment outcomes resulted in differ...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, March 27th, 2023 - Sunday, April 2nd, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Experiments</h2><p>Redid macro-expression spotting experiments on CAS(ME)^2 and SAMM Long Videos datasets. Combining different versions of macro- and micro-expression spotting experiment outcomes resulted in different performances. Luckily, There was some improvement in the overall analysis.</p><p></p><h2>2.2 Building</h2><p>Built the <code>.py</code> file that combines extraction and pre-processing together. It seemed to work well.</p><p></p><h2>2.3 Writing</h2><p>Wrote parts of my paper draft which demonstrates Swin Transformer, Shifted Patch Tokenization, Locality Self-Attention, and spotting.</p><p></p><h2>2.4 Exploring</h2><p>Searched for potential supervisors in HKU and HKUST.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Irritable</h2><p>It was damn humid. Everything was damn wet.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 39]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-39</link>
            <guid>iYsQTIOxpm60SDIQ7QC3</guid>
            <pubDate>Thu, 30 Mar 2023 10:02:24 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, March 20th, 2023 - Friday, March 24th, 2023    2. Learning Record 2.1 Sketches Drawing Drew illustration sketches for the patent.  2.2 Testing for MEGC 2022 Benchmarks The performance of both Swin Transformer and SL-Swin is unstable. I had made the same experiment several time...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, March 20th, 2023 - Friday, March 24th, 2023</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Sketches Drawing</h2><p>Drew illustration sketches for the patent.</p><p></p><h2>2.2 Testing for MEGC 2022 Benchmarks</h2><p>The performance of both Swin Transformer and SL-Swin is unstable. I had made the same experiment several times and it ended up with different outcomes.</p><p></p><h2>2.3 Building</h2><p>Built S-Swin and L-Swin. Did experiments using S-Swin, L-Swin, ViT, and SL-ViT.</p><p></p><h2>2.4 Post-processing</h2><p>I tried to apply different smoothing methods to the predicted scores but they all degraded the performance.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>Worried</h2><p>The performance of the models on the MEGC 2022 was terrible.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 38]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-38</link>
            <guid>mUky82bZ7dU1rxoXWiGz</guid>
            <pubDate>Wed, 29 Mar 2023 10:07:18 GMT</pubDate>
            <description><![CDATA[1. Duration Tuesday, March 13th, 2023 - Sunday, March 19th, 2023    2. Learning Records 2.1 Applying Multithreading Applied multithreading on the overall analysis. ME analysis and MaE analysis are processed on two threads separately.  Applied multithreading on ME analysis.  2.2 Refactoring Refact...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Tuesday, March 13th, 2023 - Sunday, March 19th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Applying Multithreading</h2><p>Applied multithreading on the overall analysis. ME analysis and MaE analysis are processed on two threads separately. </p><p>Applied multithreading on ME analysis.</p><p></p><h2>2.2 Refactoring</h2><p>Refactored the spotting and evaluating as a function, which made the notebook more concise.</p><p></p><h2>2.3 Words Processing</h2><p>Kept writing the patent paper. Added formulas, sketch images, and the reason why Swin Transformer, Shifted Patch Tokenisation and Locality Self-Attention work fine.</p><p>Nevertheless, paperwork is some kind of worth as I found a redundant softmax layer was applied to the model when I was writing the patent demonstration.</p><p></p><h2>2.4 Fixing</h2><p>Deleted the redundant softmax layer.</p><p></p><h2>2.5 Featuring</h2><p>Updated the pytorch to version 2.0 and tried <code>torch.compile</code>. Unfortunately, it failed. Maybe the reason is that my model is running in eager mode.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>Exhausted and Tired</h2><p>It seemed that I was not recovered mentally and physically from the hiking last weekend.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 37]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-37</link>
            <guid>Ef9llEdZ4WDeWm9pItr9</guid>
            <pubDate>Thu, 16 Mar 2023 07:47:14 GMT</pubDate>
            <description><![CDATA[1. Duration Sunday, March 5th, 2023 - Saturday, March 11th, 2023    2. Learning Records 2.1 Refactoring Let all hyperparameters be set at the beginning of the jupyter notebook. Refactored the torch functions. Made the progress bar present every five epochs.  2.2 Featuring Added a setting paramete...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Sunday, March 5th, 2023 - Saturday, March 11th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Refactoring</h2><p>Let all hyperparameters be set at the beginning of the jupyter notebook.</p><p>Refactored the torch functions. Made the progress bar present every five epochs.</p><p></p><h2>2.2 Featuring</h2><p>Added a setting parameter <code>verbose</code> to the torch functions. When <code>verbose = 0</code>, the progress bar would present every split.</p><p></p><h2>2.3 Debugging</h2><p>I found the overall analysis was wrong as the same <code>k</code> was fed into the mae spotting and me spotting.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Confused and Perplexed</h2><p>It seems that almost all experiments are done. I have no idea.</p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 36]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-36</link>
            <guid>29z9DvMRJ3GsGD0zi4iv</guid>
            <pubDate>Tue, 07 Mar 2023 04:04:23 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, February 27th, 2023 - Saturday, March 4th, 2023    2. Learning Records 2.1 Re-cropping It 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 o...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, February 27th, 2023 - Saturday, March 4th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Re-cropping</h2><p>It 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. </p><p>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.</p><p>The new cropping function is applied to both CAS(ME)^2 and SAMM Long Videos dataset.</p><p></p><h2>2.2 Building</h2><p>Built the training and test function for CAS_Test and SAMM_Test dataset that are used in the MEGC2022.</p><p>Built a function to store the normalize, augment and <code>.pkl</code> files loading function.</p><p>Built training and test <code>.ipynb</code> files for the MEGC2022.</p><p></p><h2>2.3 Extraction and Pre-processing</h2><p>Thanks to the new cropping function the extraction and pre-process were running smoothly.</p><p></p><h2>2.4 Refactoring</h2><p>Let hyperparameters set at the beginning of every <code>.ipynb</code> file. Now I could just set the hyperparameters and then click &quot;Run All&quot; and I could get the prediction.</p><p></p><h2>2.5 Paper Writing</h2><p>Wrote the part of describing the Locality Self-Attention and Swin Transformer.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Confused, Perplexed and Anxious</h2><p>Every macro-expression spotting experiments cost more than three days. What else could I do during the training period?</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 35]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-35</link>
            <guid>oXLYweTN9aYucCeTxBzi</guid>
            <pubDate>Tue, 28 Feb 2023 07:59:06 GMT</pubDate>
            <description><![CDATA[1. Duration Sunday, February 19th, 2023 - Saturday, February 25th, 2023    2. Learning Records 2.1 Fixed the Crash Error The  jupyter_core  and  jupyter_client  are alright. But I found out that the Linux server runs out of memory when the macro- and micro-expression spotting experiments are in p...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Sunday, February 19th, 2023 - Saturday, February 25th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Fixed the Crash Error</h2><p>The <code>jupyter_core</code> and <code>jupyter_client</code> are alright. But I found out that the Linux server runs out of memory when the macro- and micro-expression spotting experiments are in process simultaneously.</p><p></p><h2>2.2 Extracted Features</h2><p>Extracted micro-expression features on the SAMM Long Videos dataset.</p><p></p><h2>2.3 Wrote my Paper</h2><p>Wrote the Related Work part.</p><p></p><h2>2.4 Fixed the Count Mismatch Problem</h2><p>Due to the problematic naming in the original cropping function, not only the images&apos; names were wrong, but also the cropped image count mismatched the original image count. I fixed the naming problem last week and fixed the mismatch count problem this week.</p><p>In addition, I tried to extract features from the video <code>016_7</code> but the machine crashed twice because of the limited RAM. Damn! Each extraction experiment cost me more than an hour, which means I wasted about three hours that afternoon.</p><p></p><h2>2.5 Added New Features</h2><p>Allowed assigning specific GPU to do the training. Besides, Added adjustments to restrict TensorFlow to only allocate specific memory on the GPU.</p><p></p><h2>2.6 Building</h2><p>Built the test dataset cropping function, training and test function. And I combined all processes in one <code>.ipynb</code> file.</p><p>Moreover, I built the function for features extraction and pre-processing which could save the <code>.pkl</code> file after finishing extracting and pre-processing one video.</p><p></p><h2>2.7 Refactoring</h2><p>Added a parameter <code>debug_preds</code> to each <code>.ipynb</code> file. When <code>debug_preds</code> is <code>True</code>, the training would not be processed and the program would load the <code>.pkl</code> prediction files and execute the spotting and evaluation process.</p><p></p><h2>2.8 Fixing the Model</h2><p>It was when I was writing my paper and reading the vision transformer for small scall datasets that I found out the Shifted Patch Tokenization has a process called pos_embedding which I forgot to add in my SL models.</p><p>I added the pos_embedding on both the TensorFlow and PyTorch models.</p><p></p><h2>2.9 Fixing the Cropping</h2><p>I found that the dlib face detector could not detect the face landmark on every image of the test video. This weird situation let me reconsider whether my cropping function has some problem. Consequently, I changed the cropping scale.</p><p>The good news was everything worked fine and the bad news was I needed to crop all images again which was time-consuming.</p><p></p><hr><p></p><h1>3. Feelings</h1><p>No special feelings.</p><p>Coding is more intriguing than paper work.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 34]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-34</link>
            <guid>n6Qu2ZsHtDi06FpVRXav</guid>
            <pubDate>Mon, 20 Feb 2023 02:53:55 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, February 13th, 2023 - Saturday, February 18th, 2023    2. Learning Records 2.1 Reinstalled CUDA All of a sudden, the CUDA on my laptop died. I spent a day debugging and reinstalling the drivers and CUDA.  2.2 Wrote the Patent Document I spent two days writing the document. I f...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, February 13th, 2023 - Saturday, February 18th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Reinstalled CUDA</h2><p>All of a sudden, the CUDA on my laptop died. I spent a day debugging and reinstalling the drivers and CUDA.</p><p></p><h2>2.2 Wrote the Patent Document</h2><p>I spent two days writing the document. I found it an excellent way to review my work.</p><p></p><h2>2.3 Building</h2><p>I built the function for the ablation study of p.</p><p></p><h2>2.4 Fixing</h2><p>Fixed the rename error in SAMM Long Videos dataset. The sequence number of the last picture in the<code>016_7</code> folder is 1000. But the original cropping function renames it  <code>0000.jpg</code> which makes it the first picture. Consequently, the image sequence is totally wrong. </p><p>Luckily, I found this error and fixed all the naming problem.</p><p></p><h2>2.5 Started to Do Experiments on the SAMM Long Videos Dataset</h2><p>I started to do the features processing on the SAMM Long Videos Dataset.</p><p></p><h2>2.6 Fixed the Jupyter Error</h2><p>I upgraded the jupyter packages on the Linux server. But when I start the training, close the remote desktop connection, and reconnect, I always encounter the problem of reconnecting to the kernel. And the restart function is also not available.</p><p>I am sure the new jupyter packages caused the problem. As a consequence, I downgraded the packages and then everything was back to normal.</p><p>This stupid problem wasted me more than two days.</p><p></p><h2>2.7 Start to Write the Paper</h2><p>Maybe it was not writing, it was replicating.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>Anxious</h2><p>The clock is ticking and I am worried that I could not publish my paper on time.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 33]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-33</link>
            <guid>LMWOGQ7Sy3BUCJg3cWgC</guid>
            <pubDate>Mon, 13 Feb 2023 14:44:40 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, February 6th, 2023 - Saturday, February 11th, 2023    2. Learning Records 2.1 Refactor for PyTorch Refactor the code using PyTorch. But it outputs terrible results. I spent two days debugging trying different epochs and  batch_size . Finally, I found the validation dataset tak...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, February 6th, 2023 - Saturday, February 11th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Refactor for PyTorch</h2><p>Refactor the code using PyTorch. But it outputs terrible results. I spent two days debugging trying different epochs and <code>batch_size</code>. Finally, I found the validation dataset takes  <code>X_train</code> and <code>X_test</code> as inputs, which is the reason for the bad outcomes.</p><p></p><h2>2.2 Build Models</h2><p>Build swin transformer and sl swin transformer using PyTorch.</p><p></p><h2>2.3 Fix the Accuracy Calculation</h2><p>The calculation is not suitable for the output of one dimension. Just fixed it.</p><p></p><h2>2.4 Record the Results</h2><p>Finish one macro expression spotting experiment, which cost 44 hours. At least the result is not bad. I hope I could get better outcomes through some fine-tuning.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Perplexed</h2><p>44 hours for one experiment. What can I do?</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 32]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-32</link>
            <guid>8nVzTMObTqtgJOJuk27d</guid>
            <pubDate>Mon, 13 Feb 2023 13:11:20 GMT</pubDate>
            <description><![CDATA[1. Duration Tuesday, January 31st, 2023 - Saturday, February 4th, 2023    2. Learning Record 2.1 Refactor for Macro Expression Spotting Save the resampled features of every subject separately to lift the restrictions of the  tf.data  buffer size. Save different versions of  .ipynb  files and rena...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Tuesday, January 31st, 2023 - Saturday, February 4th, 2023</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Refactor for Macro Expression Spotting</h2><p>Save the resampled features of every subject separately to lift the restrictions of the <code>tf.data</code> buffer size.</p><p>Save different versions of <code>.ipynb</code> files and rename them into <code>generator</code>, <code>backup</code>, and <code>dev</code>.</p><p></p><h2>2.2 Refactor for LOSO</h2><p>Refactor the code by using <code>sklearn.model_selection.LeaveOneGroupOut</code> to two <code>for</code> loops.</p><p>Theoretically, it should give almost the same outputs. But the outputs from the <code>for</code> loops are slightly worse than those from the <code>LeaveOneGroupOut</code>. And the training time is about two times of the file using <code>LeaveOneGroupOut</code>. Damn!</p><p></p><h2>2.3 Refactor the Spotting and Evaluation</h2><p>Put the prediction parameter <code>preds</code> out of the <code>training.py</code> file and do the spotting and evaluation when all training loops are finished. By doing this, I can debug the spotting and evaluation without repeating the training step.</p><p></p><hr><p></p><p></p><h1>3. Feelings</h1><h2>3.1 Perplexed</h2><p>The training for macro expression spotting costs more than a day. I don&apos;t know what to do.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 31]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-31</link>
            <guid>LbN7mrmL1lhOkuI2b5aO</guid>
            <pubDate>Thu, 02 Feb 2023 12:53:32 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, January 2nd, 2023 - January 7th, 2023    2. Learning Records 2.1 Redid the Experiments Okay, I found the reason why the model ran like shit. The shuffle of the validation dataset made terrible results. And different batch_size or normalizations resulted in different outcomes. ...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, January 2nd, 2023 - January 7th, 2023</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Redid the Experiments</h2><p>Okay, I found the reason why the model ran like shit. The shuffle of the validation dataset made terrible results. And different batch_size or normalizations resulted in different outcomes.</p><p></p><h2>2.2 Refactoring</h2><p>The error said I encountered the 2 G limit of the tensorflow dataset buffer size. I tried to use the from_generator function. Unfortunately, it worked worse. I can&apos;t even finish the micro-expression training.</p><p>Furthermore, the learning rate seemed to have a huge impact on the outcomes. So whether the model is shit or the learning rate doesn&apos;t fit. I had no idea.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Relieved</h2><p>Finally, I finished the NTCE test on Saturday, January 7th, 2023. Then I could focus more on the experiment.</p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 30]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-30</link>
            <guid>rDX2giMnVyrSgedUiLrc</guid>
            <pubDate>Thu, 02 Feb 2023 11:49:47 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, December 26th, 2022 - Saturday, December 31st, 2022    2. Learning Records 2.1 Redid the Cropping I tried Haar Cascade face detector in cv2, deep learning based face detector in cv2, HoG face detector in dlib, deep learning based dlib face detection. The dnn face detector work...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, December 26th, 2022 - Saturday, December 31st, 2022</p><p></p><hr><p></p><h1>2. Learning Records</h1><h2>2.1 Redid the Cropping</h2><p>I tried Haar Cascade face detector in cv2, deep learning based face detector in cv2, HoG face detector in dlib, deep learning based dlib face detection. The dnn face detector worked the best. The others have prominent position shifting on different images.</p><p></p><h2>2.2 Set Up the Remote Repeater</h2><p>I installed RustDesk on the repeater computer and left it in school. So I could use RustDesk to connect to the repeater and then connect to the server even when I am at home.</p><p></p><h2>2.3 Repeated the Experiments</h2><p>The model ran as shit, even the origin model SOFTNet.</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Worried and Happy</h2><p>The new year was coming!</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 29]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-29</link>
            <guid>rKau1icjvxRTGxxckAYz</guid>
            <pubDate>Thu, 02 Feb 2023 09:53:18 GMT</pubDate>
            <description><![CDATA[1. Duration Sunday, December 18th, 2022 - Saturday, December 24th, 2022    2. Learning Record 2.1 Learned Linux I learned the terminal commands and learned to use WinSCP, and Putty. Besides, I learned to use the remote SSH interpreter. I could debug the code on my laptop. It runs smoothly as it d...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Sunday, December 18th, 2022 - Saturday, December 24th, 2022</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Learned Linux</h2><p>I learned the terminal commands and learned to use WinSCP, and Putty. Besides, I learned to use the remote SSH interpreter. I could debug the code on my laptop. It runs smoothly as it doesn&apos;t need to take the delay from the remoter desktop. But it cost several seconds for saving. Weird.</p><p></p><h2>2.2 Refactoring</h2><p>Replace <code>glob</code> with <code>pathlib</code>.</p><p>Debugged the code on Linux. The biggest batch_size could be set to 128, which saved a huge amount of time during training. I only did the training on the Windows server once. Theoretically, it needed 36 h for one time of training. But as other users started to use the server, the 3D calculation part of the GUP was occupied 100%. Without a doubt, the server stuck. So actually, I didn&apos;t finish even one time of training on the Windows server.</p><p></p><h2>2.3 Build A New Model</h2><p>Built the sl-swin-transformer.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Tired or Exhausted</h2><p>It seemed that I got COVID-19 on December 19th, 2022. I needed to prepare for the NTCE exam as well as do experiments. </p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 28]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-28</link>
            <guid>iOWpdiZtP30b4l62VbOk</guid>
            <pubDate>Thu, 02 Feb 2023 07:52:57 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, December 12th, 2022 - Saturday, December 17th, 2022    2. Learning Record 2.1 Added CBAM I added cbam [1] on the SOFTNet, but it ran as shit. I tried some fine-tuning, but I still got terrible results.  2.2 Refactored tf.dataset I tried to use the generator to generate data fo...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, December 12th, 2022 - Saturday, December 17th, 2022</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Added CBAM</h2><p>I added cbam [1] on the SOFTNet, but it ran as shit. I tried some fine-tuning, but I still got terrible results.</p><p></p><h2>2.2 Refactored tf.dataset</h2><p>I tried to use the generator to generate data for the vision transformer model, but the <code>yield</code> would yield a tensor in the shape of <code>[none, none, none, none]</code> which causes errors.</p><p></p><h2>2.3 Request for the Test Dataset</h2><p>I sent the request e-mail and got the reply with the link to the dataset within one morning, the morning of December 15th, 2022. </p><p> The efficiency shocked me a lot!</p><p></p><h2>2.4 Deploy on New Server</h2><p>The training made the Windows server really slow even stuck. Consequently, I got a new account for the Linux server. It has two GTX 2080 Ti GPUs, cool!</p><p></p><h2>2.5 Paper Reading</h2><p>I read the paper [2]. It uses traditional methods but got the first prize in the competition. Unbelievable!</p><p></p><hr><p></p><h1>3. Feelings</h1><h2>3.1 Busy</h2><p>The code runs as shit and I needed to learn how to use Linux.</p><p></p><hr><p></p><h1>References</h1><p>[1]S. Woo, J. Park, J.-Y. Lee, and I. S. Kweon, “CBAM: Convolutional Block Attention Module,” in <em>Computer Vision – ECCV 2018</em>, Cham, 2018, pp. 3–19.</p><p>[2]J. Yu, Z. Cai, Z. Liu, G. Xie, and P. He, “Facial Expression Spotting Based on Optical Flow Features,” in <em>Proceedings of the 30th ACM International Conference on Multimedia</em>, New York, NY, USA, 2022, pp. 7205–7209. doi: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out dont-break-out" href="https://doi.org/10.1145/3503161.3551608">10.1145/3503161.3551608</a>.</p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 27]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-27</link>
            <guid>q0kCLyf34VSrcAMay38L</guid>
            <pubDate>Sun, 11 Dec 2022 11:21:50 GMT</pubDate>
            <description><![CDATA[ 1. Duration Monday, December 5th, 2022 - Saturday, December 10th, 2022    2. Learning Record 2.1 Learned Capsule Network Read the paper [1] and learned the code. Refactor the code to fit the input of different datasets. Also, I turned the eager mode off.  2.2 Learned Efficient Capsule Network Re...]]></description>
            <content:encoded><![CDATA[<a target="_blank" rel="noopener noreferrer nofollow ugc" style="cursor: pointer;"><img float="none" class="image-node img-center embed"></a><h1>1. Duration</h1><p>Monday, December 5th, 2022 - Saturday, December 10th, 2022</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Learned Capsule Network</h2><p>Read the paper [1] and learned the code. Refactor the code to fit the input of different datasets. Also, I turned the eager mode off.</p><p></p><h2>2.2 Learned Efficient Capsule Network</h2><p>Read the paper [2] and learned the code. The network attained fabulous results on the fashion MNIST dataset in only five epochs. But the loss quickly turns nan in other datasets. Besides, the computation power of my laptop is enough to do the training.</p><p></p><h2>2.3 Learned the CBAM</h2><p>Read the paper [3] and learned the code. Compared to the vision transformer, this code is a lot easier.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Anxious</h2><p>I had some new ideas about micro-expression spotting, but it seemed I don&apos;t have much time.</p><p></p><hr><p></p><h1>4. References</h1><p>[1]S. Sabour, N. Frosst, and G. E. Hinton, “Dynamic Routing Between Capsules.” arXiv, 2017. doi: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out dont-break-out" href="https://doi.org/10.48550/ARXIV.1710.09829">10.48550/ARXIV.1710.09829</a>.</p><p>[2]V. Mazzia, F. Salvetti, and M. Chiaberge, “Efficient-CapsNet: capsule network with self-attention routing,” <em>Scientific Reports</em>, vol. 11, no. 1, p. 14634, Jul. 2021, doi: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out dont-break-out" href="https://doi.org/10.1038/s41598-021-93977-0">10.1038/s41598-021-93977-0</a>.</p><p>[3]S. Woo, J. Park, J.-Y. Lee, and I. S. Kweon, “CBAM: Convolutional Block Attention Module,” in <em>Computer Vision – ECCV 2018</em>, Cham, 2018, pp. 3–19.</p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 26]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-26</link>
            <guid>lByL0KnFtn06VwMepvMg</guid>
            <pubDate>Tue, 06 Dec 2022 07:26:35 GMT</pubDate>
            <description><![CDATA[ 1. Duration Monday, November 28th, 2022 - Saturday, December 3th, 2022    2. Learning Record 2.1 Refactored the Code Using PyTorch Refactored the vision transformer for small-size datasets code using pytorch. The code is more comprehensible but the dataset and dataloader part is more difficult. ...]]></description>
            <content:encoded><![CDATA[<a target="_blank" rel="noopener noreferrer nofollow" style="cursor: pointer;"><img float="none" class="image-node img-center embed"></a><h1>1. Duration</h1><p>Monday, November 28th, 2022 - Saturday, December 3th, 2022</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Refactored the Code Using PyTorch</h2><p>Refactored the vision transformer for small-size datasets code using pytorch. The code is more comprehensible but the dataset and dataloader part is more difficult. The model part is easier but the training part which shows the training process takes some additional work. I needed to use the tqdm to manually build a process bar and make the training process run.</p><p>Similar to the tf_data_constructor, I also build a torch_data_constructor python file to construct the dataset and dataloader. Consequently, only the base_dir needed to be modified.</p><p></p><h2>2.2 Learn the Capsule Network</h2><p>Read the paper [1] and watch videos about it. Also, I start to learn the code.</p><p></p><h2>2.3 Refactored the TensorFlow Code</h2><p>Turned the code back to the default graph mode. It seemed to be faster and can handle a bigger batch_size.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Excited</h2><p>After a lockdown for approximately fifteen days, I finally went back to the lab on November 30th.</p><p></p><h2>3.2 Unfamiliar</h2><p>Everything in the laboratory seemed so unfamiliar to me.</p><p></p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
        <item>
            <title><![CDATA[Eddie's Learning Record 25]]></title>
            <link>https://paragraph.com/@eddiehe/eddies-learning-record-25</link>
            <guid>n9q1U7izDp42oLubF2Yp</guid>
            <pubDate>Tue, 29 Nov 2022 04:00:46 GMT</pubDate>
            <description><![CDATA[1. Duration Monday, November 21st, 2022 - Saturday, November 26th, 2022    2. Learning Record 2.1 Fine-tuned Models When images have only two classes which means the labels are "0" and "1", the `label_mode` of `tf.keras.utils.image_dataset_from_directory` should be `binary` and the loss_fn should...]]></description>
            <content:encoded><![CDATA[<h1>1. Duration</h1><p>Monday, November 21st, 2022 - Saturday, November 26th, 2022</p><p></p><hr><p></p><h1>2. Learning Record</h1><h2>2.1 Fine-tuned Models</h2><p>When images have only two classes which means the labels are &quot;0&quot; and &quot;1&quot;, the `label_mode` of `tf.keras.utils.image_dataset_from_directory` should be `binary` and the loss_fn should be `BinaryCrossentropy` instead of `SparseCategoricalCrossentropy`. Otherwise, the accuracy will jitter around 50%, which means the model learns nothing.</p><p></p><h2>2.2 Learned Swin Transformer</h2><p>I watched the paper [1] and read the code.</p><p>It took me a few days to understand the `Window-based Self-Attention &amp; Shifted Window-based Self-Attention` and the `Swin Transformer Block`.</p><p></p><h2>2.3 Refactored the Code</h2><p>I built a py file to store all functions for loading the datasets. Consequently, the code could work only by changing the basee_dir of the dataset.</p><p></p><hr><p></p><h1>3. Feeling</h1><h2>3.1 Glad</h2><p>I was glad that the models ran well.</p><p></p><h2>3.2 Perplexed</h2><p>The models seemed to generate relatively good results on some small datasets. But they didn&apos;t work that well on the micro-expression dataset.</p><p>Besides ViT, SL-ViT, Swin Transformer, I also found that there are lots of other types of transformer models. It seems impossible to learn all of them.</p>]]></content:encoded>
            <author>eddiehe@newsletter.paragraph.com (Eddie He)</author>
        </item>
    </channel>
</rss>