mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix module loading errors
1. Add ldm/dream/restoration/__init__.py file that was inadvertently not committed earlier. 2. Add '.' to sys.path to address weird mac problem reported in #723
This commit is contained in:
parent
19174949b6
commit
110c4f70df
5
ldm/dream/restoration/__init__.py
Normal file
5
ldm/dream/restoration/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
'''
|
||||
Initialization file for the ldm.dream.restoration package
|
||||
'''
|
||||
from .base import Restoration
|
||||
|
@ -8,6 +8,7 @@ import shlex
|
||||
import copy
|
||||
import warnings
|
||||
import time
|
||||
sys.path.append('.') # corrects a weird problem on Macs
|
||||
import ldm.dream.readline
|
||||
from ldm.dream.args import Args, metadata_dumps, metadata_from_png
|
||||
from ldm.dream.pngwriter import PngWriter
|
||||
@ -36,7 +37,6 @@ def main():
|
||||
sys.exit(-1)
|
||||
|
||||
print('* Initializing, be patient...\n')
|
||||
sys.path.append('.')
|
||||
from ldm.generate import Generate
|
||||
|
||||
# these two lines prevent a horrible warning message from appearing
|
||||
|
Loading…
Reference in New Issue
Block a user