update comments & readme

This commit is contained in:
tangqy
2025-01-22 18:17:08 +08:00
parent 9b92104c32
commit e2faddced4
+1 -1
View File
@@ -127,7 +127,7 @@ class ImageOCRByTextractV2:
ori_image_path = folder_paths.get_annotated_filepath(image_input)
pos_img_path = os.path.join(temp_img_path)
## 转换ori_image为tensor张量
## Convert orignal image to tensor
pil_image = Image.open(ori_image_path)
transform = transforms.Compose([
transforms.ToTensor(), # Convert PIL Image to tensor and normalize pixel values to [0, 1]