r05323028 / imbd2020

IMBD 2020 Competition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMBD 2020

Environment Setup

Step 1: Build virtual environment

python3 -m venv ./venv

Step 2: Activate venv

source ./venv/bin/activate

Step 3: Install requirements

pip install -r requirements.txt

Step 3.5: Train model (optional)

python train.py --file_path=train/data/path

Step 4: Test model

python test.py --file_path=test/data/path --model_path=model/path --preprocessor_path=preprocessor/path

Another Running Method

Step 1: Build docker image

docker build -t imbd2020 \
             --no-cache \
             --build-arg UID=$(id -u) \
             --build-arg GID=$(id -g) \
             --build-arg USER=$(whoami) \
             --build-arg GROUP=$(whoami) \
             --no-cache \
             .

Step 2: Run training process with docker container

docker run -v $(pwd)/data:/home/$(whoami)/imbd2020/data \
           -v $(pwd)/models:/home/$(whoami)/imbd2020/models \
           -v $(pwd)/results:/home/$(whoami)/imbd2020/results \
           imbd2020 \
           train.py

Step 3: Run testing process with docker container

docker run -v $(pwd)/data:/home/$(whoami)/imbd2020/data \
           -v $(pwd)/models:/home/$(whoami)/imbd2020/models \
           -v $(pwd)/results:/home/$(whoami)/imbd2020/results \
           imbd2020 \
           test.py

About

IMBD 2020 Competition

License:GNU General Public License v3.0


Languages

Language:Python 80.7%Language:Jupyter Notebook 18.1%Language:Dockerfile 1.2%