LoginSignup
1
1

python初心者はgoogle colab でpythonを動かしてみるのが良いが、githubにあげられているコードを使用する際にどうすればよいのか当時わからなかったため、投稿。

ファイルのコピーと解凍

  1. ファイルを現在のディレクトリにコピーする

    !cp "○○.zip" .  # 「.」は現在のディレクトリを示します
    
  2. ファイルを解凍する

    !unzip sbd_clsimg.zip
    

注意: unzipの後にはURLではなく、ファイル名を記載する。

間違い:

!unzip https://github.com/jyhjinghwang/SegSort/blob/master/dataset/voc12/sbd_clsimg.zip

正しい方法:

!unzip dataset/voc12/sbd_clsimg.zip

こちら↓を参考にしました、ありがとうございます。
https://kenko-keep.com/colab-cp-unzip/

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1