Loading tutorials
Dataset and DataLoader. You should also know what a JPEG file is. By the end you will be able to find which stage of an image pipeline limits your training or inference speed, and to tell whether the data pipeline or the mod7 min readDataset and DataLoader. It also assumes you know JPEG and PNG as file formats. It covers what happens between "bytes on disk" and "array in memory", and why that 6 min readDataset with a DataLoader. It covers the order of preprocessing steps and the data type each step works on. Both affect CPU time, memory traf6 min readDataset, DataLoader, tensors), can read a NumPy image array shaped height by width by channels, and have already measured your pipeline's stages as covered earlier in the tutorial. If the profile shows that reading, decoding and resizing take longer t6 min readDataLoader turns individual samples into a batch. It covers the default collate function, what a custom one can do, and the mistakes that cost time or memory. It assumes you know basic PyTorch (Dataset, DataLoader, tensors), NumPy image arrays in height, width, chan6 min readDataset and DataLoader, know what a uint8 (B, 3, H, W) batch looks like, and have a CUDA GPU available. Earlier chapters covered decoding, resizing, worker processes and collation. Here we follow the batch after the workers finish, across the bus to6 min readDataset and DataLoader, know that image tensors are laid out as (batch, channels, height, width), and have read the earlier chapters on keeping data as uint8 and on pinned memory with asynchronous copies. Here you will move normalisation and some au6 min readDataset, DataLoader, tensors), can read a 3 x H x W tensor shape, and have seen the collate_fn idea from the batching chapter. Here you will handle datasets whose images do not share one size.6 min readDataset and DataLoader, and that you know what a uint8 image tensor of shape 3 x H x W is. It also assumes you have already profiled your pipeline (see the earlier chapter on profiling). Batch size interacts with every stage you have tuned so far, s6 min readDataset and DataLoader, and that you know the earlier stages of the pipeline: decoding, resizing, and collation. It covers what to do when decoding and resizing are still the bottleneck after the optimisations in earlier chapters. The answer is to pay6 min readImage.draft and `D5 min read