When generating a texture, two certificate issues caused it to fail.
and perhaps related, no current event loop was found.
On Mac with same specs, generate new texture.
>> cuda not available, using device cpu
Global seed set to 27427138
>> Loading model from /Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/models/ldm/stable-diffusion-v1/model.ckpt
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Downloading: "https://github.com/DagnyT/hardnet/raw/master/pretrained/train_liberty_with_aug/checkpoint_liberty_with_aug.pth" to /Users/***/.cache/torch/hub/checkpoints/checkpoint_liberty_with_aug.pth
Task exception was never retrieved
future: <Task finished name='Task-1' coro=<DreamTexture.dream_texture() done, defined at /Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/__init__.py:448> exception=URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))>
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/ssl.py", line 1070, in _create
self.do_handshake()
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/__init__.py", line 493, in dream_texture
t2i.load_model()
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/simplet2i.py", line 592, in load_model
model = self._load_model_from_config(config, self.weights)
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/simplet2i.py", line 664, in _load_model_from_config
model = instantiate_from_config(config.model)
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/util.py", line 89, in instantiate_from_config
return get_obj_from_str(config['target'])(
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/models/diffusion/ddpm.py", line 657, in __init__
self.instantiate_cond_stage(cond_stage_config)
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/models/diffusion/ddpm.py", line 768, in instantiate_cond_stage
model = instantiate_from_config(config)
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/util.py", line 89, in instantiate_from_config
return get_obj_from_str(config['target'])(
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/util.py", line 99, in get_obj_from_str
return getattr(importlib.import_module(module, package=None), cls)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/stable_diffusion/ldm/modules/encoders/modules.py", line 7, in <module>
import kornia
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/__init__.py", line 10, in <module>
from . import (
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/augmentation/__init__.py", line 43, in <module>
from .container import AugmentationSequential, ImageSequential, PatchSequential, VideoSequential
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/augmentation/container/__init__.py", line 1, in <module>
from .augment import AugmentationSequential
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/augmentation/container/augment.py", line 17, in <module>
from .patch import PatchSequential
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/augmentation/container/patch.py", line 9, in <module>
from kornia.contrib.extract_patches import extract_tensor_patches
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/contrib/__init__.py", line 4, in <module>
from .image_stitching import ImageStitcher
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/contrib/image_stitching.py", line 7, in <module>
from kornia.feature import LocalFeatureMatcher, LoFTR
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/feature/__init__.py", line 4, in <module>
from .integrated import (
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/feature/integrated.py", line 52, in <module>
class LAFDescriptor(nn.Module):
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/feature/integrated.py", line 65, in LAFDescriptor
patch_descriptor_module: nn.Module = HardNet(True),
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/kornia/feature/hardnet.py", line 66, in __init__
pretrained_dict = torch.hub.load_state_dict_from_url(
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/torch/hub.py", line 727, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/torch/hub.py", line 593, in download_url_to_file
u = urlopen(req)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Applications/Blender.app/Contents/Resources/3.3/python/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
/Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/async_loop.py:62: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()