deep-learning-face-recognition's Introduction
deep-learning-face-recognition's People
Forkers
rkrishna116 amirsultan ayyappagithub kpanwala nayan1406 dasarisasidhar andykibz iamsantoshkumar neharr ritishtiwari ssitb ashwin-saxena abhishek-1228 muhammadzain8 maheshprabhu007 suvrajeet01 pritam055 saket007saket p-chandana tjjohn devikams98 ank80648 balaganesanr geek-waqas prasadshiva27 harsha9676 mobirizer-technology madhuri777289 unrivalle naveen-kurra rahul-ghadai ahmed-mohamed-eed white-peed chanatsit khand-faidi ej-enun amlana-p muluayele999 gokulsg manish8798 aliffiansyahm abdelrhman-gaber yashtambe1599 sanyagarg asmi-firdaus halifhassim sayan-ban sakshi-agarwal8 shakeelds71 yatharth23112001 reshi-aafaq nicobarundia satyajitmohapatra-datascientist pawan2905 dhanshri96 tksuthar sam-9800 hrockey dhinagaran-s sreejan100 cflin-cjcu satsin727 divyamsingh18 lobnarjili beast4957 testgithubsubhankar rafsunsheikh usmankhan46 sandipsolunke pernetijahnavi dhruv-patel07 shan-lee2k morlasantosh mr-speedster subhajitsaha1903 arafatislam123deep-learning-face-recognition's Issues
fit_generator function throwing error
Dear Krish,
I tried to run the code as it is.
I am getting error in fit_generator step. Please find below trace.
2021-07-04 15:54:42.489907: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-07-04 15:54:42.490746: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2021-07-04 15:54:51.556323: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2021-07-04 15:54:51.557099: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2021-07-04 15:54:51.566182: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: NT00142
2021-07-04 15:54:51.566741: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: NT00142
2021-07-04 15:54:51.573530: 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: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Model: "model"
Layer (type) Output Shape Param #
input_1 (InputLayer) [(None, 224, 224, 3)] 0
block1_conv1 (Conv2D) (None, 224, 224, 64) 1792
block1_conv2 (Conv2D) (None, 224, 224, 64) 36928
block1_pool (MaxPooling2D) (None, 112, 112, 64) 0
block2_conv1 (Conv2D) (None, 112, 112, 128) 73856
block2_conv2 (Conv2D) (None, 112, 112, 128) 147584
block2_pool (MaxPooling2D) (None, 56, 56, 128) 0
block3_conv1 (Conv2D) (None, 56, 56, 256) 295168
block3_conv2 (Conv2D) (None, 56, 56, 256) 590080
block3_conv3 (Conv2D) (None, 56, 56, 256) 590080
block3_pool (MaxPooling2D) (None, 28, 28, 256) 0
block4_conv1 (Conv2D) (None, 28, 28, 512) 1180160
block4_conv2 (Conv2D) (None, 28, 28, 512) 2359808
block4_conv3 (Conv2D) (None, 28, 28, 512) 2359808
block4_pool (MaxPooling2D) (None, 14, 14, 512) 0
block5_conv1 (Conv2D) (None, 14, 14, 512) 2359808
block5_conv2 (Conv2D) (None, 14, 14, 512) 2359808
block5_conv3 (Conv2D) (None, 14, 14, 512) 2359808
block5_pool (MaxPooling2D) (None, 7, 7, 512) 0
flatten (Flatten) (None, 25088) 0
dense (Dense) (None, 1) 25089
Total params: 14,739,777
Trainable params: 25,089
Non-trainable params: 14,714,688
Found 25 images belonging to 1 classes.
Found 10 images belonging to 1 classes.
C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py:1977: UserWarning: Model.fit_generator
is deprecated and will be removed in a future version. Please use Model.fit
, which supports generators.
warnings.warn('Model.fit_generator
is deprecated and '
Traceback (most recent call last):
File "C:/SmartGate/SGAPP/Deep-Learning-Face-Recognition-master/Deep-Learning-Face-Recognition-master/face_Recognition.py", line 84, in
r = model.fit_generator(
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 1980, in fit_generator
return self.fit(
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training.py", line 1139, in fit
data_handler = data_adapter.get_data_handler(
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\data_adapter.py", line 1383, in get_data_handler
return DataHandler(*args, **kwargs)
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\data_adapter.py", line 1138, in init
self._adapter = adapter_cls(
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\data_adapter.py", line 917, in init
super(KerasSequenceAdapter, self).init(
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\data_adapter.py", line 794, in init
peek, x = self._peek_and_restore(x)
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\data_adapter.py", line 928, in _peek_and_restore
return x[0], x
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras_preprocessing\image\iterator.py", line 65, in getitem
return self._get_batches_of_transformed_samples(index_array)
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras_preprocessing\image\iterator.py", line 231, in _get_batches_of_transformed_samples
x = img_to_array(img, data_format=self.data_format)
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\keras_preprocessing\image\utils.py", line 309, in img_to_array
x = np.asarray(img, dtype=dtype)
File "C:\Users\schoudhary\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core_asarray.py", line 83, in asarray
return array(a, dtype, copy=False, order=order)
TypeError: array() takes 1 positional argument but 2 were given
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.