Skip to content

Commit

Permalink
Merge branch 'open-mmlab:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwenran authored Aug 21, 2023
2 parents 3d8740a + 309ad75 commit 0fb4a67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
pip install -U openmim
mim install 'mmcv >= 2.0.0'
pip install -r requirements/tests.txt
pip install scipy==1.7.2
- run:
name: Build and install
command: |
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:
docker exec mmagic pip install -U openmim
docker exec mmagic mim install 'mmcv >= 2.0.0'
docker exec mmagic pip install -r requirements/tests.txt
docker exec mmagic pip install 'scipy == 1.7.2'
- run:
name: Build and install
command: |
Expand Down
5 changes: 4 additions & 1 deletion tests/test_models/test_archs/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def test_build(self):
self.assertIn(f'From Config: {config_path}', model_str)

# 2. test save as diffuser
model.save_pretrained(model_path)
if digit_version(TORCH_VERSION) < digit_version('2.0.1'):
model.save_pretrained(model_path, safe_serialization=False)
else:
model.save_pretrained(model_path)

# 3. test from_pretrained
model = MODELS.build(
Expand Down

0 comments on commit 0fb4a67

Please sign in to comment.