Exemplo n.º 1
0
 def test_single_staffsize(
     self, file='../samples/sonata.png', staffspace=18, staffthick=3):
   """Tests the global run count again known values for a page."""
   with self.test_session() as sess:
     p = page.Page.for_path(file)
     tf.train.start_queue_runners(sess=sess)
     staffsize.get_staffsize(p)
     assert sess.run([p.staff_space, p.staff_thick, p.staff_dist]) == \
         [staffspace, staffthick, staffspace + staffthick]
Exemplo n.º 2
0
 def test_ossia_single_staffsize(self, file='../samples/trio.png'):
   with self.test_session() as sess:
     p = page.Page.for_path(file)
     tf.train.start_queue_runners(sess=sess)
     assert sess.run([staffsize.get_staffsize(p)]) == [-1]