mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove several debugging messages
- dangling debug messages in several files, introduced during testing of the external root directory - these need to be removed before they are interpreted as errors by users
This commit is contained in:
parent
ce8c2bea2f
commit
38bdb440d0
@ -65,7 +65,6 @@ class InvokeAIWebServer:
|
|||||||
if opt.cors:
|
if opt.cors:
|
||||||
socketio_args["cors_allowed_origins"] = opt.cors
|
socketio_args["cors_allowed_origins"] = opt.cors
|
||||||
|
|
||||||
print(f'DEBUG: static_folder should be at {os.path.join(args.root_dir,"frontend/dist")}')
|
|
||||||
self.app = Flask(
|
self.app = Flask(
|
||||||
__name__, static_url_path="", static_folder=os.path.join(args.root_dir,"frontend/dist")
|
__name__, static_url_path="", static_folder=os.path.join(args.root_dir,"frontend/dist")
|
||||||
)
|
)
|
||||||
|
@ -111,13 +111,11 @@ class ModelCache(object):
|
|||||||
Set the default model. The change will not take
|
Set the default model. The change will not take
|
||||||
effect until you call model_cache.commit()
|
effect until you call model_cache.commit()
|
||||||
'''
|
'''
|
||||||
print(f'DEBUG: before set_default_model()\n{OmegaConf.to_yaml(self.config)}')
|
|
||||||
assert model_name in self.models,f"unknown model '{model_name}'"
|
assert model_name in self.models,f"unknown model '{model_name}'"
|
||||||
config = self.config
|
config = self.config
|
||||||
for model in config:
|
for model in config:
|
||||||
config[model].pop('default',None)
|
config[model].pop('default',None)
|
||||||
config[model_name]['default'] = True
|
config[model_name]['default'] = True
|
||||||
print(f'DEBUG: after set_default_model():\n{OmegaConf.to_yaml(self.config)}')
|
|
||||||
|
|
||||||
def list_models(self) -> dict:
|
def list_models(self) -> dict:
|
||||||
'''
|
'''
|
||||||
|
@ -31,8 +31,6 @@ class Outcrop(object):
|
|||||||
preferred_seed = orig_opt.seed if orig_opt.seed >= 0 else seed
|
preferred_seed = orig_opt.seed if orig_opt.seed >= 0 else seed
|
||||||
image_callback(img,preferred_seed,use_prefix=prefix,**kwargs)
|
image_callback(img,preferred_seed,use_prefix=prefix,**kwargs)
|
||||||
|
|
||||||
print(f'DEBUG: seed={opt.seed or orig_opt.seed}')
|
|
||||||
print(f'DEBUG: prompt={opt.prompt}')
|
|
||||||
result= self.generate.prompt2image(
|
result= self.generate.prompt2image(
|
||||||
opt.prompt,
|
opt.prompt,
|
||||||
seed = opt.seed or orig_opt.seed,
|
seed = opt.seed or orig_opt.seed,
|
||||||
|
Loading…
Reference in New Issue
Block a user