orpatashnik/StyleCLIP

invalid load key, '<'.

snow1929 opened this issue · 1 comments

I run the "StyleCLIP_global.ipynb", and use the sample model.
But in the section of Upload an Image, the error occur.
It seem that the file of pt is broken and isn't match the format, right?
Is there anything that I have to notice to make the train successful?

image

UnpicklingError                           Traceback (most recent call last)
[<ipython-input-15-47e827a1dff2>](https://localhost:8080/#) in <module>
     18 
     19 model_path = EXPERIMENT_ARGS['model_path']
---> 20 ckpt = torch.load(model_path, map_location='cpu')
     21 opts = ckpt['opts']
     22 # pprint.pprint(opts)  # Display full options used

1 frames
[/usr/local/lib/python3.7/dist-packages/torch/serialization.py](https://localhost:8080/#) in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
    762             "functionality.")
    763 
--> 764     magic_number = pickle_module.load(f, **pickle_load_args)
    765     if magic_number != MAGIC_NUMBER:
    766         raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, '<'.