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
#run training
%cd /content/CenterNet2/projects/CenterNet2
!python train_net.py --config-file configs/CenterNet-FPN_R50_1x.yaml --num-gpus 1
Full logs or other relevant observations:
/content/CenterNet2/projects/CenterNet2
Traceback (most recent call last):
File "train_net.py", line 38, in <module>
from centernet.config import add_centernet_config
File "/content/CenterNet2/projects/CenterNet2/centernet/__init__.py", line 3, in <module>
from .modeling.roi_heads.custom_roi_heads import CustomROIHeads, CustomCascadeROIHeads
File "/content/CenterNet2/projects/CenterNet2/centernet/modeling/roi_heads/custom_roi_heads.py", line 19, in <module>
from .custom_fast_rcnn import CustomFastRCNNOutputLayers
File "/content/CenterNet2/projects/CenterNet2/centernet/modeling/roi_heads/custom_fast_rcnn.py", line 13, in <module>
from detectron2.layers import Linear, ShapeSpec, batched_nms, cat, nonzero_tuple
ImportError: cannot import name 'nonzero_tuple' from 'detectron2.layers' (/usr/local/lib/python3.7/dist-packages/detectron2/layers/__init__.py)
Expected behavior:
The initialization from centernet config runs, but since no dataset supported, it will not start the training process.
Environment:
Google colab
The text was updated successfully, but these errors were encountered:
cannot import name 'nonzero_tuple' from 'detectron2.layers'
I ran the code using Google Colab
Expected behavior:
The initialization from centernet config runs, but since no dataset supported, it will not start the training process.
Environment:
Google colab
The text was updated successfully, but these errors were encountered: