RazvanDu / DUCK-Net

Using DUCK-Net for polyp image segmentation. ( Nature Scientific Reports 2023 )
Creative Commons Attribution 4.0 International
101 stars 25 forks source link

Hi, I have a problem I can't solve #13

Closed wwweeeeiii closed 9 months ago

wwweeeeiii commented 9 months ago

屏幕截图 2024-01-22 134306 It shows that there is a utf-8 encoding problem, but I do not know how to solve it.I haven't changed the program, Sir. Do you have a good solution?

maenstru56 commented 9 months ago

Hello,

I think the most likely explanation for the error is the way the save paths are defined. Based on your operating system you might want to modify these lines of code: ct = datetime.now()

model_type = "DuckNet"

progresspath = 'ProgressFull/' + dataset_type + '_progress_csv_' + model_type + '_filters_' + str(filters) + '\' + str(ct) + '.csv' progressfullpath = 'ProgressFull/' + dataset_type + '_progress_' + model_type + '_filters_' + str(filters) + '\' + str(ct) + '.txt' plotpath = 'ProgressFull/' + dataset_type + '_progress_plot_' + model_type + '_filters_' + str(filters) + '\' + str(ct) + '.png' modelpath = 'ModelSaveTensorFlow/' + dataset_type + '/' + model_type + '_filters_' + str(filters) + '\' + str(ct)

I suggest that you try experimenting with the following:

I hope this helps!

wwweeeeiii commented 9 months ago

Thank you Sir, modification according to your method can run perfectly on Windows 11, it is very helpful for beginners like me, thank you again!