I am getting this error RuntimeError: Numpy is not available
, while trying to run the following line of code:
img = torch.from_numpy(np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True))
Is there a way to solve this without the need to change python version?
Note: my python version is 3.10.