torch transformers numpy scipy Image