thuhoainguyen / kits23

The official repository of the 2023 Kidney Tumor Segmentation Challenge (KiTS23)
MIT License
0 stars 0 forks source link

Add debugging informations #5

Closed anhtuduong closed 4 weeks ago

anhtuduong commented 1 month ago

When executing any code in the terminal, we want to print out the more info the better for understanding and debugging the execution. We can just use function print() in python to print out the info we need. In practice we should have a way to print out the info but with different level: INFO, WARNING, ERROR. And all the informations will be put it into a log file so we can inspect that whenever we want. I will help you integrate this in the code.

anhtuduong commented 1 month ago

@thuhoainguyen I just added an utility called log.py. Remember to use git pull to pull the update i made before continuing to work!

thuhoainguyen commented 1 month ago

@anhtuduong I tried git status to see what you changed, however, I see no log.py file added:

image
thuhoainguyen commented 1 month ago

@anhtuduong the file name "dataset_missingfiles" is the dataset file, I just renamed it because I am trying to download again the dataset file from terminal which didn't work out.

anhtuduong commented 1 month ago

@thuhoainguyen You should not rename that

anhtuduong commented 1 month ago

@thuhoainguyen I implemented the log.py but you have to use command git pull to pull the update. For now you should not worry about this debugging utility because I will do it for you.

thuhoainguyen commented 1 month ago

Ah I got that. I just git pull it

image
anhtuduong commented 1 month ago

@thuhoainguyen Please pull the latest update, I splitted the function resample_image to different file. Also I started to add some debugging information. This way when the code executes, we can see more info in the terminal. Please continue to add.

thuhoainguyen commented 1 month ago

@anhtuduong I am not sure how to execute the log.py file, can you be more specific on what should i do now?

anhtuduong commented 1 month ago

@thuhoainguyen You don't execute that log file, please try to read it (very short) to understand what it does. Then go to the other 2 files where I actually use the log.py

thuhoainguyen commented 1 month ago

@anhtuduong I see what is the log file will do in the resample_image.py file. It will show the info or basically what each code line is doing so we can keep track of the workflow, the error, etc.