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

Error training voc2007 #83

Open
ch13d2am opened this issue Jul 14, 2022 · 2 comments
Open

Error training voc2007 #83

ch13d2am opened this issue Jul 14, 2022 · 2 comments

Comments

@ch13d2am
Copy link

Hi

I'm a student and a complete newbie, so please forgive me if this is a basic question. I have followed the instructions to run PCL on the voc2007 data.

I'm using Windows 10, Python 3.10.5, and as far as I can tell I've installed all dependencies including Visual Studio Code C++ libraries, SDK etc., although I had a lot of trouble trying to install cython_bbox.

When I run "python tools/test_net.py --cfg configs/baselines/vgg16_voc2007.yaml \ --load_ckpt Outputs/vgg16_voc2007/$MODEL_PATH \ --dataset voc2007trainval" I get the following:

C:\Users####\py_virtual_env\lib\site-packages\torchvision\models\detection\anchor_utils.py:63: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:68.)
device: torch.device = torch.device("cpu"),
Traceback (most recent call last):
File "C:\Users####\pcl.pytorch\tools\test_net.py", line 14, in
from core.test_engine import run_inference
File "C:\Users####\pcl.pytorch\lib\core\test_engine.py", line 36, in
from core.test import im_detect_all
File "C:\Users####\pcl.pytorch\lib\core\test.py", line 43, in
import utils.boxes as box_utils
File "C:\Users####\pcl.pytorch\lib\utils\boxes.py", line 54, in
import utils.cython_bbox as cython_bbox
ModuleNotFoundError: No module named 'utils.cython_bbox'

I also have: Requirement already satisfied: cython_bbox in c:\users####\py_virtual_env\lib\site-packages (0.1.3)
I've searched for a solution on stackoverflow etc. but cannot find one.
I'd appreciate any help.

@ShirleySyh
Copy link

Hi, have you soloved this problem yet? I met the same problem when trying to use the PCL in my own code.

@ch13d2am
Copy link
Author

ch13d2am commented Apr 7, 2023

Hi

I ended up using Google Colab instead of my own installation of Python. Make sure you set up Colab in line with the requirements text file for PCL, and it should work.

Good luck.

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

2 participants