Skip to content

Error when training the dataset. Please help! #39

@venuraaa

Description

@venuraaa

Could someone please help me. Im getting the error and I cannot understand why. I get it when I run the code:
python3 create_db.py --output data/imdb_db.mat --db imdb --img_size 64

Is it something to do with a dependency not installed?
Please help me!

Code Error in full;

(EnVee) D:\FYP\FYP Platforms\SSR-Net-master\data>python TYY_IMDBWIKI_create_db.py --db imdb --output imdb.npz
Traceback (most recent call last):
File "TYY_IMDBWIKI_create_db.py", line 61, in
main()
File "TYY_IMDBWIKI_create_db.py", line 34, in main
full_path, dob, gender, photo_taken, face_score, second_face_score, age = get_meta(mat_path, db)
File "D:\FYP\FYP Platforms\SSR-Net-master\data\TYY_utils.py", line 17, in get_meta
meta = loadmat(mat_path)
File "C:\Users\VenuraKetipearachchi\Anaconda3\envs\EnVee\lib\site-packages\scipy\io\matlab\mio.py", line 142, in loadmat
matfile_dict = MR.get_variables(variable_names)
File "C:\Users\VenuraKetipearachchi\Anaconda3\envs\EnVee\lib\site-packages\scipy\io\matlab\mio5.py", line 272, in get_variables
hdr, next_position = self.read_var_header()
File "C:\Users\VenuraKetipearachchi\Anaconda3\envs\EnVee\lib\site-packages\scipy\io\matlab\mio5.py", line 226, in read_var_header
mdtype, byte_count = self._matrix_reader.read_full_tag()
File "mio5_utils.pyx", line 548, in scipy.io.matlab.mio5_utils.VarReader5.read_full_tag
File "mio5_utils.pyx", line 556, in scipy.io.matlab.mio5_utils.VarReader5.cread_full_tag
File "streams.pyx", line 171, in scipy.io.matlab.streams.ZlibInputStream.read_into
File "streams.pyx", line 158, in scipy.io.matlab.streams.ZlibInputStream._fill_buffer
zlib.error: Error -3 while decompressing data: invalid code lengths set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions