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

Arraytool missing #12

Closed
joeybose opened this issue Jan 15, 2018 · 5 comments
Closed

Arraytool missing #12

joeybose opened this issue Jan 15, 2018 · 5 comments

Comments

@joeybose
Copy link

joeybose commented Jan 15, 2018

Hi I tried to run the code but it seems that array_tool.py is missing.

@chenyuntc
Copy link
Owner

it's here
what do you mean 'it's missing'?

@joeybose
Copy link
Author

I ran the code as per the instructions and this the error I got:
python train.py train --env='fasterrcnn-caffe' --plot-every=100 --caffe-pretrain=False
Traceback (most recent call last):
File "train.py", line 9, in
from model import FasterRCNNVGG16
File "model/init.py", line 1, in
from .faster_rcnn_vgg16 import FasterRCNNVGG16
File "model/faster_rcnn_vgg16.py", line 5, in
from model.faster_rcnn import FasterRCNN
File "model/faster_rcnn.py", line 5, in
from utils import array_tool as at
ImportError: cannot import name array_tool

@joeybose
Copy link
Author

Ok there's another utils inside the models folder which doesn't have array tools. A simple copy of files should fix the problem or changing the import directory. I'm not sure which is your preferred way to fix this.

@chenyuntc
Copy link
Owner

You're using python2?
try:
from __future__ import absolute_import

@joeybose
Copy link
Author

After a couple of copies of files and forcing UTF-8 encoding i got it to work. Thanks! Now i'll try to extend this to other datasets like WIDER.

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