๋๋ฌด ๋ฉ๋ฆฌ ๊ฐ๋์ค์ธ๋ฏ..์ด๋ปํ์ง?
kaggle ์ฌ์ฉํ๊ธฐ
์ผ๋จ ๊ฐ์
ํ๋ค. https://www.kaggle.com/
kaggle api key ๋ฐ๊ธ
setting >> api >> create new api token
kaggle.json์ด ๋ค์ด๋ก๋ ๋๋ค.,
์ด์ kaggle.json์ ~/.kaggle/๋ก ์ฎ๊ธด๋ค.
mkdir ~/.kaggle
mv ~/Downloads/kaggle.json ~/.kaggle/
chmod 600 ~/.kaggle/kaggle.json
kaggle cli ์ค์น
model download
์ํ๋ ๋ชจ๋ธํ์ด์ง์ ๊ฐ์ download๋ฅผ ๋๋ฅด์.
https://www.kaggle.com/c/dogs-vs-cats-redux-kernels-edition
data ํญ์ ๋๋ฅด์.
์ฌ๊ธฐ์์ ๋ค์๋ถ๋ถ์ ๋ณต์ฌํ๋ค.
kaggle competitions download -c dogs-vs-cats-redux-kernels-edition
docker๋ก kaggle cli ์คํ
FROM python:3.10-bullseye
WORKDIR /code
COPY ./requirements.txt ./
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
WORKDIR /code/src
CMD [ "python", "app.py" ]
# docker-compose.yml
version: '3.10'
services:
python:
build: .
container_name: python
volumes:
- ./src:/code/src
- ./.kaggle:/root/.kaggle
command: ["sleep", "infinity"]
requirements.txt
tensorflow
pandas
matplotlib
kaggle
.kaggle
ํด๋์ kaggle.json
์ด ์์ด์ผ ํ๋ค.
docker-compose up -d --build
docker exec -it python sh
kaggle competitions list -h
kaggle competitions download -h
kaggle competitions download -c dogs-vs-cats-redux-kernels-edition