sayakpaul / MIRNet-TFLite-TRT

TensorFlow Lite models for MIRNet for low-light image enhancement.
128 stars 25 forks source link

Trained weights are not accessible now #4

Closed Pavel401 closed 1 year ago

Pavel401 commented 2 years ago

I am trying to run

inferer.download_weights('1sUlRD5MTRKKGxtqyYDpTv7T3jOW6aVAL'). Error Cannot retrieve the public link of the file. You may need to change the permission to 'Anyone with the link', or have had many accesses. You may still be able to access the file from the browser: https://drive.google.com/uc?id=1sUlRD5MTRKKGxtqyYDpTv7T3jOW6aVAL

But the file does not exist.

nixiam commented 1 year ago

Hi,

same issue. Thanks a lot

Pavel401 commented 1 year ago

Hi,

same issue. Thanks a lot

You can use the pre-trained model like below:

from huggingface_hub import from_pretrained_keras

model = from_pretrained_keras( "keras-io/lowlight-enhance-mirnet", compile=False)

check my project ,you will understand https://github.com/Pavel401/Project-Image-Enhancer/blob/master/app_funcs.py

soumik12345 commented 1 year ago

Thanks for sharing the solution @Pavel401. I had hosted the initial version of the model on a google drive, the access to which I had lost recently.