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

No such file or directory: 'RUNS/KittiSeg_pretrained.zip' #19

Closed
nirabo opened this issue Mar 10, 2017 · 23 comments · Fixed by #126
Closed

No such file or directory: 'RUNS/KittiSeg_pretrained.zip' #19

nirabo opened this issue Mar 10, 2017 · 23 comments · Fixed by #126

Comments

@nirabo
Copy link

nirabo commented Mar 10, 2017

Hi,

After downloading the data, installing the requirements.txt packages and tensorflow I attempted the demo and got this error.

python demo.py --input_image data/demo/demo.png
2017-03-10 07:50:36,788 INFO No environment variable 'TV_PLUGIN_DIR' found. Set to '/home/lap/tv-plugins'.
2017-03-10 07:50:36,788 INFO No environment variable 'TV_STEP_SHOW' found. Set to '50'.
2017-03-10 07:50:36,788 INFO No environment variable 'TV_STEP_EVAL' found. Set to '250'.
2017-03-10 07:50:36,788 INFO No environment variable 'TV_STEP_WRITE' found. Set to '1000'.
2017-03-10 07:50:36,788 INFO No environment variable 'TV_MAX_KEEP' found. Set to '10'.
2017-03-10 07:50:36,788 INFO No environment variable 'TV_STEP_STR' found. Set to 'Step {step}/{total_steps}: loss = {loss_value:.2f}; lr = {lr_value:.2e}; {sec_per_batch:.3f} sec (per Batch); {examples_per_sec:.1f} imgs/sec'.
2017-03-10 07:50:36,788 INFO Download URL: ftp://mi.eng.cam.ac.uk/pub/mttt2/models/KittiSeg_pretrained.zip
2017-03-10 07:50:36,789 INFO Download DIR: RUNS
Traceback (most recent call last):
File "demo.py", line 216, in
tf.app.run()
File "/media/lap/data/.virtualenvs/KittySeg/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "demo.py", line 124, in main
maybe_download_and_extract(runs_dir)
File "demo.py", line 87, in maybe_download_and_extract
download_name = tv_utils.download(weights_url, runs_dir)
File "incl/tensorvision/utils.py", line 48, in download
reporthook=_progress)
File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 249, in retrieve
tfp = open(filename, 'wb')
IOError: [Errno 2] No such file or directory: 'RUNS/KittiSeg_pretrained.zip'

Did I miss a step?

@MarvinTeichmann
Copy link
Owner

No, this is strange. The script should download the file ftp://mi.eng.cam.ac.uk/pub/mttt2/models/KittiSeg_pretrained.zip to dir RUNS. Did the download complete? Maybe try manually download that file.

@nirabo
Copy link
Author

nirabo commented Mar 10, 2017

Firts attempt log:

(KittySeg) lap@home:/media/lap/data/projects/KittiSeg (master)*$ wget ftp://mi.eng.cam.ac.uk/pub/mttt2/models/KittiSeg_pretrained.zip
--2017-03-10 13:48:01-- ftp://mi.eng.cam.ac.uk/pub/mttt2/models/KittiSeg_pretrained.zip
=> ‘KittiSeg_pretrained.zip’
Resolving mi.eng.cam.ac.uk (mi.eng.cam.ac.uk)... 129.169.82.147
Connecting to mi.eng.cam.ac.uk (mi.eng.cam.ac.uk)|129.169.82.147|:21... connected.
Logging in as anonymous ...
Log-in incorrect.

After couple of minutes when I retried it went well. Perhaps the authorization requirement was lifted meanwhile.

@nirabo nirabo closed this as completed Mar 10, 2017
@nirabo
Copy link
Author

nirabo commented Mar 10, 2017

The FTP server is randomly allowing the download to happen.

@nirabo nirabo reopened this Mar 10, 2017
@MarvinTeichmann
Copy link
Owner

MarvinTeichmann commented Mar 10, 2017

