"Getting 'failed finding central directory' error when trying to run PyTorch model on DigitalOcean Droplet"

I'm encountering an issue when attempting to run a PyTorch model on a DigitalOcean Droplet. I can successfully run the model locally, but when I try to execute it on the Droplet, I get the following error: "RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory". How can I resolve this issue?

Below is the command I'm using and the error message I'm receiving:

[Command]: docker run -p 8000:8000 docker-name] [Error message]:"RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory"

And here is my docker file

enter image description here

I have verified the model file path, and I am confident it is correct. The model file is provided as a zip archive and works flawlessly locally. But in Digital Ocean droplet, it throws error message above.

Upvotes: 0

Views: 298

Answers (0)

Related Questions