()
| 235 | |
| 236 | |
| 237 | def view_data(): |
| 238 | ds = RepeatedData(get_data('train'), -1) |
| 239 | ds.reset_state() |
| 240 | for ims, edgemaps in ds: |
| 241 | for im, edgemap in zip(ims, edgemaps): |
| 242 | assert im.shape[0] % 16 == 0 and im.shape[1] % 16 == 0, im.shape |
| 243 | cv2.imshow("im", im / 255.0) |
| 244 | cv2.waitKey(1000) |
| 245 | cv2.imshow("edge", edgemap) |
| 246 | cv2.waitKey(1000) |
| 247 | |
| 248 | |
| 249 | def get_config(): |
no test coverage detected