facebookresearch / DCI

Densely Captioned Images (DCI) dataset repository.
Other
155 stars 5 forks source link

run_server.py can't work #3

Open ntz2000 opened 8 months ago

ntz2000 commented 8 months ago

If usepython explorer/run_server.py and it will show an error like "No module named 'densely_captioned_images", so I move run_server.py to DCI/dataset. And it can run successfully but the website 127.0.0.1:3000 has nothing.

JackUrb commented 8 months ago

Hi @ntz2000 - have you run the download script in DCI/dataset/densely_captioned_images/dataset/scripts/ first? You also need to visit http://127.0.0.1:3000/0 to kick things off.

@bordesf - we should add a readme to the explorer directory with the following:

# Explorer
## Setup
To use the explorer, you must first install the DCI dataset module and download the DCI dataset. Then, you'll additionally need to `pip install flask`.

Please refer to the main README for more instructions on setup.
ntz2000 commented 8 months ago

Thanks very much. I directly downloaded from the url before use. And now I have solved the problem by using 'pip install -e .' at DCI/dataset. It's really important to add the '.' at last, or the command will not work properly (it will show an error like "No module named 'densely_captioned_images").