Closed GxHam closed 2 years ago
Hello @GxHam, you should only be loading the h5 files. Those are the ones used by deeplacut, whereas the CSV are just here to improve human readability.
Hi @jeylau,
It was a typo. I have been loading the machinelabels-inter0.h5. But because the order in the h5 is not sorted as illustrated in the csv, the labels do not line up with the images in napari.
Also, there is a bug where labels do not appear unless you load the entire folder first, then open the DLC plugin, and then reload the .h5 file. There seems to be an initialization problem with the dlc-napari plugin. If you load the folder after opening the DLC plugin, it refuses to read .h5 files and you have to restart napari.
Hi - I am having the same exact issue - when loading machineiters_iterx.h5 with napari, the labels do not line up with the images always. I have the same issue when I re-extract more frames to label. Please advise.
Did anybody figure out how to resolve this? I'm seeing that the image filenames in the csv are listed in alphabetical order. A lot of my images have numerical filenames, and are loaded into napari in numerical order. i.e. '1,10, 100, 2' vs '1, 2, 10, 100'.
Is there a setting to choose how napari sorts the images?
I found #63 which links to a commit that loads images with natsorted
instead of sorted
. I wondered if that could that be my problem, but changing it back to sorted
didn't help.
Hi,
I also noticed that when loading machinelabels.csv with napari, the labels do not line up with the images, as the extracted points from DLC are not in image order, but the images loaded are. Here is an illustration (below). Notice that the order of frames is not sorted in the csv, resulting in misalignment when loaded into napari.