Open nezarelkadyy opened 10 months ago
The dataset seems to be loaded successfully as well as the model itself as shown in the prints below that is generated by your code but it gives me the error I mentioned earlier in my question after these prints:
>>>> L2 regularizer value from basic_model: 0
>>>> Init type by loss function name...
>>>> Train arcface...
>>>> Init softmax dataset...
>>>> reloaded from dataset backup: faces_webface_112x112_112x112_folders_shuffle.npz
>>>> Loaded data image_names: 490623 image_classes: 490623 embeddings: 0 classes: 10572
>>>> Image length: 490623, Image class length: 490623, classes: 10572
>>>> Use specified optimizer: <tensorflow_addons.optimizers.weight_decay_optimizers.SGDW object at 0x7fb1f39c4ca0>
>>>> Append weight decay callback...
>>>> Add arcface layer, arc_kwargs={'loss_top_k': 3, 'append_norm': False, 'partial_fc_split': 0, 'name': 'arcface'}, vpl_kwargs={'vpl_lambda': 0.15, 'start_iters': -30663, 'allowed_delta': 200}...
>>>> loss_weights: {'arcface': 1}
Learning rate for iter 1 is 0.1
Weight decay is 0.0005000000237487257
Epoch 1/5
Test
part.import tensorflow as tf
from tensorflow import keras
mm = keras.applications.ResNet50(input_shape=(112, 112, 3), classes=10, weights=None)
xx, yy = tf.random.uniform([1000, 112, 112, 3]), tf.one_hot(tf.random.uniform([1000], 1, 10, dtype='int32'), 10)
mm.compile(loss=keras.losses.categorical_crossentropy)
mm.fit(xx, yy)
I have an issue regarding running a training code using CASIA-WebFace Dataset where It always gives me an error as follows:
============================================================================================ Noting that I have installed cuda11.2, cudnn 8.1, tensorflow 2.9.1, and tensorflow_addons 0.17.0 and the code used for training is as follows:
What could be the potential problem here?