Skip to content

Commit

Permalink
[Fix] Fix test tokenizer (open-mmlab#2050)
Browse files Browse the repository at this point in the history
* replace test text

* update mmcv version
  • Loading branch information
liuwenran committed Oct 18, 2023
1 parent d353e6a commit 4626f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mmagic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def digit_version(version_str):


MMCV_MIN = '2.0.0'
MMCV_MAX = '2.1.0'
MMCV_MAX = '2.2.0'
mmcv_min_version = digit_version(MMCV_MIN)
mmcv_max_version = digit_version(MMCV_MAX)
mmcv_version = digit_version(mmcv.__version__)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models/test_archs/test_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp(self):

def test_encode_and_decode_and_call(self):
# test single token
text = 'hello world, kwaheri!'
text = 'Nice bro, kwaheri!'
input_ids = self.tokenizer.encode(text).input_ids
self.assertEqual(input_ids[-3:-2],
self.tokenizer.encode('kwaheri').input_ids[1:-1])
Expand Down

0 comments on commit 4626f74

Please sign in to comment.