mueller-lab / EmbryoNet

EmbryoNet initial commit
GNU General Public License v3.0
15 stars 0 forks source link

How to Get the Json of run_model? #17

Open Leondyw opened 1 month ago

Leondyw commented 1 month ago

Hello! Professors,

I really appreciate your work for detecting signaling pathways . I would like to use the run_model in Train_Eval/tools/Run .And I don't know how to get the json file with "Algorithm" , I get json by fishclassfier or FishLabeler.

 python run_model -c <path_to_config.json>  -i <path_to_folder_with_images> -t <max_timestamp> -o <save_path> 

I would appreciate it if you could tell me the question about json file.Thanks in advance

Leondyw commented 1 month ago

L002_IMG_1512 This is the picutre that I give . I input this

python run_model.py  -c D:\embryo\EmbryoClassifier_CPU\DefaultConfigGPU.json  -i D:\EmbryoNet\24h-5\images -t 100 -o D:\EmbryoNet

but it output this

Traceback (most recent call last):
  File "D:\EmbryoNet_result\Train_Eval\tools\Run\run_model.py", line 307, in <module>
    circles = cv2.HoughCircles(image_for_detection, cv2.HOUGH_GRADIENT, *hough_params)[0]
TypeError: 'NoneType' object is not subscriptable

How can I solve this? Thank you so much

hagorms commented 1 month ago

Hello. Hough Circles algorithm can not find an embryo. You need to give correct parameters. I will reply a bit later to make your classification correct

hagorms commented 1 week ago

@Leondyw Could you please send me some pictures by email please? I will write here a script to run them + i will write a guide on how run hough circles. my email is cvfn.corporatitve@gmail.com