Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docker capability #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1
FROM nvcr.io/nvidia/pytorch:22.10-py3

RUN apt update
RUN apt install -y zip htop screen libgl1-mesa-glx libxcb-xinerama0

WORKDIR /golfdb

RUN pip install -r requirements.txt
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ year = {2019}
## Dependencies
* [PyTorch](https://pytorch.org/)

## Installation
1. Build the docker image:
`docker build -t golf-db .`
2. Run the docker container:
`docker run --name golf-db --gpus all -it -v "path/to/repo":"/golfdb" --shm-size <your-memory-size (16g)> golf-db`

## Getting Started
Run [generate_splits.py](./data/generate_splits.py) to convert the .mat dataset file to a dataframe and
generate the 4 splits.
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
opencv-python-headless==4.5.5.64
opencv-contrib-python-headless==4.5.5.64