miguelcarv commited on
Commit
010be03
1 Parent(s): a1a8cc6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  # Model Card for ResNet-152 Text Detector
2
- This model was trained with the intent to quickly classify whether or not an image contains legible text or not. It was trained as a binary classification problem on the COCO-Text dataset together with some images from LLaVAR. This came out to a total of ~70k images, where 50% of them had text and 50% of them had no legible text.
3
 
4
  # Model Details
5
  ## How to Get Started with the Model
@@ -16,7 +16,7 @@ model = AutoModelForImageClassification.from_pretrained(
16
  processor = AutoImageProcessor.from_pretrained("microsoft/resnet-50", do_resize=False)
17
 
18
  url = "http://images.cocodataset.org/train2017/000000044520.jpg"
19
- image = Image.open(requests.get(url, stream=True).raw).convert('RGB').resize((256,256))
20
 
21
  inputs = processor(image, return_tensors="pt").pixel_values
22
 
 
1
  # Model Card for ResNet-152 Text Detector
2
+ This model was trained with the intent to quickly classify whether or not an image contains legible text or not. It was trained as a binary classification problem on the COCO-Text dataset together with some images from LLaVAR. This came out to a total of ~140k images, where 50% of them had text and 50% of them had no legible text.
3
 
4
  # Model Details
5
  ## How to Get Started with the Model
 
16
  processor = AutoImageProcessor.from_pretrained("microsoft/resnet-50", do_resize=False)
17
 
18
  url = "http://images.cocodataset.org/train2017/000000044520.jpg"
19
+ image = Image.open(requests.get(url, stream=True).raw).convert('RGB').resize((300,300))
20
 
21
  inputs = processor(image, return_tensors="pt").pixel_values
22