google colab 初始化(20190925更新)
from google.colab import drive
drive.mount('/content/gdrive')
!mkdir -p drive
!google-drive-ocamlfuse -o nonempty drive
! mkdir -p Datasets ; cd Datasets ; wget http://images.cocodataset.org/zips/train2014.zip ; wget http://images.cocodataset.org/zips/val2014.zip ; wget http://images.cocodataset.org/annotations/annotations_trainval2014.zip ; unzip -q annotations_trainval2014.zip; unzip -q train2014.zip ; unzip -q val2014.zip
! ls ; cd gdrive/'My Drive'/'20190815_remake_attribute_decompose' ; ls
在ubuntu的终端中,如果想在同一行中执行多条命令,可以用“ ; ”(注意,分号前后都要有空格,如上面的代码段所示。)