tobiasvanderwerff / full-page-handwriting-recognition

Unofficial implementation of the paper "Full Page Handwriting Recognition via Image to Sequence Extraction" by Singh et al. (2021).
MIT License
51 stars 5 forks source link

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\C:\\Users\\harsh\\Downloads\\formsA-D\\formsA-D' #10

Closed pontifex03 closed 1 year ago

pontifex03 commented 1 year ago

C:\Users\harsh\anaconda3\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Global seed set to 1337 Traceback (most recent call last): File "C:\Users\harsh\full-page-handwriting-recognition\src\main.py", line 326, in main(args) File "C:\Users\harsh\full-page-handwriting-recognition\src\main.py", line 57, in main ds = IAMDataset( ^^^^^^^^^^^ File "C:\Users\harsh\full-page-handwriting-recognition\src\data.py", line 76, in init self.data = self._get_forms() ^^^^^^^^^^^^^^^^^ File "C:\Users\harsh\full-page-handwriting-recognition\src\data.py", line 219, in _get_forms for img_path in dr.iterdir(): File "C:\Users\harsh\anaconda3\Lib\pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\C:\Users\harsh\Downloads\formsA-D\formsA-D'

any help would be appreciated

tobiasvanderwerff commented 1 year ago

Hi, it looks like there may be something wrong with the path you entered (the '\C:\Users\harsh\Downloads\formsA-D\formsA-D' string). Is there perhaps a typo in there? I notice there is a ' \ ' at the beginning of the path, for example. Maybe try removing that? Let me know if that works.

pontifex03 commented 1 year ago

Screenshot 2023-09-07 193431

can you please what is wrong in this?

tobiasvanderwerff commented 1 year ago

It seems to have something to do with the formatting of the string. Perhaps the " \ " characters should be escaped. You could try using double slashes instead of single ones: 'C:\\Users\\harsh\\Downloads\\formsA-D\\formsA-D'

pontifex03 commented 1 year ago

No luck ..its showing the same thing !!!

tobiasvanderwerff commented 1 year ago

Is the folder correct? I believe --data_dir is a folder that should contain 3 other folders: "formsA-D", "formsE-H", "formsI-Z". You could try removing the "formsA-D" from the string, i.e. C:\Users\harsh\Downloads\

pontifex03 commented 1 year ago

Screenshot 2023-09-07 232306

pontifex03 commented 1 year ago

so i put all 3 in that folder still the same

tobiasvanderwerff commented 1 year ago

The formatting of the path looks strange now. I would try double slash again, and if that doesn't work, try it with double quotes instead of single quotes.

pontifex03 commented 1 year ago

Screenshot 2023-09-08 011048

pontifex03 commented 1 year ago

its with double quotes and double slash i have formsA-D, formsE-H, formsI-Z these 3 folders in folder called data_dir whose path is C:\Users\harsh\Downloads\data_dir

tobiasvanderwerff commented 1 year ago

It looks like you're missing files from the IAM dataset, in this case the files that should be in a folder called 'xml'. Make sure you have all the files from IAM in the data_dir folder.

pontifex03 commented 1 year ago

Thankyou so much for the help ....its running now , how much time it takes to train ? I have nvidia rtx 3050 , 4gb graphics ; 16gb ram

tobiasvanderwerff commented 1 year ago

No worries, glad to hear it's working for you.

Hard to say how long it will take on your specific hardware. I remember I was able to train the model in under 12 hours on a V100 GPU.