taoxugit / AttnGAN

MIT License
1.34k stars 420 forks source link

How to run evaluation code using pre-trained model locally? #30

Open nitish11 opened 6 years ago

nitish11 commented 6 years ago

Hi,

I want to run evaluation code locally using pre-trained model on COCO-dataset. I don't want to create a docker container or any API based on call. I tried to run eval/eval.py by getting error related to azure setup. How to use existing code for "Generating images from the captions"?

skabbit commented 5 years ago

Got same question. If I run with my personal Azure Blob container, then I got azure.common.AzureMissingResourceHttpError: The specified container does not exist. ErrorCode: ContainerNotFound If I run with "attngan" container name, then azure.common.AzureException: HTTPSConnectionPool(host='attngan.blob.core.windows.net', port=443): Max retries exceeded with url: /images/2019/January/15/19_49_30_261376/bird_g0.png?comp=block&blockid=TURBd01EQXdNREF3TURBd01EQXdNREF3TURBd01EQXdNREF3TURBd01EQSUzRA%3D%3D (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x1364e99e8>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known

I'm not familiar with Azure, but it seems, that container was removed or proper personal container must be deployed before starting Flask app.

skabbit commented 5 years ago

Removed all Azure Blob usage, replacing with saving to disk. All works well.

lexical-kenobi commented 4 years ago

Removed all Azure Blob usage, replacing with saving to disk. All works well.

can you put your repo link

skabbit commented 4 years ago

Sorry, has no repo for that. Just some brutal changes on the disk. I could check it, if you want, but it has been changed massively for my purposes and experiments.