Skip to content

Commit

Permalink
chore: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Oct 24, 2021
1 parent cdf634b commit 8e3b1fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ finetuner.fit(

def data_gen():
for d in from_files('./img_align_celeba/*.jpg', size=100, to_dataturi=True):
d.convert_image_datauri_to_blob(color_axis=0) # `color_axis=-1` for TF/Keras users
d.convert_image_uri_to_blob()
d.normalize_image_blob()
d.set_image_blob_channel_axis(-1, 0) #: no need of this line if you are using tf/keras
yield d
```
3. Load pretrained ResNet50 using PyTorch/Keras/Paddle:
Expand Down
4 changes: 3 additions & 1 deletion docs/get-started/celeba.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ from jina.types.document.generators import from_files
def data_gen():
# please change the file path to your data path
for d in from_files('/Users/jina/Downloads/img_align_celeba/*.jpg', size=100, to_dataturi=True):
d.convert_image_datauri_to_blob(color_axis=0) # no need of tf
d.convert_image_uri_to_blob()
d.normalize_image_blob()
d.set_image_blob_channel_axis(-1, 0) #: no need of this line if you are using tf/keras
yield d
```

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
long_description_content_type='text/markdown',
zip_safe=False,
setup_requires=['setuptools>=18.0', 'wheel'],
install_requires=['jina'],
install_requires=['jina>=2.1.11'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 8e3b1fb

Please sign in to comment.