dhSegment icon indicating copy to clipboard operation
dhSegment copied to clipboard

Modification of the definition of networks

Open SeguinBe opened this issue 6 years ago • 9 comments

So now the network definition is based on two bases classes, an Encoder and a Decoder.

This simplifies quite a bit of things, and allows more flexibility. Also, it will allows anyone to plug-in its own network definition without having to clone dh_segment.

SeguinBe avatar Oct 12 '18 18:10 SeguinBe

Uh why close it?

Le lun. 5 nov. 2018 à 09:40, solivr [email protected] a écrit :

Closed #18 https://github.com/dhlab-epfl/dhSegment/pull/18.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/dhlab-epfl/dhSegment/pull/18#event-1945592366, or mute the thread https://github.com/notifications/unsubscribe-auth/AGzWkTKqx6tNRmO80Gy6eUx2yGarkEHJks5ur_l9gaJpZM4XZ-ok .

SeguinBe avatar Nov 05 '18 08:11 SeguinBe

oops sorry I closed doc_refactor branch, but forgot that this one is related to it...

solivr avatar Nov 05 '18 09:11 solivr

Is it recommended to use this branch instead of master? It seems to have a lot of fixes and extensions...

wrznr avatar Apr 17 '19 14:04 wrznr

I just wanted to note I was unable to run demo.py on the master branch or the latest release tag. It would fail with a ValueError. That being said, demo.py ran just fine on this encoder_revamp branch. It's somewhat confusing to a newcomer like me that this isn't noted anywhere.

rkeiii avatar Apr 27 '19 22:04 rkeiii

A lot of the changes suggested here are actually part of the master branch. :confused:

wrznr avatar May 02 '19 13:05 wrznr

@wrznr The official branch is the master branch. This one should work as well, but I'm not sure it has been tested and we need to make sure it behaves like master (or better) before merging it. It will hopefully be merged some day but I am not working on this at the moment, and AFAIK no one else is. Sorry for that.

solivr avatar May 15 '19 10:05 solivr

To pursue on @solivr comment, we do not have anybody continuing the development at the moment ( in fact I have not been part of the lab anymore for some time already).

A lot of the commits are actually merged from master though so it might appear that there is much more modifications than there are actually.

SeguinBe avatar May 15 '19 11:05 SeguinBe

We did a bit of merging today, things left to correct.

  • [x] check the performance between this branch and the old one to verify it is still working properly
  • [x] update the setup.py packages for the version numbers to be more flexible
  • [x] update the installation documentation so that pip install after tensorflow installation is the preferred method (reminder: tensorflow can be installed with anaconda or pip, then pip install dh-segment will not install tensorflow)
  • [ ] update the general documentation
  • [ ] update the demo, ideally a zip file containing training data and a config file.

SeguinBe avatar May 22 '19 13:05 SeguinBe

  • I have trained two models for each branch on two different tasks (baseline and page extraction). The optimal post-processing parameters seem to be different for the two branches, but models can achieve similar results.
  • The package versions are now more flexible in setup.py (in master).
  • Installation is now updated (pip install followed by conda's tensorflow installation) (in master).
  • Two examples of data generation, training and inference are now available in exps folder (master).

This branch seems ready to be merged with master.

solivr avatar Aug 14 '19 09:08 solivr