Image Labeler froze. Now Unable to read the file...File might be corrupt.

3 visualizaciones (últimos 30 días)
Péter
Péter el 25 de Nov. de 2023
Comentada: Walter Roberson el 25 de Nov. de 2023
Hi,
I'm working on an image segmentation project and I was using the Image Labeler app to label every single pixel, I've already done on 60 images when the MATLAB froze. I tried to click on the Save Session, then I restarted the computer, but MATLAB is no longer able to open the file.
  • In case I try to open the session from the Image Labeler app the message is: Unable to read [.....] File might be corrupt.
  • In case I try to open the session mat file from its folder, I get this messages in the command window :
Warning: Unable to read some of the variables due to unknown MAT-file error.
> In matfinfo (line 9)
In finfo>fetchDescriptions (line 262)
In finfo (line 79)
In uiimport/gatherFilePreviewData (line 419)
In uiimport (line 260)
Error using load
Unknown text on line number 1 of ASCII file C:\Users\User\Desktop\BME Tananyag\3. félév\Diplomamunka
A\MATLAB-kódok\imageLabelingSession.mat
"".
Error in uiimport/runImportdata (line 470)
datastruct = load('-ascii', fileAbsolutePath);
Error in uiimport/gatherFilePreviewData (line 438)
[datastruct, textDelimiter, headerLines]= runImportdata(fileAbsolutePath, type);
Error in uiimport (line 260)
gatherFilePreviewData(fileAbsolutePath);
I’m a beginner MATLAB user, so please tell me what to do from step to step.
Version: R2022b
Please help me ASAP! Thank you very much in advance.
  4 comentarios
Péter
Péter el 25 de Nov. de 2023
Based on this setting, there should be a backup file, but it isn't in the imageLabelingSession.mat 's folder.
Walter Roberson
Walter Roberson el 25 de Nov. de 2023
That file contains only binary zeros -- there is absolutely nothing that can be recovered from that file.
If you happened to have a copy of the file stored on OneDrive or you enabled version history in Windows, then see https://www.wired.com/story/how-to-recover-file-versions/
The built-in Windows File History feature is described more at https://www.pcmag.com/how-to/how-to-back-up-restore-your-documents-in-windows-10
Files History does not do a full backup of drives. For that, you either need a third-party backup program or else you need to use "Backup and Restore (Windows 7)" -- a tool that is no longer promoted but is still available; https://www.minitool.com/news/backup-and-restore-windows-7.html
Note that all of these have to be set up in advance, except for the ability to restore files that have been saved to OneDrive (but even then you have to have saved the file to OneDrive)
If you did not set up any backups and you did not happen to save the file to OneDrive, then you might well be out of luck (unless you just happened to have set up Google Drive -- or you happened to have saved the file on MATLAB Drive)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by