Category: Projects

4 Posts

HDF5 Python API
HDF5 Hierarchical Data Format (HDF) is a set of file formats (HDF4, HDF5) designed to store and organize large amounts of data. Document for HDF5 Python API: https://docs.h5py.org/en/stable/build.html Installation Installation with conda: conda install h5py Installation with pre-built wheels pip install h5py Usage import h5py h5_file_name = "my_data.h5" h5_writer = h5py.File(h5_file_name, 'a') # indicate the file to store the data for index in len(**YOUR_DATA_LIST**): set_intensity.create_dataset(f"{index:06}", data=**YOUR_DATA**) # save data if (index + 1) % 1500 == 0: # force to save once every 1500 records. print('Finish processing one section\n') h5_writer.close() time.sleep(1) h5_writer = h5py.File(h5_file_name, 'a') continue # when finished! h5_writer.close() References [1] https://en.wikipedia.org/wiki/Hierarchical_Data_Format [2] https://docs.h5py.org/en/stable/build.html Acknowledgement Codes are from Qiuliang Ye
Scaled-YOLOv4: Scaling Cross Stage Partial Network
Scaled-YOLOv4: Scaling Cross Stage Partial Network In this reading notes: We have reviewed some basic model scaling method: width, depth, resolution, compound scaling. We have computed the operation amount of residual blocks, and showed the relation with input image size (square), number of layers (linear), number of filters (square). We have presented the proposed Cross-Stage Partial (CSP) method that decreases the operations and improves the performance of basic CNN layers. PPT can be download from: https://connectpolyu-my.sharepoint.com/:p:/g/personal/18048204r_connect_polyu_hk/ET9zlHku9TFApqdl1A5NTV8BjFXPLizhCMupm6Ohcbehig?e=hhLlyc This is an embedded Microsoft Office presentation, powered by Office.
YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design
Paper Information Paper: YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design Authors: Yuxuan Cai, Hongjia Li, Geng Yuan, Wei Niu, Yanyu Li, Xulong Tang, Bin Ren, Yanzhi Wang Paper: https://arxiv.org/abs/2009.05697 Github: https://github.com/nightsnack/YOLObile Objective: Real-time object detection for mobile devices. Study notes and presentation: Download: https://connectpolyu-my.sharepoint.com/:p:/g/personal/18048204r_connect_polyu_hk/EcRbix5iqshBglmxuLurS-sBBFmbrk8chRkim1y54-yOXw?e=8Qdfmd This is an embedded Microsoft Office presentation, powered by Office.
Executable Python Program in Windows
Background Recently, I have worked on a demo program that works on the Windows OS. However, most of my recent works are based on the python language. I really like the simplicity of the language, and don't want to go back to use the C++ and MFC. Therefore, in this post, I will present how to use PyInstaller and Python to build an executable python program as the "*.exe" format in Windows. Environment Preparation OS: Windows (currently, the PyInstaller does not support cross-platform compiling) IDE: PyCharm (optional) Python Virtual Environment Control: Anaconda or Miniconda The following steps will prepare the required environment for the project. To ensure the compatibility of the program, please be as consistent as possible with my suggested versions. Python: 3.6.5 NumPy: 1.16.4 OpenCV: 3.4.5.20 pillow: 8.0.1 PyInstaller: 4.1 pypiwin32 # run in the anaconda Prompt conda create --name py36 python=3.6.5 conda activate py36 pip install numpy==1.16.4 opencv-python==3.4.5.20 pillow==8.0.1 pillow==4.1 pypiwin32 Create a simple GUI with tkinter tkinter is a build-in Python interface package to build simple GUI of python. Save the…