You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue with the latest_weights_file_path() function in config.py.
The original code uses weights_files.sort() to sort the files and selects the last one as the latest file. However, sort() uses lexicographical (dictionary) order, which can lead to incorrect results in some cases.
Hi @hkproj ,
I found an issue with the latest_weights_file_path() function in config.py.
The original code uses weights_files.sort() to sort the files and selects the last one as the latest file. However, sort() uses lexicographical (dictionary) order, which can lead to incorrect results in some cases.
Here is the original code:
A corrected version, suggested by ChatGPT, is as follows:
The text was updated successfully, but these errors were encountered: