If you see this error when starting the application:
Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain>
This happens because the automatic model download fails due to SSL certificate verification issues (often caused by corporate firewalls, proxies, or security software).
Follow these steps to manually download and install the SHARP model:
-
Open your web browser and download the model file directly:
- URL:
https://ml-site.cdn-apple.com/models/sharp/sharp_2572gikvuh.pt - File size: ~1.5 GB
- File name:
sharp_2572gikvuh.pt
- URL:
-
Save the file to your Downloads folder or any accessible location.
The application expects the model file to be in the PyTorch hub cache folder:
Windows:
C:\Users\<YOUR_USERNAME>\.cache\torch\hub\checkpoints\
macOS/Linux:
~/.cache/torch/hub/checkpoints/
Note: Replace <YOUR_USERNAME> with your actual Windows username.
If the checkpoints folder doesn't exist:
- Open File Explorer (Windows) or Finder (macOS)
- Navigate to:
- Windows:
C:\Users\<YOUR_USERNAME>\.cache\torch\hub\ - macOS/Linux:
~/.cache/torch/hub/
- Windows:
- Create a new folder named
checkpointsif it doesn't exist - If
.cachefolder doesn't exist, create the entire path:.cache\torch\hub\checkpoints\
Quick Windows Method:
- Press
Win + R - Type:
%USERPROFILE%\.cache\torch\hub\checkpoints - Press Enter (Windows will create folders if needed)
- If folder doesn't open, create it manually in File Explorer
- Copy the downloaded
sharp_2572gikvuh.ptfile - Paste it into the
checkpointsfolder - Verify the file is there:
- Full path should be:
C:\Users\<YOUR_USERNAME>\.cache\torch\hub\checkpoints\sharp_2572gikvuh.pt - File size should be ~1.5 GB
- Full path should be:
- Close the application completely
- Start it again
- The application will now find the model in the cache folder and load it automatically
After following these steps:
- First launch: The application should load the model from the cache folder (no download attempt)
- Check the Log: You should see "Loading model checkpoint..." and "Model loaded successfully" instead of SSL errors
- No more errors: The SSL certificate error should be gone
A future version of the application will allow you to specify the model file path directly in the settings, eliminating the need to use the cache folder.
- Check the file name: Must be exactly
sharp_2572gikvuh.pt(case-sensitive on Linux/macOS) - Check the path: Verify the full path matches exactly:
- Windows:
C:\Users\<USERNAME>\.cache\torch\hub\checkpoints\sharp_2572gikvuh.pt - macOS/Linux:
~/.cache/torch/hub/checkpoints/sharp_2572gikvuh.pt
- Windows:
- File permissions: Ensure the file is not read-only or locked
- Disk space: Ensure you have enough free space (~2 GB recommended)
If the browser download also fails:
- Try a different browser (Chrome, Firefox, Edge)
- Disable browser extensions temporarily
- Check firewall/proxy settings
- Use a VPN if behind a restrictive network
- Try downloading from a different network (mobile hotspot, etc.)
- Check the application log for detailed error messages
- Verify Python/PyTorch installation
- Ensure you have internet connectivity
- Contact support with the full error message from the log
- Model URL:
https://ml-site.cdn-apple.com/models/sharp/sharp_2572gikvuh.pt - Expected cache location: PyTorch hub cache (
~/.cache/torch/hub/checkpoints/on Unix,%USERPROFILE%\.cache\torch\hub\checkpoints\on Windows) - File format: PyTorch state dictionary (
.ptfile) - File size: ~1.5 GB (1,574,912,000 bytes)
Last Updated: January 2025
Applies to: Versions before SSL certificate fix