* Removed unnecessary code

* Added description about --seamless
This commit is contained in:
prixt
2022-09-03 22:39:35 +09:00
parent 02bee4fdb1
commit a61e49bc97
2 changed files with 10 additions and 8 deletions

View File

@ -87,6 +87,9 @@ def main():
print(f'{e}. Aborting.')
sys.exit(-1)
if opt.seamless:
print(">> changed to seamless tiling mode")
# preload the model
tic = time.time()
t2i.load_model()
@ -94,14 +97,6 @@ def main():
f'>> model loaded in', '%4.2fs' % (time.time() - tic)
)
for m in t2i.model.modules():
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
m._orig_padding_mode = m.padding_mode
if opt.seamless:
m.padding_mode = 'circular'
if opt.seamless:
print(">> changed to seamless tiling mode")
if not infile:
print(
"\n* Initialization done! Awaiting your command (-h for help, 'q' to quit)"