Skip to content

Commit

Permalink
dev(narugo): use version v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Jan 24, 2024
1 parent 84d74b1 commit a82637e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdeval/config/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__TITLE__ = 'sdeval'

#: Version of this project.
__VERSION__ = '0.0.2'
__VERSION__ = '0.0.3'

#: Short description of the project, will be included in ``setup.py``.
__DESCRIPTION__ = 'Evaluation for stable diffusion model training'
Expand Down
2 changes: 1 addition & 1 deletion sdeval/controllability/bikini_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def _yield_images(images: PromptedImagesTyping) -> Iterator[Tuple[Image.Image, s
elif isinstance(images, str) and os.path.isdir(images):
for root, dirs, files in os.walk(images):
for file in files:
yield from _yield_images(os.path.join(images, root, file))
yield from _yield_images(os.path.join(root, file))
else:
if isinstance(images, tuple):
if len(images) == 2:
Expand Down
2 changes: 1 addition & 1 deletion sdeval/utils/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _yield_images(images: ImagesTyping) -> Iterator[Image.Image]:
elif isinstance(images, str) and os.path.isdir(images):
for root, dirs, files in os.walk(images):
for file in files:
yield from _yield_images(os.path.join(images, root, file))
yield from _yield_images(os.path.join(root, file))
else:
try:
image = load_image(images)
Expand Down
4 changes: 3 additions & 1 deletion test/fidelity/test_ccip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os.path

import numpy as np
import pytest
from hbutils.system import TemporaryDirectory
Expand All @@ -8,7 +10,7 @@

@pytest.fixture(scope='session')
def ccip_init():
return get_testfile('ccip', 'init')
return os.path.relpath(get_testfile('ccip', 'init'), os.path.abspath('.'))


@pytest.fixture()
Expand Down

0 comments on commit a82637e

Please sign in to comment.