PS C:\Users\Admin\Desktop\hand\vegetables_tf2.3-master> & D:/Anaconda/envs/hand/python.exe c:/Users/Admin/Desktop/hand/vegetables_tf2.3-master/train_mobilenet.py
Found 1654 files belonging to 10 classes.
2021-12-04 16:29:09.028924: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-12-04 16:29:09.035246: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x20154790c50 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-12-04 16:29:09.035345: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
WARNING:tensorflow:input_shape
is undefined or non-square, or rows
is not in [96, 128, 160, 192, 224]. Weights for input shape (224, 224) will be loaded as the default.
Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/mobilenet_v2/mobilenet_v2_weights_tf_dim_ordering_tf_kernels_1.0_224_no_top.h5
Traceback (most recent call last):
File "D:\Anaconda\envs\hand\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 278, in get_file
urlretrieve(origin, fpath, dl_progress)
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 548, in _open
'unknown_open', req)
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "D:\Anaconda\envs\hand\lib\urllib\request.py", line 1387, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/Users/Admin/Desktop/hand/vegetables_tf2.3-master/train_mobilenet.py", line 111, in
train(epochs=30)
File "c:/Users/Admin/Desktop/hand/vegetables_tf2.3-master/train_mobilenet.py", line 97, in train
model = model_load(class_num=len(class_names))
File "c:/Users/Admin/Desktop/hand/vegetables_tf2.3-master/train_mobilenet.py", line 42, in model_load
weights='imagenet')
File "D:\Anaconda\envs\hand\lib\site-packages\tensorflow\python\keras\applications\mobilenet_v2.py", line 409, in MobileNetV2
model_name, weight_path, cache_subdir='models')
File "D:\Anaconda\envs\hand\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 282, in get_file