Skip to content

Commit 4ec79a5

Browse files
Fix bug with unsqueeze implementation in Tensor
1 parent e2b1358 commit 4ec79a5

3 files changed

Lines changed: 391 additions & 333 deletions

File tree

examples/pipelines/image-to-text.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
require_once './bootstrap.php';
1010

1111
ini_set('memory_limit', -1);
12-
$captioner = pipeline('image-to-text', 'Xenova/vit-gpt2-image-captioning');
13-
//$captioner = pipeline('image-to-text', 'Xenova/trocr-small-handwritten');
12+
//$captioner = pipeline('image-to-text', 'Xenova/vit-gpt2-image-captioning');
13+
$captioner = pipeline('image-to-text', 'Xenova/trocr-small-handwritten');
1414

1515
//$streamer = StdOutStreamer::make($captioner->tokenizer);
1616

0 commit comments

Comments
 (0)