FastAI / PyTorch - Multiple Image as X, Single Image as Y, need dataloader initialization
Budget: $10 – $30 USD
We have a FastAI / PyTorch project that has Multiple Images as X, Single Image as Y, and we need to know how to call the datablock/dataloader. Images are stored in following directories:
X (input) = ./project/1/*.jpg, ./project/2/*.jpg, ./project/3/*.jpg
Y (target) = ./project/4/*.jpg
https://docs.fast.ai/data.block.html#DataBlock.dataloaders
"We can pass any number of blocks to DataBlock, we can then define what are the input and target blocks by changing n_inp. For example, defining n_inp=2 will consider the first two blocks passed as inputs and the others as targets."
X (input) = ./project/1/*.jpg, ./project/2/*.jpg, ./project/3/*.jpg
Y (target) = ./project/4/*.jpg
https://docs.fast.ai/data.block.html#DataBlock.dataloaders
"We can pass any number of blocks to DataBlock, we can then define what are the input and target blocks by changing n_inp. For example, defining n_inp=2 will consider the first two blocks passed as inputs and the others as targets."