thuhoainguyen / kits23

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

Update hist path in the code #4

Closed anhtuduong closed 4 weeks ago

anhtuduong commented 1 month ago

Now you have the histogram file, please update the variable hist_path in the code. @thuhoainguyen

thuhoainguyen commented 1 month ago

@anhtuduong I updated the variable in the code as below:

Before:

image

After:

image

As I understand, I will have to change all the original Window version path like "C:\Data\2023_09_KidneyCancer\kits23-main" into new variables. However, I'm not sure what this path should be updated into ? Please help :( 'C:\\Data\\2023_09_KidneyCancer\\kits23-main'

All The code block cd to kits23-main that have that path are shown below:

image image image image
anhtuduong commented 1 month ago

@thuhoainguyen First, if you capture the screenshot of the code and put it here as an image, it will be difficult for me to copy that code to comment. Instead you should copy the code and paste it here within the ``` block, for example:

Image


dataset_path is the folder name of the dataset, and hist_path is the histogram file name. So if you set:

dataset_path = 'dataset_path'
hist_path = 'hist_path'

The script won't find any folder name 'dataset_path' and won't find any file name 'hist_path'. Instead:

dataset_path = 'dataset' # The correct folder name of the dataset
hist_path = 'hists/histogram_counts.npy'

'C:\\Data\\2023_09_KidneyCancer\\kits23-main' refers to the project root folder. They are trying to create a new folder with suffix date-time to store new things. Try to look up GG to understand how you can create new folder with new suffix from the root project folder.

thuhoainguyen commented 1 month ago

@anhtuduong I understand it as change completely the code os.path.join('C:\\Data\\2023_09_KidneyCancer\\kits23-main', self.date_str, case_id, "slices") to something else. What I supposed to do was just to change the path C:\\Data\\2023_09_KidneyCancer\\kits23-main to something so this will be easier for me.

anhtuduong commented 1 month ago

@thuhoainguyen I don't understand what you mean... Do you understand what that line of code does?

thuhoainguyen commented 1 month ago

@anhtuduong As I research on the Internet, the code os.path.join('C:\\Data\\2023_09_KidneyCancer\\kits23-main', self.date_str, case_id, "slices") will join the path of the main folder + date + case + slices.

anhtuduong commented 1 month ago

@thuhoainguyen I have resolve all the wrong paths for you. Use git pull to update