Skip to content

Commit

Permalink
print some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Feb 22, 2024
1 parent c974d1b commit da97195
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wsinfer/cli/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,12 @@ def run(
with open(run_metadata_outpath, "w") as f:
json.dump(run_metadata, f, indent=2)

click.secho("Finished.", fg="green")

click.echo("Writing inference results to GeoJSON files")
csvs = list((results_dir / "model-outputs-csv").glob("*.csv"))
write_geojsons(csvs, results_dir, num_workers)

if qupath:
click.echo("Creating QuPath project with results")
make_qupath_project(wsi_dir, results_dir)

click.secho("Finished.", fg="green")

0 comments on commit da97195

Please sign in to comment.