Comments (3)
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.
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.
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)
- probable bug in src/utils/file_utils.py HOT 1
- Training for Image -> Scene graph HOT 3
- Getting Error while trying to setup the codebase HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'json_annos/VG200_sggen.json' HOT 8
- About RuntimeError: CUDA error: out of memory HOT 5
- 作者你好,可以发一下VG-VTE数据集所生成的json文件吗,我在运行 src/dataset_tools/dataset_transformer_class.py文件时遇到了from model.utils.config import cfg, cfg_from_file找不到model的问题 HOT 1
- Query regarding file_utils.py HOT 3
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 atr-net.