pooya-mohammadi commited on
Commit
f50287b
1 Parent(s): 7b93b64

Change None to ""

Browse files
Files changed (1) hide show
  1. persian-license-plate-v1.py +4 -6
persian-license-plate-v1.py CHANGED
@@ -1,7 +1,5 @@
1
- import os
2
- import numpy as np
3
- from PIL import Image
4
  import csv
 
5
 
6
  import datasets
7
 
@@ -58,13 +56,13 @@ class PersianLicensePlate(datasets.GeneratorBasedBuilder):
58
  test_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["test"])
59
 
60
  archive_path = dl_manager.download(_DOWNLOAD_URLS['train_dataset'])
61
- train_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else None
62
 
63
  archive_path = dl_manager.download(_DOWNLOAD_URLS['val_dataset'])
64
- val_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else None
65
 
66
  archive_path = dl_manager.download(_DOWNLOAD_URLS['test_dataset'])
67
- test_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else None
68
 
69
  return [
70
  datasets.SplitGenerator(
 
 
 
 
1
  import csv
2
+ import os
3
 
4
  import datasets
5
 
 
56
  test_path = dl_manager.download_and_extract(_DOWNLOAD_URLS["test"])
57
 
58
  archive_path = dl_manager.download(_DOWNLOAD_URLS['train_dataset'])
59
+ train_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else ""
60
 
61
  archive_path = dl_manager.download(_DOWNLOAD_URLS['val_dataset'])
62
+ val_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else ""
63
 
64
  archive_path = dl_manager.download(_DOWNLOAD_URLS['test_dataset'])
65
+ test_extracted_path = dl_manager.extract(archive_path) if not dl_manager.is_streaming else ""
66
 
67
  return [
68
  datasets.SplitGenerator(