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:
Lincoln Stein 2022-11-18 21:14:28 +00:00
parent 1f0220697b
commit 5fd7d71a7a
3 changed files with 0 additions and 5 deletions

View File

@ -65,7 +65,6 @@ class InvokeAIWebServer:
if 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(
__name__, static_url_path="", static_folder=os.path.join(args.root_dir,"frontend/dist")
)

View File

@ -111,13 +111,11 @@ class ModelCache(object):
Set the default model. The change will not take
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}'"
config = self.config
for model in config:
config[model].pop('default',None)
config[model_name]['default'] = True
print(f'DEBUG: after set_default_model():\n{OmegaConf.to_yaml(self.config)}')
def list_models(self) -> dict:
'''

View File

@ -31,8 +31,6 @@ class Outcrop(object):
preferred_seed = orig_opt.seed if orig_opt.seed >= 0 else seed
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(
opt.prompt,
seed = opt.seed or orig_opt.seed,