Skip to content

Commit

Permalink
Use wrapper func to skip empty tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jommarin committed Jul 21, 2023
1 parent ef891fa commit dfa1ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepliif/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def inference(img, tile_size, overlap_size, model_path, use_torchserve=False, ea
for i in range(cols):
for j in range(rows):
tile = extract_tile(rescaled, tile_size, overlap_size, i, j)
res = run_fn(tile, model_path, eager_mode)
res = run_wrapper(tile, run_fn, model_path, eager_mode)

stitch_tile(images['Hema'], res['G1'], tile_size, overlap_size, i, j)
stitch_tile(images['DAPI'], res['G2'], tile_size, overlap_size, i, j)
Expand Down

0 comments on commit dfa1ab8

Please sign in to comment.