PSHS Internship 2023: Difference between revisions

From Center for Integrated Circuits and Devices Research (CIDR)
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
***Try to call imshow on image[0], image[1], image[2]. What appears? What do you think image[n] returns?
***Try to call imshow on image[0], image[1], image[2]. What appears? What do you think image[n] returns?
**Crop the 1/4 upper left, upper right, bottom left and bottom right of the image into 4 new numpy arrays. Show these images.  
**Crop the 1/4 upper left, upper right, bottom left and bottom right of the image into 4 new numpy arrays. Show these images.  
*By Monday July 3, 4PM:
**Create a github.com account, and create a repository creating the code you've made so far.
*By Friday July 7, 4PM:
**Download '''two''' of the folders of the [https://mega.nz/folder/LlgByZ6Z#wmLa-TQ8NYGkPrJjJ5BfQw/folder/flwFUDQB LettuceMOT dataset].
***Quentin: B&F
***Randolf: O&I
***Raph: Straight1 & 2
**Inside the "gt" folder, there is a text file containing a bunch of labels. These labels are the bounding boxes of lettuce in each picture in the "img" folder. Generally, the labels are structured as follows: <math>label = \{img_{id},lettuce_{id},x,y,w,h,1,1,1\}</math>, <math>x, y</math> is the lower left corner of the bounding box of the specific lettuce in the image, and <math>w, h</math> is its width and height.
**Your task is to create a script that loops through each line in the "gt.txt" file and saves the corresponding cropped picture of a lettuce into a new folder named "'''cropped'''". 


== About CIDR Project 3 ==
== About CIDR Project 3 ==

Revision as of 13:29, 2 July 2023

From Left to Right: Allen Tan (CIDR P3), Randolf Dela Cruz, Quentin Pison, Raph Racho, Lawrence Quizon (CIDR P3)

Main page for distributing resource for and documenting the internship.

  • June 19, 2023 - July 2023
  • Meeting Schedules MWF @ 4PM
  • Day 1: Initial orientation, tour- then orientation of intern tasks.
  • By Friday Jun 23, 4PM:
    • 2000 more pictures sorted by Friday
    • Finished reading up to Ch 2.3 of the tutorial.
  • By Monday Jun 26, 4PM:
    • 2000 more pictures.
    • Euler problems all done.
  • Wed Jun 28 is a holiday. No meeting.
  • By Friday Jun 28, 4PM:
    • pip install matplotlib, numpy and scipy
    • Look into matplotlib, numpy, scipy packages for python, show me yourself opening a picture from SPICE using matplotlib.pyplot.imshow
    • Questions:
      • What are the dimensions of the numpy representation of the image? Is it 1D, 2D, or 3D?
      • Try to call imshow on image[0], image[1], image[2]. What appears? What do you think image[n] returns?
    • Crop the 1/4 upper left, upper right, bottom left and bottom right of the image into 4 new numpy arrays. Show these images.
  • By Monday July 3, 4PM:
    • Create a github.com account, and create a repository creating the code you've made so far.
  • By Friday July 7, 4PM:
    • Download two of the folders of the LettuceMOT dataset.
      • Quentin: B&F
      • Randolf: O&I
      • Raph: Straight1 & 2
    • Inside the "gt" folder, there is a text file containing a bunch of labels. These labels are the bounding boxes of lettuce in each picture in the "img" folder. Generally, the labels are structured as follows: , is the lower left corner of the bounding box of the specific lettuce in the image, and is its width and height.
    • Your task is to create a script that loops through each line in the "gt.txt" file and saves the corresponding cropped picture of a lettuce into a new folder named "cropped".

About CIDR Project 3

CIDR Project 3, under the larger CIDR project, focuses on the creation and evaluation of machine learning hardware and software for use in small devices. Essentially, machine learning software is too heavy to run in smaller computers, and so we focus on creating optimized software and hardware specifically for machine learning.

Your tasks

As interns, we'd like you guys to process data for testing Project 3's machine learning software.

Intern Tasks.png

Resources

  1. As some of you might not yet be familiar with Python or are a bit rusty, you should read through the following:
    1. Composing Programs - Introduction to Programming with Python3
    2. (Attempt) the project Euler Problems 1-5 https://projecteuler.net/archives
  2. For editing and coding machine learning in Python (which will be useful from now on, as you use more of the packages) I recommend VScode with the Jupyter extension installed, which should allow you to put "#%%" at the top of your code, press shift+enter, and run the code immediately :DD
  3. On opening images with numpy, scipy and matplotlib
  4. Removing sinusoidal interference the Python way
    1. Oh no! The terms are too hard! : Fourier Transform: 3b1b video, Primer (needs calculus to understand)
    2. Also, if you do attempt this, do not hesitate to ask me questions.