Skip to content

Commit

Permalink
fix confict
Browse files Browse the repository at this point in the history
  • Loading branch information
yfeng95 committed May 10, 2018
2 parents c643deb + de31425 commit c8e280e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 160 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
group: travis_latest
language: python
cache: pip
python:
- 2.7
- 3.6
#- nightly
#- pypy
#- pypy3
matrix:
allow_failures:
- python: nightly
- python: pypy
- python: pypy3
install:
- pip install -r requirements.txt
- pip install flake8 # pytest # add another testing frameworks later
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- python run_basics.py # Can run only with python and tensorflow
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
155 changes: 0 additions & 155 deletions demo.py

This file was deleted.

4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy>=1.14.3
scikit-image
scipy
tensorflow
7 changes: 2 additions & 5 deletions utils/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ def vis_of_vertices(vertices, triangles, h, w, depth_buffer = None):

return vertices_vis

## To be modified
# TODO: To be modified
def triangle_buffer(vertices, triangles, h, w):
'''
Args:
vertices: 3 x nver
triangles: 3 x ntri
h: height
h: height # [h, w, _] = image.shape
w: width
Returns:
depth_buffer: height x width
Expand All @@ -358,9 +358,6 @@ def triangle_buffer(vertices, triangles, h, w):
# Each triangle has 3 vertices & Each vertex has 3 coordinates x, y, z.
# Here, the bigger the z, the fronter the point.
'''
# initial
[h, w, _] = image.shape

depth_buffer = np.zeros([h, w]) + 999999. #+ np.min(vertices[2,:]) - 999999. # set the initial z to the farest position
triangle_buffer = np.zeros_like(depth_buffer, dtype = np.int32) - 1 # if -1, the pixel has no triangle correspondance

Expand Down

0 comments on commit c8e280e

Please sign in to comment.