I will look into this. Although the ftp server is not under my control. So there might not be to much I can do. 😔

@MarvinTeichmann
Copy link
Owner

Ok, the issue was, that the server did only allow up to 64 for anonymous connections at the same time. The limit is now increased to 256 and we hope that this is enough for now.

The repository recently went viral, this has increased the overall download request quite a bit ;).

@nirabo
Copy link
Author

nirabo commented Mar 10, 2017

Maybe we should collectively share the data to ease up load on the server. Is a torrent a legal option?

@MarvinTeichmann
Copy link
Owner

Legally I don't see any problems using a torrent. I see however two practical issues. Firstly my department blocks any UDP and torrent traffic. So I won't really be able to seed.

Secondly, I much prefer a simple setup pipeline. Currently the user only needs to run one script and the data files are automatically loaded and copied into the right dir. This has the charm, that no much can go wrong.

So let's hope that the increase to 256 connections is more enough for now ;). I have been trying to download a couple of times within the last hours and had no problems.

@nirabo
Copy link
Author

nirabo commented Mar 11, 2017

Yes, thanks, it is working now.

@louisquinn
Copy link

Hi @MarvinTeichmann,

It seems like the download limit for KittiBox_pretrained.zip has been reached again!
Are you able to increase the download limit?

@MarvinTeichmann
Copy link
Owner

MarvinTeichmann commented Mar 15, 2017

Thanks for informing me that the problem still persists. The connection limit is reset automatically once per hour. So if you try again in a few minutes it should work.

@rpandey4
Copy link

rpandey4 commented May 2, 2017

Hi @MarvinTeichmann

I guess the error is due to not having RUNS directory in the project as when I created the directory and run again, the script has started to download the file.

@iliTheFallen
Copy link

Thanks gizmowiki! Yeah it is correct!

@dbuscombe-usgs
Copy link

Tried several times to download the KittiSeg_pretrained file in the past couple of days, from command line and through ftp. Really, really slow download, and it failed every time. Could somebody put the file up on a faster server or dropbox or something? I would really like to run the demo and give this a try. Thanks

@chauhan-utk
Copy link

I downloaded the file and put it in RUNS directory. It is still not working and when I try to run demo.py again then it tries to download again. What should I do?

@zishanahmed08
Copy link

I have been constantly trying to download but without success .Could someone provide it me?@chauhan-uk?

@chauhan-utk
Copy link

chauhan-utk commented May 20, 2017

@zishanahmed08 I used the link given in console to download via IDM. Decent download speed.
Here is the link: ftp://129.169.82.147/pub/mttt2/models/KittiSeg_pretrained.zip
Remember to unzip the file in the RUNS folder, otherwise demo.py will again start to download the whole file again.

@zishanahmed08
Copy link

@chauhan-uk I am unable to download from the link even after repeated attempts.Coul you please share your local copy.My mail id is [email protected]

@rpandey4
Copy link

If the owner has no problem I have stored the file in Dropbox. You can access it from here

@kreid415
Copy link

I was having the same error. I manually created a RUNS directory and then reran the command "python demo.py --input_image data/demo/demo.png" and it began the KittiSeg_pretrained.zip download automatically.

@HXKwindwizard
Copy link

@kreid415 I used yours method. It works. Thank you

@SpearBorge
Copy link

@chauhan-utk I used your method. It works. Thank you!

@ghost ghost mentioned this issue Aug 20, 2017
@saviogeorge
Copy link

@kreid415 I also used the same method and it works Thank You!

MarvinTeichmann pushed a commit that referenced this issue Oct 16, 2017
* update maybe_download_and_extract()

create the "RUNS" directory to fix #19

* add sant check
@igormahall
Copy link

If the owner has no problem I have stored the file in Dropbox. You can access it from here

Hello friend. Would you mind to send me the file?
I simply can not download it. Thank you.

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

Successfully merging a pull request may close this issue.