Overview
The Alex net is applied to recognize 4 different types of Taiwan ancient buildings in this article.
Motivation
I'm new to Deep Learning, so I want to do some exercise to warm up. And since it would be interesting and meaningful to combine the technology together with the culture, I apply the Alex net to recognize 4 different types of Taiwan ancient buildings.Introduction
The ancient buildings in Taiwan can be categorized into 4 types:1. The traditional Chinese buildings: Many of Taiwanese are successors of the immigration who emigrated from China about hundred years ago. Therefore, many old buildings are ancient Chinese buildings. The following figure shows the traditional residence.
2. The traditional Japanese buildings: Taiwan has been colonial ruled by Japan for about half of the century. Therefore, there're many traditional Japanese buildings left. The following figure shows the Japanese temple located in Taoyuan.
3. The baroque style buildings: During the Japanese colonial period, several government buildings are designed as the Japanese Baroque style. These buildings are popular in Japan during the Meiji period. Thus, this category is labeled as Japanese modern in the present work. The most famous building of this style might be the Presidential Palace of Taiwan, as shown follows.
4. The modern Taiwan buildings: The word "modern" here refers to those buildings that constructed during the Early Revival Period. I'm not quite a fan of these kinds of buildings. However, these buildings still in everyone's childhood memory. Thus, these buildings are also recognized by the network.
Data Sets
The collection of data is very time-consuming. And since there are only countable historic buildings in Taiwan as well as not every building in these kinds are posted to the internet, I suddenly ran out of data to train the net. Therefore, some of the buildings in Chinese and Japanese are also collected.After all, I spend a whole data to collect all of the following data! However, the training set seems too few to train an Alex net, though...
The collected data are listed below (25% of these data are used to calculate the validation):
Traditional Chinese Buildings: 159
Traditional Japanese Buildings: 152
Modern Japanese Buildings: 169
Modern Taiwan Buildings: 119
Result
The training result is shown as follows. After 30 epoch, the final accuracy (validation set) is 66%.
Several results in the test set are shown below:
沒有留言:
張貼留言