Comments (3)
Whenever I am running the code for evaluation : "CUDA_VISIBLE_DEVICES=0 python train_FN.py --evaluate --dataset_option=normal --path_opt options/models/VG-MSDN.yaml --pretrained_model output/trained_models/Model-VG-MSDN.h5". I am getting this error:
File "train_FN.py", line 22, in
import lib.datasets as datasets
File "/home/digbose92/FactorizableNet/lib/datasets/init.py", line 11, in
from .visual_genome_loader import visual_genome
File "/home/digbose92/FactorizableNet/lib/datasets/visual_genome_loader.py", line 20, in
from lib.rpn_msr.anchor_target_layer import anchor_target_layer
File "/home/digbose92/FactorizableNet/lib/rpn_msr/anchor_target_layer.py", line 21, in
from lib.fast_rcnn.bbox_transform import *
File "/home/digbose92/FactorizableNet/lib/fast_rcnn/bbox_transform.py", line 11, in
from config import cfg
ImportError: cannot import name 'cfg' .
Any help ?
from factorizablenet.
Hello.
You can simply fix it by replacing:
from config import cfg
by:
from .config import cfg
The dot in front indicates you have to go up a directory to find the file you wish to import cfg from (as there is indeed a config.py file in the fast_rcnn directory).
As you said, there are two config files (config and config2). I assumed config was the correct one (though I may be wrong here).
I had to fix similar issues in about 7-8 other python files. There were also missing parenthesis in front of print functions in quite a few files. Good luck with the corrections !
from factorizablenet.
Thanks @achehire .
from factorizablenet.
Related Issues (20)
- image not getting loaded HOT 6
- Segmentation fault due to _C.so file HOT 2
- Dataset for Accuracy reported
- Regarding use of regions and caption_rois HOT 1
- Using factorizable_net_v4.py forward_evaluate() to evaluate unannotated images HOT 1
- Generate scene-graph for a single test image. HOT 3
- Evaluation Warning: underflow encountered in multiply
- when evaluate_object,error occured HOT 1
- how to evaluate in new image without ground truth xml? HOT 18
- Anyway to run on win10 machine?
- error when training HOT 2
- Who has the Scene Graph of coco dataset , can you publish it,thanks a lot
- How much times the clustering for objects and subgraphs ? One?
- We define its confifidence score as the product of the scores of the two object proposals?
- avg-pooled features (m × 515×1×1)
- I think maybe the code can implement the remand of producing the features by assigned locations boxes
- Missing Function "python_eval" HOT 6
- The link for VRD dataset is broken
- the link of the VRD dataset is broken, where can I get the images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from factorizablenet.