-
Notifications
You must be signed in to change notification settings - Fork 10
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
Need your help about Focs model train #4
Comments
For the FCOS obj. detector training, I'd recommend you to use the official repo |
Thank you David,I have send a email to you,could you reply me ? please ! @delmalih |
@delmalih |
@delmalih
I'm training the focs model with google colab ,but it can't work when I follow the instructions.
Colab configuration are as follows:
torch.version.cuda-----
Cuda compilation tools, release 10.1, V10.1.243
print(torch.version) -----
1.4.0
print(torch.cuda.is_available())
print(torch.backends.cudnn.enabled)--------
True
True
the details for error---------------
Traceback (most recent call last):
File "train.py", line 180, in
main()
File "train.py", line 173, in main
model = train(cfg, args.local_rank, args.distributed)
File "train.py", line 79, in train
arguments
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/engine/trainer.py", line 69, in do_train
loss_dict = model(images, targets)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/modeling/detector/generalized_rcnn.py", line 50, in forward
proposals, proposal_losses = self.rpn(images, features, targets)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/modeling/rpn/fcos/fcos.py", line 159, in forward
centerness, targets
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/modeling/rpn/fcos/fcos.py", line 169, in _forward_train
locations, box_cls, box_regression, centerness, targets
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/modeling/rpn/fcos/loss.py", line 257, in call
labels_flatten.int()
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/layers/sigmoid_focal_loss.py", line 68, in forward
loss = loss_func(logits, targets, self.gamma, self.alpha)
File "/content/drive/Shared drives/BoVane/dependency/FCOS/fcos_core/layers/sigmoid_focal_loss.py", line 19, in forward
logits, targets, num_classes, gamma, alpha
RuntimeError: Not compiled with GPU support (SigmoidFocalLoss_forward at fcos_core/csrc/SigmoidFocalLoss.h:20)
Please help me !!! Thank you 🙏 😊
The text was updated successfully, but these errors were encountered: