You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the Yolo_nas_s model on a custom dataset made of 2D gaussians in order to simulate galaxies so it can recognise them in astronomical images, however during training, many parts of the loss function and validation are equal to zero, thus preventing the model from doing anyprediction when using model.predict().
I've already checked the labels and they seem to be correctly working ( a .txt file with c x y w h , normalised for the coordinates and dimensions of the box.)
The model only uses 1 class and uses the PPyoloELoss function, here are the training parameters and other related parts :
The first thing I would try - double-check that dataset is loaded properly.
Use this callback to visualize the data during training and see if there are correct boxes drawn
The first thing I would try - double-check that dataset is loaded properly. Use this callback to visualize the data during training and see if there are correct boxes drawn
I've tried a different approach and added normalization to my dataset class instead of bringing in already normalized images, and it seems to have fixed the issue of the model not predicting, however I get this issue instead, which I only get on certain images :
AttributeError Traceback (most recent call last)
AttributeError: 'int' object has no attribute 'sqrt'
The above exception was the direct cause of the following exception:
in ImageDetectionPrediction.show(self, box_thickness, show_confidence, color_mapping, target_bboxes, target_bboxes_format, target_class_ids, class_names)
line 52 : diag_length = np.sqrt(bbox_width2 + bbox_height2)
TypeErrr: loop of ufunc does not support argument 0 of type int which has no callable sqrt method
Does anyone know of what could be causing this in the normalization process?
💡 Your Question
Hi everyone,
I'm trying to use the Yolo_nas_s model on a custom dataset made of 2D gaussians in order to simulate galaxies so it can recognise them in astronomical images, however during training, many parts of the loss function and validation are equal to zero, thus preventing the model from doing anyprediction when using model.predict().
I've already checked the labels and they seem to be correctly working ( a .txt file with c x y w h , normalised for the coordinates and dimensions of the box.)
The model only uses 1 class and uses the PPyoloELoss function, here are the training parameters and other related parts :
Here is an epoch summary to demonstrate the problem :
SUMMARY OF EPOCH 1
├── Train
│ ├── Ppyoloeloss/loss_cls = 0.0076
│ │ ├── Epoch N-1 = 0.4161 (↘ -0.4085)
│ │ └── Best until now = 0.4161 (↘ -0.4085)
│ ├── Ppyoloeloss/loss_iou = 0.0
│ │ ├── Epoch N-1 = 0.0 (= 0.0)
│ │ └── Best until now = 0.0 (= 0.0)
│ ├── Ppyoloeloss/loss_dfl = 0.0
│ │ ├── Epoch N-1 = 0.0 (= 0.0)
│ │ └── Best until now = 0.0 (= 0.0)
│ └── Ppyoloeloss/loss = 0.0076
│ ├── Epoch N-1 = 0.4161 (↘ -0.4085)
│ └── Best until now = 0.4161 (↘ -0.4085)
└── Validation
├── Ppyoloeloss/loss_cls = 0.0024
│ ├── Epoch N-1 = 0.0582 (↘ -0.0558)
│ └── Best until now = 0.0582 (↘ -0.0558)
├── Ppyoloeloss/loss_iou = 0.0
│ ├── Epoch N-1 = 0.0 (= 0.0)
│ └── Best until now = 0.0 (= 0.0)
├── Ppyoloeloss/loss_dfl = 0.0
│ ├── Epoch N-1 = 0.0 (= 0.0)
│ └── Best until now = 0.0 (= 0.0)
...
├── Epoch N-1 = 0.0 (= 0.0)
└── Best until now = 0.0 (= 0.0)
Thank you for your help !
Versions
No response
The text was updated successfully, but these errors were encountered: