nwojke / cosine_metric_learning

Deep Cosine Metric Learning for Person Re-identification
GNU General Public License v3.0
585 stars 201 forks source link

VeRi datasets #113

Open TanganHitam1 opened 4 months ago

TanganHitam1 commented 4 months ago

Has someone tried the VeRi dataset? I've tried using the VeRi dataset from the branch of this repository but gets errors like this WARNING:tensorflow:From C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py:118: calling map_fn (from tensorflow.python.ops.map_fn) with dtype is deprecated and will be removed in a future version. Instructions for updating: Use fn_output_signature instead C:\Users\black\.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\keras\engine\base_layer_v1.py:1694: UserWarning:layer.applyis deprecated and will be removed in a future version. Please uselayer.callmethod instead. warnings.warn('layer.applyis deprecated and ' WARNING:tensorflow:From C:\Users\black\.conda\envs\yolov8-deepsort\lib\site-packages\keras\layers\normalization\batch_normalization.py:562: _colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer. INFO:tensorflow:Summary name conv1_1/Elu:0/activations is illegal; using conv1_1/Elu_0/activations instead. INFO:tensorflow:Summary name conv1_2/Elu:0/activations is illegal; using conv1_2/Elu_0/activations instead. INFO:tensorflow:Summary name conv2_1/1/Elu:0/activations is illegal; using conv2_1/1/Elu_0/activations instead. INFO:tensorflow:Summary name conv2_3/1/Elu:0/activations is illegal; using conv2_3/1/Elu_0/activations instead. INFO:tensorflow:Summary name conv3_1/1/Elu:0/activations is illegal; using conv3_1/1/Elu_0/activations instead. INFO:tensorflow:Summary name conv3_3/1/Elu:0/activations is illegal; using conv3_3/1/Elu_0/activations instead. INFO:tensorflow:Summary name conv4_1/1/Elu:0/activations is illegal; using conv4_1/1/Elu_0/activations instead. INFO:tensorflow:Summary name conv4_3/1/Elu:0/activations is illegal; using conv4_3/1/Elu_0/activations instead. feature dimensionality: 128 C:\Users\black\.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\keras\legacy_tf_layers\core.py:332: UserWarning:tf.layers.flattenis deprecated and will be removed in a future version. Please usetf.keras.layers.Flatteninstead. warnings.warn('tf.layers.flatten` is deprecated and ' WARNING:tensorflow:From C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\util\dispatch.py:1176: calling l2_normalize (from tensorflow.python.ops.nn_impl) with dim is deprecated and will be removed in a future version. Instructions for updating: dim is deprecated, use axis instead WARNING:tensorflow:From C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\nets\deep_sort\network_definition.py:98: calling Constant.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version. Instructions for updating: Call initializer instance with the dtype argument instead of passing it to the constructor WARNING:tensorflow:From C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py:263: sparse_softmax_cross_entropy (from tf_slim.losses.loss_ops) is deprecated and will be removed after 2016-12-30. Instructions for updating: Use tf.losses.sparse_softmax_cross_entropy instead. Note that the order of the logits and labels arguments has been changed. WARNING:tensorflow:From C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\losses\loss_ops.py:412: compute_weighted_loss (from tf_slim.losses.loss_ops) is deprecated and will be removed after 2016-12-30. Instructions for updating: Use tf.losses.compute_weighted_loss instead. WARNING:tensorflow:From C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\util\dispatch.py:1176: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Deprecated in favor of operator or tf.math.divide. WARNING:tensorflow:From C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\losses\loss_ops.py:124: add_loss (from tf_slim.losses.loss_ops) is deprecated and will be removed after 2016-12-30. Instructions for updating: Use tf.losses.add_loss instead.

Run ID: AKL4BZ Log directory: /tmp/veri_logdir\AKL4BZ

WARNING:tensorflow:From C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py:719: Supervisor.init (from tensorflow.python.training.supervisor) is deprecated and will be removed in a future version. Instructions for updating: Please switch to tf.train.MonitoredTrainingSession 2024-06-26 16:49:20.806357: I tensorflow/core/platform/cpu_feature_guard.cc:193] 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. 2024-06-26 16:49:20.926656: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 1767 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3050 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6 2024-06-26 16:49:20.948787: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled INFO:tensorflow:Running local_init_op. INFO:tensorflow:Done running local_init_op. INFO:tensorflow:Starting Session. INFO:tensorflow:Saving checkpoint to path /tmp/veri_logdir\AKL4BZ\model.ckpt INFO:tensorflow:Starting Queues. INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:/tmp/veri_logdir\AKL4BZ\model.ckpt-0 is not in all_model_checkpoint_paths. Manually adding it. 2024-06-26 16:49:23.812481: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8200 2024-06-26 16:49:26.528753: I tensorflow/stream_executor/cuda/cuda_blas.cc:1614] TensorFloat-32 will be used for the matrix multiplication. This will only be logged once. 2024-06-26 16:49:26.587063: E tensorflow/core/kernels/check_numerics_op.cc:293] abnormal_detected_host @0000000205004A00 = {1, 0} LossTensor is inf or nan INFO:tensorflow:Recording summary at step 0. INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.InvalidArgumentError'>, Graph execution error:

Detected at node 'train_op/CheckNumerics' defined at (most recent call last): File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, Node: 'train_op/CheckNumerics' Detected at node 'train_op/CheckNumerics' defined at (most recent call last): File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, Node: 'train_op/CheckNumerics' 2 root error(s) found. (0) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] [[train_op/control_dependency/_345]] (1) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] 0 successful operations. 0 derived errors ignored.

Original stack trace for 'train_op/CheckNumerics': File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 991, in checknumerics , _, _op, _outputs = _op_def_library._apply_op_helper( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 797, in _apply_op_helper op = g._create_op_internal(op_type_name, inputs, dtypes=None, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\framework\ops.py", line 3800, in _create_op_internal ret = Operation(

2024-06-26 16:49:29.917233: W tensorflow/core/kernels/queue_base.cc:277] _0_fifo_queue: Skipping cancelled enqueue attempt with queue not closed 2024-06-26 16:49:29.917873: W tensorflow/core/kernels/queue_base.cc:277] _0_fifo_queue: Skipping cancelled enqueue attempt with queue not closed 2024-06-26 16:49:29.918229: W tensorflow/core/kernels/queue_base.cc:277] _0_fifo_queue: Skipping cancelled enqueue attempt with queue not closed 2024-06-26 16:49:29.918548: W tensorflow/core/kernels/queue_base.cc:277] _0_fifo_queue: Skipping cancelled enqueue attempt with queue not closed Traceback (most recent call last): File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1378, in _do_call return fn(*args) File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1361, in _run_fn return self._call_tf_sessionrun(options, feed_dict, fetch_list, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1454, in _call_tf_sessionrun return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict, tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found. (0) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] [[train_op/control_dependency/_345]] (1) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] 0 successful operations. 0 derived errors ignored.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 91, in train_loop trainer.run( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\queued_trainer.py", line 410, in run slim.learning.train( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 766, in train total_loss, should_stop = train_step_fn(sess, train_op, global_step, File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\queued_trainer.py", line 554, in _train_step_fn total_loss, should_stop = slim.learning.train_step( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 493, in train_step total_loss, np_global_step = sess.run([train_op, global_step], File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 968, in run result = self._run(None, fetches, feed_dict, options_ptr, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1191, in _run results = self._do_run(handle, final_targets, final_fetches, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1371, in _do_run return self._do_call(_run_fn, feeds, fetches, targets, options, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\client\session.py", line 1397, in _do_call raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:

Detected at node 'train_op/CheckNumerics' defined at (most recent call last): File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, Node: 'train_op/CheckNumerics' Detected at node 'train_op/CheckNumerics' defined at (most recent call last): File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, Node: 'train_op/CheckNumerics' 2 root error(s) found. (0) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] [[train_op/control_dependency/_345]] (1) INVALID_ARGUMENT: LossTensor is inf or nan : Tensor had NaN values [[{{node train_op/CheckNumerics}}]] 0 successful operations. 0 derived errors ignored.

Original stack trace for 'train_op/CheckNumerics': File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 133, in main() File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_veri.py", line 94, in main train_app.train_loop( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 81, in train_loop trainer, train_op = create_trainer( File "C:\Users\black\Downloads\Tugas\Sem 8\TA\Core\object-tracking-yolov8-deep-sort\model_data\cosine_metric_learning\train_app.py", line 142, in create_trainer train_op = slim.learning.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\learning.py", line 436, in create_train_op return training.create_train_op( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tf_slim\training\training.py", line 468, in create_train_op total_loss = array_ops.check_numerics(total_loss, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 991, in checknumerics , _, _op, _outputs = _op_def_library._apply_op_helper( File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 797, in _apply_op_helper op = g._create_op_internal(op_type_name, inputs, dtypes=None, File "C:\Users\black.conda\envs\yolov8-deepsort\lib\site-packages\tensorflow\python\framework\ops.py", line 3800, in _create_op_internal ret = Operation(`

If someone has training using the VeRi dataset, please give me the .pb file results.