Skip to content

Commit

Permalink
[chore] style + comment
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentd-lunit committed Sep 4, 2024
1 parent 86dc7ff commit 31a0aef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/models/llava_next/test_processor_llava_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest

import torch

from transformers.testing_utils import require_vision
from transformers.utils import is_vision_available

Expand Down Expand Up @@ -44,6 +46,7 @@ def test_image_token_filling(self):
processor = AutoProcessor.from_pretrained("llava-hf/llava-v1.6-vicuna-7b-hf")
processor.patch_size = 14
processor.vision_feature_select_strategy = "default"
# Important to check with non square image
image = torch.randint(0, 2, (3, 500, 316))
expected_image_tokens = 1526

Expand Down

0 comments on commit 31a0aef

Please sign in to comment.