Skip to content

Commit a61e49b

Browse files
committed
* Removed unnecessary code
* Added description about --seamless
1 parent 02bee4f commit a61e49b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ You may also pass a -v<count> option to generate count variants on the original
131131
passing the first generated image back into img2img the requested number of times. It generates interesting
132132
variants.
133133

134+
## Seamless Tiling
135+
136+
The seamless tiling mode causes generated images to be seamlessly tile with itself. To use it, add the --seamless option when starting the script which will result in all generated images to tile, or for each dream> prompt as shown here:
137+
```
138+
dream> "pond garden with lotus by claude monet" --seamless -s100 -n4
139+
```
140+
134141
## GFPGAN and Real-ESRGAN Support
135142

136143
The script also provides the ability to do face restoration and

scripts/dream.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,16 @@ def main():
8787
print(f'{e}. Aborting.')
8888
sys.exit(-1)
8989

90+
if opt.seamless:
91+
print(">> changed to seamless tiling mode")
92+
9093
# preload the model
9194
tic = time.time()
9295
t2i.load_model()
9396
print(
9497
f'>> model loaded in', '%4.2fs' % (time.time() - tic)
9598
)
9699

97-
for m in t2i.model.modules():
98-
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
99-
m._orig_padding_mode = m.padding_mode
100-
if opt.seamless:
101-
m.padding_mode = 'circular'
102-
if opt.seamless:
103-
print(">> changed to seamless tiling mode")
104-
105100
if not infile:
106101
print(
107102
"\n* Initialization done! Awaiting your command (-h for help, 'q' to quit)"

0 commit comments

Comments
 (0)