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

Necessary file missing! #2

Open
Qingqingniu opened this issue Oct 21, 2024 · 3 comments
Open

Necessary file missing! #2

Qingqingniu opened this issue Oct 21, 2024 · 3 comments

Comments

@Qingqingniu
Copy link

Qingqingniu commented Oct 21, 2024

Thank you for your great word, and recently I have been running Part 1: To solve DeiVG using DeiSAM: I encountered some file missing issues, the exact file path is as follows: 'data/visual_genome/by-id/2358761.json
Where do I need to download them,or can you just give them to me , or how to generate it ?
Thank you very much!

@Qingqingniu Qingqingniu changed the title Neccesary file missing! Necessary file missing! Oct 21, 2024
@hkrsnd
Copy link
Collaborator

hkrsnd commented Oct 23, 2024

Hi, thank you for your feedback! Could you provide the entire error message so that I can see where it's happening?

@Qingqingniu
Copy link
Author

@hkrsnd The entire error message is like this:
Deictic representation:
an object that is near a giraffe.
Traceback (most recent call last):
File "src/solve_deivg.py", line 412, in
results = segment_by_deisam(
File "src/solve_deivg.py", line 53, in segment_by_deisam
graph = vg.load_scene_graph_by_id(image_id)
File "/deictic-segment-anything/src/data_vg.py", line 218, in load_scene_graph_by_id
scene_graph = vg.get_scene_graph(
File "/anaconda3/envs/sam2/lib/python3.8/site-packages/visual_genome/local.py", line 75, in get_scene_graph
data = json.load(open(image_data_dir + fname, 'r'))
FileNotFoundError: [Errno 2] No such file or directory: 'data/visual_genome/by-id/2358761.json'

@hkrsnd
Copy link
Collaborator

hkrsnd commented Oct 28, 2024

Thank you for sharing this. I will investigate why the folder is not there by default. Anyway I uploaded the corresponding folder as a zip file here so you can download: https://hessenbox.tu-darmstadt.de/getlink/fi6SZCx2U9sY18o535fxUSEG/by-id.zip

I will update the README in a few days, including all necessary file links.

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