lucasb-eyer / pydensecrf

Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
MIT License
1.95k stars 417 forks source link

Reformated to be a proper package #10

Closed rodrigob closed 8 years ago

rodrigob commented 8 years ago

Here is my pull request to address issue #9. I squashed all my mini-changes into a big commit (other repositories like to do that).

I tried a fresh install into a virtualenv and it seemed to work fine. So unless I messed-up with my git manipulations, this should solve the issue.

Note that setup.py will also install pydensecrf.util as required.

I created my own playground applications to use it. Maybe util_inference_example.py should be moved of the package, and have it call import pydensecrf.densecrf and import pydensecrf.utils; so as to show the proper use of the library.

lucasb-eyer commented 8 years ago

Thanks a lot, just tested and it seems to work for me too! Good call on squashing, I prefer that too.

Few minor comments:

lucasb-eyer commented 8 years ago

Oh, and if you write something like "Fixes #9" into the commit message, github will automatically close that issue when merging this PR.

rodrigob commented 8 years ago

Just updated my branch with these changes. I had problems with github and squashed commits (I am not a git guru, more of a hg guy), so I ended having "repeated commits". I hope you can fix the commits history on your side.

rodrigob commented 8 years ago

Just noticed a minor change lost in my git fights. Pushed back as one extra commit.

lucasb-eyer commented 8 years ago

Merged manually with clean history, See c0550af, 19119d31a5, and 1463feb. If you want to take credit, I recommend you associate the e-mail address that you committed with (@mpi...) with your github account!

lucasb-eyer commented 8 years ago

Also, closing manually since it looks like github doesn't auto-detect manual merges.

lucasb-eyer commented 8 years ago

Thanks a lot for sharing this with us!