Skip to content

Commit

Permalink
Use truststore to fix SSL error in VMWare and GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
nagadomi committed Oct 17, 2024
1 parent 216a87e commit ca38e20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iw3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import os
os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
import truststore
truststore.inject_into_ssl()
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ timm
numba # only for iww3 sbs training
av >= 12.2.0
rembg # for --remove-bg
truststore
3 changes: 3 additions & 0 deletions waifu2x/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os
os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
import truststore
truststore.inject_into_ssl()

from .utils import Waifu2x
from . import models

Expand Down

0 comments on commit ca38e20

Please sign in to comment.