How To
Summary
When you run the deep learning training, it reports the below error:
Traceback (most recent call last):
File "/dli_shared_fs/tools/dataset/main.py", line 1265, in <module>
_dataset_create()
File "/dli_shared_fs/tools/dataset/main.py", line 319, in _dataset_create
tensorflow_dataset.main(output_dir, train_file, val_file, test_file, width, height,resize_type, resize_mode, encoding, shards, byclass)
File "/dli_shared_fs/tools/dataset/frameworks/tensorflow/core.py", line 213, in main
convert2TFRecords(train_file,'train',output_dir,height,width, shards, byclass)
File "/dli_shared_fs/tools/dataset/frameworks/tensorflow/core.py", line 119, in convert2TFRecords
image = extract_image(example, resize_height, resize_width)
File "/dli_shared_fs/tools/dataset/frameworks/tensorflow/core.py", line 45, in extract_image
image = cv2.imread(filename)
NameError: name 'cv2' is not defined
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
More support for:
IBM Spectrum Conductor with Spark
Software version:
All Versions
Operating system(s):
Linux
Document number:
872524
Modified date:
19 July 2019
UID
ibm10872524