Reflection Blog Post
Voted
Python is the best!
About Us
(I copied our group members’ introduction from Campuswire.)
I added some random profile pictures for my group members, just for fun. LOL
Campuswire Intro
Where are you from?
I moved to Century City six years ago. Before that, I lived in San Francisco for one year and seven years in Vancouver, Canada.
What is your major, or what are you interested in?
I am majoring in Applied Mathematics, but I am interested in computer science.
Why are you interested in advanced Python programming?
I'm interested in advanced Python programming because I think Python is an essential skill, and I want to explore more powerful tools which I can use in my future career.
What's a fun fact about you?
A fun fact about me is that I like to cuddle with my french bulldog.
Peng
myself
Campuswire Intro
Where are you from?
I am from Jilin, a northeast province in China. I am a transfer student here. I spent my first two years of college in UC Davis, and I just moved to LA for 4 months.
What is your major, or what are you interested in?
My major is financial actuarial math. I am interested in marketing, and the skills I learn in data would be a helpful tool to become a good marketer.
Why are you interested in advanced Python programming?
I want to learn more programming and data skills. Even though I won’t be a programmer in the future, the programming skills is widely used in many areas.
What’s a fun fact about you?
I love dancing and I have a flexible body to do some amazing movements.
Jiamu
Campuswire Intro
Where are you from?
I live in Westwood since the last quarter. Before that, I lived in Alhambra. And I still visit back to Alhambra to have Chinese cuisines. If any of you're interested in Chinese cuisines, highly recommend visiting this place.
What is your major, or what are you interested in?
My major is Applied Mathematics. After taking math 142, I found mathematical modeling is super cool stuff.
Why are you interested in advanced Python programming?
After taking PIC 16A with professor Chodrow, I found out that coding is fun and super practical. So I decide to take this class. Besides, it becomes a demand in most careers.
What’s a fun fact about you?
My favorite Spider-Man actor is Tom Holland!!!
Weixin
Campuswire Intro
Where are you from?
I am from China, but I am living in Portland now. I moved from LA to Portland last year. Now I love it more than LA.
What is your major, or what are you interested in?
My major is Applied Mathematics. I am interested in solving problems. Now programming is my another big interest.
Why are you interested in advanced Python programming?
I am interested in advanced Python programming because I want to be a data scientist. Python is the best tool to work and deal with data.
What’s a fun fact about you?
A fun fact about me is that I climbed a 30 feet pole and installed a cross arm on it which is half of my weight.
Miao
Our group (Peng (myself), Jiamu, Weixin, and Miao) made the web app called Dog Facial Recognition. Our web app used three machine learning models. First, our web app will detect if the image contains any human face. Then, it will detect the uploaded image is a dog or cat. Finally, the web app will show the top three most likely dog breeds.
Our Webapp Links
|
I am Moose |
AWS Link
|
Overall, what did you achieve in your project?
I mainly designed this project, assigned minimal tasks to each group member that they must do, and helped our group members with any questions. For instance, I asked Jiamu to write a face detection model to determine if the user uploaded image contains any human face. Also, I assigned each of Weixin and Miao to build two different models using transfer learning for dog breed classification.
My main achievement for this project is to make sure our webapp is working. I gathered all models from our group members, did image processing inside our webapp, and wrote the most part of the view page and app.py file. I had many ideas that popped up while building our webapp, so I decided to write some extra features in our webapp.
Extra Features:
-
I wrote a
web scraping
called DogTime Scraper to get all characteristics for each dog breed from the DogTime. -
I wrote a Drag Upload page and all relative codes that contain a Drop zone that allows the user to drag an image to upload.
-
I wrote a Click Gallery Upload page and all relative codes to display all user-uploaded images, and users can click on each image to get the predicting result from our models.
-
I wrote a DogTime Information page and all relative codes to generate bar charts with 26 characterizes that I scraped from Dogtime from a user-selected dog breed.
-
I wrote the Find Your Best Dog page and all relative codes to find matched dog breeds from the user-selected numbers.
What are two aspects of your project that you are especially proud of?
-
Adding CSS and Javascript made our webapp more interactive and beautiful. Therefore, I searched for many cool effects that we can use inside our web page. I modified some cool CSS effects codes that I found online. For example, I combined these two beautiful Parallax Star backgrounds and Shooting Star backgrounds and added the Glassmorphism effects. Unfortunately, I did not have any prior experience with CSS and Javascript, and I had to use them inside many for loops, which increased the difficulty of building our webapp.
-
I successfully developed our webapp on Heroku. In the beginning, I used
pip freeze
and copied all dependence names inside the requirements.txt. No surprise, the slug size was way too large. So I created another short version of this project in the pic16b_group_project_short_version repository, which removed face detecting and drop zone. After researching how to reduce the slug size, I noticed that changingtensorflow
totensorflow-cpu
in therequirements.txt
and removing all unnecessary dependencies and files helped a lot. However, even the webapp had a slug size of less than 500 MB; there were still many problems while deploying the app; for example, I found an error that said there was no such file by using view logs, but the webapp was working fine locally. Finally, I found out that I named some files which contained some capital letters. Furthermore, once I updated all file names to lowercase locally, the GitHub desk did not show any changes. I did not expect this much difficulty to develop on Heroku, so I am especially proud to build our webapp successfully.
What are two things you would suggest doing to further improve your project?
-
Two days before our final presentation, I wanted to remove the background, cut out the dog from the image, and then display it with
Glassmorphism
effects inside theFind Your Best Dog
page. However, it was impossible for me to do each image manually, so I wondered if there existed a model that would automatically remove a picture’s background. Luckily, I found it is possible by using theImage Segmentation
from TensorFlow. I would research more information aboutimage segmentation
andobject detection
if I had more time to improve our project. -
I did not use any database for this project. I wish I could use the database to store and access all prediction results for all uploaded images.
How does what you achieved compare to what you set out to do in your proposal?
We achieved all planned deliverables in our proposal, and I added more extra features to this project. Since one of my group members successfully wrote a model to detect if an image contains any human face. So, I added some cool CSS effects.
For example, dog breed prediction will be hidden when the model detects the uploaded image containing any human face. Then our web app will prompt the user that the uploaded picture might include humans.
Finally, the user needs to click the Continue to show the prediction
button to see the predictions.
What are three things you learned from the experience of completing your project?
-
I am still exploring GitHub; I had never used GitHub before this class. When I was thinking about displaying random images for each dog breed in the top three predictions, I learned that I could upload our dataset inside another repository and access all photos using the image URL. This method allows me to show multiple images for each dog breed without increasing slug size. I uploaded our training dataset inside the repository pic16b-stanford-dog-dataset. Here is the detail information about how I obtained all Image URLs.
-
I learned enough fundamental skills to build a simple interactive webapp using Flask.
-
I learned how to use the TensorFlow package inside Flask locally on M1 Mac using Miniforge Environment. The instruction is inside the README.md file.
How will your experience completing this project will help you in your future studies or career?
The experience of building a project as a team is important for me. Furthermore, I want to become a software engineer after I graduate; therefore, this hands-on project can better prepare me to fit in my future job environment. Before this class, I mainly practice many codes as a back-end developer. Therefore, I am grateful that this project let me practice many front-end skills, which I have always wanted to study.