for the purpose of visualizing results let's load the image without pre-processing
img = cv2.imread(str(imagenet.path_to_latest_image))
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.
FAIL: Path to ImageNet images directory has not been specified with IMAGENET_IMG_PATH flag
Traceback (most recent call last):
File "/home/ubuntu/david/aio-examples/utils/misc.py", line 28, in get_env_variable
return os.environ[env_var_name]
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'IMAGENET_IMG_PATH'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 7, in
imagenet = ImageNet(
File "/home/ubuntu/david/aio-examples/utils/imagenet.py", line 18, in init
images_path = utils.get_env_variable(
File "/home/ubuntu/david/aio-examples/utils/misc.py", line 30, in get_env_variable
print_goodbye_message_and_die(fail_message)
File "/home/ubuntu/david/aio-examples/utils/misc.py", line 40, in print_goodbye_message_and_die
sys.exit(1)
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 1148, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 316, in wrapped
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/usr/lib/python3.8/inspect.py", line 1515, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
AttributeError: 'tuple' object has no attribute 'tb_frame'
An exception has occurred, use %tb to see the full traceback.
During handling of the above exception, another exception occurred:
SystemExit: 1
/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3339: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
Hi there, there is an error at: http://localhost:8080/notebooks/classification/examples.ipynb pls refer the details:
preparing input and output dictionaries
creation of output dictionary
output_dict = {"softmax_tensor:0": graph.get_tensor_by_name("softmax_tensor:0")}
initialization of ImageNet dataset
imag
preparing input and output dictionaries
creation of output dictionary
output_dict = {"softmax_tensor:0": graph.get_tensor_by_name("softmax_tensor:0")}
initialization of ImageNet dataset
imagenet = ImageNet( batch_size=LAT_BATCH_SIZE, color_model="RGB", pre_processing="VGG", is1001classes=True ) input_array = imagenet.get_input_array(target_shape=input_shape)
assignment of input image to input tensor
feed_dict = {graph.get_tensor_by_name("input_tensor:0"): input_array}
for the purpose of visualizing results let's load the image without pre-processing
img = cv2.imread(str(imagenet.path_to_latest_image)) ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error.
FAIL: Path to ImageNet images directory has not been specified with IMAGENET_IMG_PATH flag Traceback (most recent call last): File "/home/ubuntu/david/aio-examples/utils/misc.py", line 28, in get_env_variable return os.environ[env_var_name] File "/usr/lib/python3.8/os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'IMAGENET_IMG_PATH'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 3331, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 7, in
imagenet = ImageNet(
File "/home/ubuntu/david/aio-examples/utils/imagenet.py", line 18, in init
images_path = utils.get_env_variable(
File "/home/ubuntu/david/aio-examples/utils/misc.py", line 30, in get_env_variable
print_goodbye_message_and_die(fail_message)
File "/home/ubuntu/david/aio-examples/utils/misc.py", line 40, in print_goodbye_message_and_die
sys.exit(1)
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 1148, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 316, in wrapped return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/lib/python3.8/inspect.py", line 1515, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) AttributeError: 'tuple' object has no attribute 'tb_frame' An exception has occurred, use %tb to see the full traceback.
During handling of the above exception, another exception occurred:
SystemExit: 1
/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3339: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D. warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)