Rico's Nerd Cluster

「离开世界之前 一切都是过程」

C++ - Erase Remove

An efficient in-place way to remove elements in a container

Introduction It’s a common task to remove items in a sequential container that fits a criteria, like an array, vector, queue, etc. For this scenario in C++, it’s advised to use the erase-remove id...

C++ - Datatypes

std::optional, structural binding, iostream, namespace, union, std::variant, std::type_index, std::any

POD Types char or unsigned char is 1 byte float, int, are usually 4 bytes (32 bits) on a 64 bit machine double is 8 bytes (64 bits) long double is 8, or even 16 bytes Common Bugs Ob...

Deep Learning - Designing Machine Learning Systems Notes

Machine learning is to learn complex patterns from existing data, and use them to predict on unseen data. MLOps is a set of tools and best practices for bringing ML into production. ML Algorithms a...

Deep Learning - Mask RCNN Hands-On

TODO

Motivation Matterport’s 2018 Mask R-CNN implementation is able to do: real-time instance segmentation, object classification and human body keypoint detection. A bit of hi...

Deep Learning - MobilenetV2 Hands-On

Inverted Skip Connection, Multiclass Classification

MobileNet Architectures In MobileNet V1, the architecture is quite simple: it’s first a conv layer, then followed by 13 sets of depthwise-separable layers. Finally, it has an avg pool, FC, and a s...

Deep Learning - Deeplab Series Theories

Deeplab, ASPP

Motivation UNet has restricted receptive fields. It is sufficient for identifying local areas such as tumors (in medical images). When we learn larger image patches, UNet was not sufficient. Deep...

Deep Learning - Spatial Pyramid Pooling

SPP, Ablation Study

SPP (Spatial Pyramid Pooling) Layer In Deep learning, “spatial dimensions” means “height and width”. Some networks need fixed input size for their fully connected layers. When does that happen? ...

Deep Learning - PyTorch Profiling

PyTorch Profiler

Sample Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #!/usr/bin/env python3 import torch import torchvision.models as models from torch.profiler import profile...

Deep Learning - Tools

wandb, tqdm

Wandb wandb is a visualization tool that records various deep learning experiment data. It never discloses what databases it uses, but it might be a combination of cloud-based scalable databases s...

Deep Learning - Voxel Fiftyone

TODO

Fifty-one Features Of fiftyone pip install fiftyone 1 2 3 4 5 6 7 8 9 10 11 12 import fiftyone as fo dataset = fo.Dataset("my_dataset") sample = fo.Sample(filepath="/path/to/image.png") samp...