Closed anhtuduong closed 5 months ago
@anhtuduong I updated the variable in the code as below:
Before:
After:
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:
@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:
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.
@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.
@thuhoainguyen I don't understand what you mean... Do you understand what that line of code does?
@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.
@thuhoainguyen I have resolve all the wrong paths for you. Use git pull
to update
Now you have the histogram file, please update the variable
hist_path
in the code. @thuhoainguyen