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

ImportError: cannot import name 'metanet_pb2' from partially initialized module 'caffe2.proto' (most likely due to a circular import) #14

Open
Vishal1711 opened this issue May 2, 2022 · 0 comments

Comments

@Vishal1711
Copy link

I tried to run sh 2_train.sh but faced with this issue. Please help me with this.

(mpi) [vjadhav@login001 experiments]$ sh 2_train.sh
INFO: Starting training...
Traceback (most recent call last):
  File "/home/vjadhav/RRPN/detectron/tools/train_net.py", line 32, in <module>
    from caffe2.python import workspace
  File "/home/vjadhav/.conda/envs/mpi/lib/python3.10/site-packages/caffe2/python/__init__.py", line 2, in <module>
    from caffe2.proto import caffe2_pb2
  File "/home/vjadhav/.conda/envs/mpi/lib/python3.10/site-packages/caffe2/proto/__init__.py", line 11, in <module>
    from caffe2.proto import caffe2_pb2, metanet_pb2, torch_pb2
ImportError: cannot import name 'metanet_pb2' from partially initialized module 'caffe2.proto' (most likely due to a ci                                                                                rcular import) (/home/vjadhav/.conda/envs/mpi/lib/python3.10/site-packages/caffe2/proto/__init__.py)

Before running the above script, I tried to run 0_nuscenes_to_coco.sh but results in the following error.

-------------------------------------------------------------------------
(mpi) [vjadhav@login001 experiments]$ sh 0_nuscenes_to_coco.sh
INFO: Converting nuScenes to COCO format...
WARNING: NOT reading {'lidar'}
INFO: Loading nuscenes v1.0-mini dataset
======
Loading NuScenes tables for version v1.0-mini...
23 category,
8 attribute,
4 visibility,
911 instance,
12 sensor,
120 calibrated_sensor,
31206 ego_pose,
8 log,
10 scene,
404 sample,
31206 sample_data,
18538 sample_annotation,
4 map,
Done loading in 0.500 seconds.
======
Reverse indexing ...
Done reverse indexing in 0.1 seconds.
======
INFO: Creating DATABASE for v1.0-mini mini_val dataset ...
INFO: Done in 0.010s
INFO: Number of samples in split: 81
INFO: Creating an empty COCO dataset at /home/vjadhav/RRPN/data/nucoco
100%|██████████████████████████████████████████████████████████████████████████████████| 81/81 [00:14<00:00,  5.66it/s]
Traceback (most recent call last):
  File "/home/vjadhav/RRPN/tools/nuscenes_to_coco.py", line 154, in <module>
    main()
  File "/home/vjadhav/RRPN/tools/nuscenes_to_coco.py", line 151, in main
    coco_dataset.saveAnnsToDisk()
  File "/home/vjadhav/RRPN/lib/cocoplus/coco.py", line 315, in saveAnnsToDisk
    with open(ann_file, 'w') as fp:
OSError: [Errno 122] Disk quota exceeded
INFO: Done!
-------------------------------------------------------------------------
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