%load_ext autoreload
%autoreload 2
basedir = '/groups/turaga/home/speisera/share_TUM/FishSIM/sim_density_fac1_2/'
from decode_fish.funcs.file_io import load_sim_fish
img, gt_df, fq_nog_df, fq_gmm_df = load_sim_fish(basedir, 2000, 'random', 'NR', 0)
# model_out = torch.load('../data/model_output.pt')
# model_preds = SIPostProcpx_size_zyx=size=[100, 100, 300]).forward(model_out)
perf_df, matches, _ = matching(gt_df, fq_gmm_df, tolerance=500)
preds = fq_gmm_df
perf_df, matches, _ = matching(gt_df, preds, tolerance=500)
!nbdev_build_lib