Hi I am using TAO v4.0 with the following augmentation config:
augmentation_config {
hue: 0.1
saturation: 1.5
exposure:1.5
vertical_flip:0.5
horizontal_flip: 0.5
jitter: 0.3
output_width: 512
output_height: 288
output_channel: 3
randomize_input_shape_period: 0
mosaic_prob: 0.5
mosaic_min_ratio: 0.1
image_mean {
key: ‘b’
value: 103.9
}
image_mean {
key: ‘g’
value: 116.8
}
image_mean {
key: ‘r’
value: 123.7
}
}
I am getting the following error at the first epoch:
INFO: Starting Training Loop.
Epoch 1/80
INFO: ufunc ‘add’ did not contain a loop with signature matching types (dtype(‘<U32’), dtype(‘<U32’)) → dtype(‘<U32’)
Traceback (most recent call last):
File “</usr/local/lib/python3.6/dist-packages/iva/yolo_v4/scripts/train.py>”, line 3, in
File “”, line 152, in
File “”, line 707, in return_func
File “”, line 695, in return_func
File “”, line 148, in main
File “”, line 133, in main
File “”, line 83, in run_experiment
File “”, line 731, in train
File “”, line 232, in fit_generator
File “”, line 308, in tensorboard_images
File “”, line 282, in summary_from_images
File “”, line 219, in summary_from_image
numpy.core._exceptions.UFuncTypeError: ufunc ‘add’ did not contain a loop with signature matching types (dtype(‘<U32’), dtype(‘<U32’)) → dtype(‘<U32’)
Telemetry data couldn’t be sent, but the command ran successfully.
[WARNING]: <urlopen error [Errno -2] Name or service not known>
Execution status: FAIL
2023-02-14 12:12:07,867 [INFO] tlt.components.docker_handler.docker_handler: Stopping container.
NOTE: If I remove image_mean values from the augmentation_config training runs okay, so it musth be a problem with image_means. Can you help me with this please?
Thanks
I was trying to investigate why the images on TensorBoard are greyscale, can confirm that having visualisation and image_mean both set causes the error above.
Ahh that makes sense! I actually came across this error investigating exactly the same thing. Did you @douglas.l figure out why images are greyscale? Thank you so much
Unfortunately this doesn’t work, it produces the same error that @benedetta.delfino saw.
I was expecting that the images shown on the TensorBoard would be the augmented images in colour, so that I can see the effect of hue augmentation etc. Instead the augmented images are (mostly!) in greyscale. Surprisingly, it turns out that they are not always greyscale, sometimes I see patches of red and green in the images, but I don’t understand why that sometimes happens. Perhaps the augmentation example images are produced after mean normalisation? Ideally I’d like to see the augmented images before mean normalisation.
Hi ,
Sorry for late reply. I cannot reproduce any error with KITTI dataset.
Please try to download KITTI dataset which is mentioned in official notebook(TAO Toolkit Quick Start Guide - NVIDIA Docs) and check again. Thanks.
@Morganh I will try the default kitti dataset. In the meantime, could you show what the images in tensorboard look like for you for the default kitti dataset? Thank you
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks