HF RL Explorer

Task: Image Channel Ordering Conversion with NumPy

Task: Image Channel Ordering Conversion with NumPy: a task in Terminal-Lego-15k (Harbor dataset). Implement a Python script that converts image arrays between "channels last" format (H, W, C) and "channels first" format (C, H, W) using NumPy's built-in functions. This is a common requirement when…

The task

Implement a Python script that converts image arrays between "channels last" format (H, W, C) and "channels first" format (C, H, W) using NumPy's built-in functions. This is a common requirement when working with different deep learning frameworks (e.g., TensorFlow/Keras uses channels last, while Theano/PyTorch uses…

Part of PrimeIntellect/Terminal-Lego-15k.