caoyunkang / CDO

[TII 2023] Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization
MIT License
61 stars 7 forks source link

Path problems under Win #13

Open flyingtiger111 opened 4 months ago

flyingtiger111 commented 4 months ago

File "D:\Anaconda\envs\CDO\lib\shutil.py", line 121, in copyfile with open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\zzz/.cache\torch\hub\checkpoints\y4mKOuRSNGQQlp6wm_a9bF-UEQwp6a10xFCLhm4bqjDu6aSNW9yhDRM7qyx0vK0WTh42gEaniUVm3h7pg0H-W0yJff5qQtoAX7Zze4vOsqjoIthp-FW3nlfMD0-gcJi8IiVrMWqVOw2N3MbCud6uQQrTaEAvAdNjtjMpym1JghN-F060rSQKmgtq5R-wJe185IyW4-_c5_ItbhYpCyLxdqdEQ'

Respected scholars, can you help me with this question? I am very interested in your creative work.

Kebzzang commented 3 months ago

In the Registry Editor, you can change the default 256 character path length limitation (MAX_PATH).

flyingtiger111 commented 3 months ago

In the Registry Editor, you can change the default 256 character path length limitation (MAX_PATH).

Thanks for the answer, I made some adjustments in the original code to load the .pth file. This issue has been fixed.