推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
heureux
V2EX  ›  Python

最近在学习 image tagging 的问题,获取模型时使用 wget 链接网址超时的问题,请教各位大神,不知道能不能我自己下好解压

  •  
  •   heureux · Jul 6, 2016 · 2110 views
    This topic created in 3742 days ago, the information mentioned may be changed or developed.
    原文件如下:是 get_word2vec_model.sh 文件。
    source common.ini

    if [ ! -d "$rootpath" ]; then
    echo "rootpath $rootpath does not exit"
    exit
    fi


    DIR="$( cd "$(dirname "$0")" ; pwd -P )"
    cd $DIR

    echo "Downloading..."

    wget http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz

    echo "Unzipping..."

    tar -xf flickr4m.word2vec.tar.gz -C $rootpath && rm -f flickr4m.word2vec.tar.gz

    echo "Done."

    出错结果如下:
    f@f-Lenovo:~/workspace/zero-shot/hierse-master$ ./get_word2vec_model.sh
    Downloading...
    --2016-07-06 10:03:28-- http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz
    Resolving www.mmc.ruc.edu.cn (www.mmc.ruc.edu.cn)... 202.112.113.27
    Connecting to www.mmc.ruc.edu.cn (www.mmc.ruc.edu.cn)|202.112.113.27|:80... failed: Connection timed out.
    Retrying.

    --2016-07-06 10:05:36-- (try: 2) http://www.mmc.ruc.edu.cn/research/hierse/flickr4m.word2vec.tar.gz
    Connecting to www.mmc.ruc.edu.cn (www.mmc.ruc.edu.cn)|202.112.113.27|:80...
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   792 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:02 · PVG 06:02 · LAX 15:02 · JFK 18:02
    ♥ Do have faith in what you're doing.