Closed lphilomena closed 4 months ago
Hmm, I cannot reproduce this. How did you setup your environment? Are you using the head version from github?
Hmm, I cannot reproduce this. How did you setup your environment? Are you using the head version from github?
Thanks! I download the head version and it works!
All data generators (and augmentation functions) are in the lacss.data package. Specifically for COCO annotation (which LIVECell uses), see coco_generator_full() (https://jiyuuchc.github.io/lacss/api/data/#lacss.data.generator.coco_generator_full)
Ji
From: lphilomena @.***> Sent: Tuesday, June 25, 2024 10:13 PM To: jiyuuchc/lacss Cc: Yu,Ji; Comment Subject: Re: [jiyuuchc/lacss] KeyError: 'fg_pred' when running the "lacss/experiments/livecell/semisupervised.py" (Issue #11)
Attention: This is an external email. Use caution responding, opening attachments or clicking on links.
Hmm, I cannot reproduce this. How did you setup your environment? Are you using the head version from github?
Thanks! I download the head version, it works! I have another question about the livecell dataset and semisupervised.py file. There is no "centroids" info in the livecell json file, while gt_locations=inputs["centroids"] exists in the semisupervised.py file. I understand the centroids could be calculated accroding to the gt masks, but i didn't see code in the semisupervised.py file to do this. Could you please tell me where did you do it?
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/jiyuuchc/lacss/issues/11*issuecomment-2190399866__;Iw!!Cn_UX_p3!gWUrO0n-67dfpXmILRkaXWhZypniAuPPv439ZXbdHKMSBZOzh-A1VSCMWYqvsGcd4U0SqO2oKI78lhcpQf5UcA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAKRPNS5SUUDSBHCB5MVIRLZJIPTRAVCNFSM6AAAAABIEZIK4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQGM4TSOBWGY__;!!Cn_UX_p3!gWUrO0n-67dfpXmILRkaXWhZypniAuPPv439ZXbdHKMSBZOzh-A1VSCMWYqvsGcd4U0SqO2oKI78lhcH0uuWCQ$. You are receiving this because you commented.Message ID: @.***>
close as resolved.
Hi, Sorry to bother you again. I run the "lacss/experiments/livecell/semisupervised.py" on the livecell dataset and met the following error:
Exception has occurred: KeyError 'fg_pred' File "/home/lacss/experiments/livecell/semisupervised.py", line 181, in run_training trainer.do_training( File "/home/lacss/experiments/livecell/semisupervised.py", line 197, in
app()
KeyError: 'fg_pred'
I tried to debug the semisupervised.py by the strategy: type = Core, however the program still did'nt set into the break points set in lacss_trainer.py. Could you please tell me how to fix the above error or how to debug it? Looking forward to your reply and thank you very much!