Image dataset implemented and ray generation working. (#23)

* working data loader code

* adding gitignore

* fixing linting errors

* set black line length in settings file

* update

* fixed filepath

* black format

* tqdm
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-04-17 09:26:44 -07:00
1 parent 9bc83b0ed2
commit e38040ee4d
23 files changed
+529 -277

No files matched your search

+27 -23
View File
@@ -2,36 +2,40 @@ name: Check code for formating and run tests.
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8.12
uses: actions/setup-python@v3
with:
python-version: "3.8.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r environment/requirements.txt
python setup.py develop
- name: Run Black
uses: psf/black@stable
with:
options: "--check --verbose --line-length=120"
- name: Python Pylint
run: |
pylint mattport --max-line-length=120 --generated-members=numpy.*,torch.*,cv2.*,cv.* --good-names=e,c,i,j,x,y,lr,K,fx,fy,cx,cy,H,W --disable=too-many-arguments --disable=fixme
- name: Test with pytest
run: |
pytest tests --ignore tests/nerf/test_ray_generator.py --typeguard-packages=mattport --torchtyping-patch-typeguard
- uses: actions/checkout@v3
- name: Set up Python 3.8.12
uses: actions/setup-python@v3
with:
python-version: "3.8.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r environment/requirements.txt
python setup.py develop
- name: Run Black
uses: psf/black@stable
with:
options: "--check --verbose --line-length=120"
- name: Python Pylint
run: |
pylint mattport tests \
--max-line-length=120 \
--generated-members=numpy.*,torch.*,cv2.*,cv.* \
--good-names=e,c,i,j,x,y,lr,K,fx,fy,cx,cy,H,W \
--disable=too-many-arguments \
--disable=fixme
- name: Test with pytest
run: |
pytest tests --ignore tests/nerf/dataloader/test_ray_generator.py --typeguard-packages=mattport --torchtyping-patch-typeguard