-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Here is my code:
from imgutils.restore import restore_with_scunet
from PIL import Image
img = Image.open("/tmp/in.tif")
denoised = restore_with_scunet(img)
denoised.save("/tmp/out.tif")
Offline (without internet connection) run after models were downloaded:
SCUNet Restore: 0%| | 0/175 [00:00<?, ?it/s]'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc0994482f0>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: b14e0afd-f09c-4cde-a0d9-3a644d430886)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
Retrying in 1s [Retry 1/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc0994160d0>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 3ee72248-07ff-47f2-b6df-72ffb267adc5)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
Retrying in 2s [Retry 2/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc099416710>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: a816f7b3-f6d8-40da-8147-3654102dfa8c)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
Retrying in 4s [Retry 3/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc099416990>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 79fb1d2d-12c7-417c-80df-7ad4a1ae748e)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
Retrying in 8s [Retry 4/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc099416d50>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 7d78e622-f48b-4310-bb78-e1ed0dad6a54)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
Retrying in 8s [Retry 5/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc099417110>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 4680ffd1-3030-4cd7-b43e-bc0d2c0b07b2)')' thrown while requesting HEAD https://huggingface.co/deepghs/image_restoration/resolve/main/SCUNet-GAN.onnx
SCUNet Restore: 100%|████████████████████████████████████████████████████████████████████| 175/175 [03:52<00:00, 1.33s/it]
Rebuild Tiles: 100%|███████████████████████████████████████████████████████████████████| 700/700 [00:00<00:00, 4152.51it/s
Is this possible to use models without accessing internet, if they were downloaded and checked before?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels