Teichlab / TissueTag

Python package to interactively annotate histological images within a jupyter notebook
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Retrieving saved annotations (after Jupyter server is closed) #23

Open bryanrhelm opened 2 months ago

bryanrhelm commented 2 months ago

Hi! I have been working with TissueTag, and I've noticed that I lose my annotation progress for the data that I'm working on when I shut down my Jupyter server that runs the analysis script . However, following the code in the demo, I saved those annotations before closing:

(Example from Demo) Save annoations isExist = os.path.exists(path+'tissue_annotations2') if not(isExist): os.mkdir(path+'/tissue_annotations/')

tt.save_annotation( folder=path+'/tissue_annotations/', label_image=labels, file_name='annotations', anno_names=list(annodict.keys()), anno_colors=list(annodict.values()), ppm = ppm_anno ) print("done")

I was curious how to load these annotations back into the manual annotator for additional edits? Having a bit of trouble getting my annotations to load back in. Did I miss this is in the materials? Any help would be greatly appreciated! Thanks! B