Giter VIP home page Giter VIP logo

Comments (3)

nickgkan avatar nickgkan commented on September 14, 2024 1

Thanks for pointing out the missing import @amitkumarj441, I changed this.

Yes, the project folder seems correct. Please check again the created json files, I am pretty sure they have no annotations inside them: e.g. I suspect that VG80K_predicates.json contains a list with a single element, while it should contain a list with all the predicate names.
If that is the case, pull the code again (I fixed the missing import and added an extra utility in prepare_data.py and an assertion check) and run:

python prepare_data.py VG80K

(I just tested it with VRD as it is much faster, you can choose the dataset you want).

I hope everything runs smoothly!

from atr-net.

nickgkan avatar nickgkan commented on September 14, 2024

Hi,

This line
2020-01-14 11:58:45,650 - DEBUG - Tackling predcls for 1 classes
may imply that the image path is incorrect.

The number of classes is computed in config.py. If you have downloaded the VG80K annotations, vg80k_transformer_class will create the corresponding json files, but the method will ignore images that do not exist. In your case, probably no image exists where the program expects it to be, so it creates an empty dataset with a single 'background' class.

Please ensure that you have cloned the latest version of this codebase, as previously there was an error in the paths (see 1).

Thanks for your interest!

from atr-net.

amitkumarj441 avatar amitkumarj441 commented on September 14, 2024

Hi @nickgkan ,

Thanks for your prompt response.

I understood your point. But the image path is what's written in config.py and I arranged the downloaded images and created annotations in the proper path (which is at the home of atr-net).

At the first instance, all downloaded images were under scripts, but then according to config.py I moved it to atr-net home. Also, the json_annos folder is created after running prepare_data.py, so still figuring out that the path to the images are correct and this is a data loading problem. Have a look at the files/dir below. Also, I imported ORIG_IMAGES_PATH in src/utils/file_utils.py which you should fix as this is an issue in the current version of codebase.

LICENSE    UnRel  VRD          _init_paths.py  datasets     figures             json_annos  main.py  prepare_data.py  scripts
README.md  VG     __pycache__  config.py       faster_rcnn  glove.42B.300d.txt  losses      models   results          src

It would be great if you have any idea of the above error to fix.

Thanks in advance!

from atr-net.

Related Issues (8)

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.