mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 18:33:01 +00:00
ds predict: fix filenames in
This commit is contained in:
parent
e333dcba9c
commit
366db658a8
1 changed files with 1 additions and 4 deletions
|
@ -87,9 +87,6 @@ def dataset(dirpath_input, batch_size=64, train_percentage=0.8, parallel_reads_m
|
||||||
|
|
||||||
def dataset_predict(dirpath_input, parallel_reads_multiplier=1.5, prefetch=True):
|
def dataset_predict(dirpath_input, parallel_reads_multiplier=1.5, prefetch=True):
|
||||||
filepaths = get_filepaths(dirpath_input)
|
filepaths = get_filepaths(dirpath_input)
|
||||||
filepaths_count = len(filepaths)
|
|
||||||
for i in range(len(filepaths)):
|
|
||||||
filepaths.append(filepaths[-1])
|
|
||||||
|
|
||||||
return make_dataset(
|
return make_dataset(
|
||||||
filepaths=filepaths,
|
filepaths=filepaths,
|
||||||
|
@ -98,7 +95,7 @@ def dataset_predict(dirpath_input, parallel_reads_multiplier=1.5, prefetch=True)
|
||||||
batch_size=None,
|
batch_size=None,
|
||||||
dummy_label=False,
|
dummy_label=False,
|
||||||
prefetch=prefetch
|
prefetch=prefetch
|
||||||
), filepaths[0:filepaths_count], filepaths_count
|
)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
ds_train, ds_validate = dataset("/mnt/research-data/main/rainfallwater_records-viperfinal/")
|
ds_train, ds_validate = dataset("/mnt/research-data/main/rainfallwater_records-viperfinal/")
|
||||||
|
|
Loading…
Reference in a new issue