question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such file or directory: 'visualization/output/generated_captions/dvc_results.json'

See original GitHub issue

hi when I run code as below:

video_folder=visualization/videos
output_folder=visualization/output
pdvc_model_path=save/anet_tsp_pdvc/model-best.pth
output_language=en
bash test_and_visualize.sh $video_folder $output_folder $pdvc_model_path $output_language

and the error is generated:

**from densevid_eval3.SODA.soda import SODA

ModuleNotFoundError: No module named ‘densevid_eval3.SODA.soda’ START VISUALIZATION Traceback (most recent call last): File “visualization/visualization.py”, line 154, in <module> d = json.load(open(opt.dvc_file))[‘results’] FileNotFoundError: [Errno 2] No such file or directory: ‘visualization/output/generated_captions/dvc_results.json’**

so where is dvc_results.json? and how can i got it?

thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hyeok-jongcommented, Nov 13, 2022

@mixiazhiyang @cyy-1102

I had same problem. And I solved by little detuoring.

First of all, i guess, the problem visualization/output/generated_captions/dvc_results.json is because MultiScaleDeformableAttention is not installed correctly.

I don’t know extact reason, but I think the problem is due to torch version.

So, i tried install MultiScaleDeformableAttention

If installed well, then try

import torch
import MultiScaleDeformableAttention

if such code yeilds no error, MultiScaleDeformableAttention it means installed successfully.

Since original repo of MultiScaleDeformableAttention is here,
I just followed the repo.
It means I installed MultiScaleDeformableAttention directly by here.

For more details

git clone https://github.com/fundamentalvision/Deformable-DETR.git  
conda create -n PDVC python=3.7 
source activate PDVC  
cd Deformable-DETR  
conda install pytorch=1.5.1 torchvision=0.6.1 cudatoolkit=9.2 -c pytorch  
pip install -r requirements.txt  
cd ./models/ops
sh ./make.sh
cd ..  
cd ..  

This is how to install MultiScaleDeformableAttention

git clone --recursive https://github.com/ttengwang/PDVC.git  
cd PDVC  
conda install ffmpeg  
pip install opencv-python  
pip install -r requirement.txt  
0reactions
mixiazhiyangcommented, Oct 23, 2022

我没有save/info.json,你是怎么解决的呢

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such file or directory: 'newcred.json' - Stack Overflow
json is in the same directory as google_worksheets and when I run google_worksheets on it's own it works fine (right click file and...
Read more >
No such file or directory: results.json · Issue #8 - GitHub
The Redfish-Mockup-Creator is one of the tools that does not create a results.json file. So the warning message you are seeing is expected....
Read more >
Chapter 1: Failed to import people.json - M201 - MongoDB
Hi guys1 I am running this command: mongoimport --drop -c restaurants --uri mongodb+srv://user:password@cluster0.45p9jum.mongodb.net/m201 ...
Read more >
jsconfig.json Reference - Visual Studio Code
The presence of such a file in a directory indicates that the directory is the root of a JavaScript project. The file itself...
Read more >
openshift-install destroy cluster Fails with "open metadata.json
openshift-install destroy cluster FATAL Failed while preparing to destroy cluster: open metadata.json: no such file or directory ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found