Spaces:
Running
on
Zero
Running
on
Zero
adjust chopping size and chopping batchsize
Browse files
app.py
CHANGED
@@ -54,6 +54,12 @@ def get_configs(num_steps=1, chopping_size=128, seed=12345):
|
|
54 |
configs.bs = 1
|
55 |
configs.seed = 12345
|
56 |
configs.basesr.chopping.pch_size = chopping_size
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
return configs
|
59 |
|
@@ -114,7 +120,7 @@ demo = gr.Interface(
|
|
114 |
label="Number of steps",
|
115 |
),
|
116 |
gr.Dropdown(
|
117 |
-
choices=[128, 256],
|
118 |
value=128,
|
119 |
label="Chopping size",
|
120 |
),
|
|
|
54 |
configs.bs = 1
|
55 |
configs.seed = 12345
|
56 |
configs.basesr.chopping.pch_size = chopping_size
|
57 |
+
if chopping_size == 128:
|
58 |
+
configs.basesr.chopping.extra_bs = 8
|
59 |
+
elif chopping_size == 256:
|
60 |
+
configs.basesr.chopping.extra_bs = 4
|
61 |
+
else:
|
62 |
+
configs.basesr.chopping.extra_bs = 1
|
63 |
|
64 |
return configs
|
65 |
|
|
|
120 |
label="Number of steps",
|
121 |
),
|
122 |
gr.Dropdown(
|
123 |
+
choices=[128, 256, 512],
|
124 |
value=128,
|
125 |
label="Chopping size",
|
126 |
),
|