Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaN result on: loss, rpn_class_loss and rpn_bbox_loss when Training #160

Open
sufiaji opened this issue Oct 23, 2022 · 0 comments
Open

NaN result on: loss, rpn_class_loss and rpn_bbox_loss when Training #160

sufiaji opened this issue Oct 23, 2022 · 0 comments

Comments

@sufiaji
Copy link

sufiaji commented Oct 23, 2022

Hi there,

Thank you for this awesome library.
I manage to download the Nature dataset and try to run the training with below code:

import pixellib
from pixellib.custom_train import instance_custom_training

train_maskrcnn = instance_custom_training()
train_maskrcnn.modelConfig(network_backbone = "resnet50", num_classes= 2, batch_size = 1)
train_maskrcnn.load_pretrained_model("mask_rcnn_coco.h5")
train_maskrcnn.load_dataset("Nature")
train_maskrcnn.train_model(num_epochs = 10, augmentation=True, path_trained_models = "mask_rcnn_models")

However I got NaN loss on 2nd iteration onward as below screencapt:

image

Please advise to avoid this error.

My environment:
Windows 11 with Nvidia GeForce RTX 3060 laptop and Cuda 10.1
Python 3.8 with Tensorflow 2.2
Using pip, not conda

Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant