# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## 環境構築

# ### (option) Colab 上で実行する場合は以下を実行

from google.colab import drive
drive.mount('/content/drive')

# %cd /content
# !git clone https://github.com/rs1004/mmdetection.git
# %mkdir -p /content/mmdetection/data
# %cd /content/mmdetection/data
# !unzip -q /content/drive/MyDrive/data/voc07+12.zip
# %cd ..

# !ls -1 ./data/voc07+12/train | wc -l
# !ls -1 ./data/voc07+12/val | wc -l

# ### 共通

# !pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
# !pip install mmcv-full==1.3.8 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
# !pip install -e .

# ## 設定

CONFIG = './configs/fcos/fcos_r50_torch_fpn_gn-head_1x_voc.py'
WORK_DIR = './work_dirs/fcos_voc'

# ## 学習

# + tags=[]
# !python tools/train.py $CONFIG --work-dir $WORK_DIR --gpus 1
# -



StarcoderdataJupyterScriptsDedupFiltered