Skip to content

Commit

Permalink
Fix load_file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jrrodri committed Apr 11, 2023
1 parent 18294b5 commit 7942d3f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions abraia/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def split_train_test(paths, labels, train_ratio=0.7):


def data_generator(paths, labels, load_image, class_names, batch_size=32):
process_map(multiple.load_file, paths, max_workers=5)
process_map(multiple.cache_file, paths, max_workers=5)
while True:
batch_X, batch_Y = [], []
idxs = random.sample(range(len(paths)), batch_size)
Expand Down Expand Up @@ -280,7 +280,7 @@ def save_model(model, path):


def load_model(path):
dest = multiple.load_file(path)
dest = multiple.cache_file(path)
return keras.models.load_model(dest)


Expand Down
2 changes: 1 addition & 1 deletion notebooks/hyperspectral-analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"source": [
"%%capture\n",
"!python -m pip install abraia==0.12.0\n",
"!python -m pip install abraia==0.12.1\n",
"\n",
"import os\n",
"if not os.getenv('ABRAIA_ID') or not os.getenv('ABRAIA_KEY'):\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/hyperspectral-classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"source": [
"%%capture\n",
"!python -m pip install abraia==0.12.0\n",
"!python -m pip install abraia==0.12.1\n",
"\n",
"import os\n",
"if not os.getenv('ABRAIA_ID') or not os.getenv('ABRAIA_KEY'):\n",
Expand Down
4 changes: 2 additions & 2 deletions scripts/abraia
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def input_files(src):


@click.group('abraia')
@click.version_option('0.12.0')
@click.version_option('0.12.1')
def cli():
"""Abraia CLI tool"""
pass
Expand All @@ -64,7 +64,7 @@ def configure():
@cli.command()
def info():
"""Show user account information"""
click.echo('abraia, version 0.12.0\n')
click.echo('abraia, version 0.12.1\n')
click.echo('Go to [' + click.style('https://abraia.me/console/', fg='green') + '] to see your account information\n')


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='abraia',
version='0.12.0',
version='0.12.1',
description='Abraia Python SDK',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 7942d3f

Please sign in to comment.