Giter Site home page Giter Site logo

config file about factorizablenet HOT 3 CLOSED

yikang-li avatar yikang-li commented on August 13, 2024
config file

from factorizablenet.

Comments (3)

digbose92 avatar digbose92 commented on August 13, 2024

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.

achehire avatar achehire commented on August 13, 2024

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.

digbose92 avatar digbose92 commented on August 13, 2024

Thanks @achehire .

from factorizablenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.