Hi, I am new to Pytorch and I was wondering if there is a way to convert a .json file in a numpy array. I want to do this because I want to convert my .json in a mask.
Right now I have this
Depending how the data is stored in the json
object, you might be able to directly create a numpy array.
Your current code doesn’t seem to show the json
file.
This question doesn’t seem to be PyTorch-specific, so you might get a better answer on e.g. StackOverflow.
1 Like