HF RL Explorer

Task: PyTorch Tensor to NumPy Array with Channel Reversal

Task: PyTorch Tensor to NumPy Array with Channel Reversal: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that demonstrates the conversion of a PyTorch tensor to a NumPy array with simultaneous channel reversal (RGB to BGR or vice versa).

The task

Write a Python script that demonstrates the conversion of a PyTorch tensor to a NumPy array with simultaneous channel reversal (RGB to BGR or vice versa).

Part of PrimeIntellect/Terminal-Lego-15k.