Spaces:
Build error
Build error
Nupur Kumari
commited on
Commit
•
294c8dc
1
Parent(s):
ddb7b56
update
Browse files- app.py +3 -3
- custom-diffusion-models/barn.bin +2 -2
- custom-diffusion-models/cat.bin +2 -2
- custom-diffusion-models/chair.bin +2 -2
- custom-diffusion-models/dog.bin +2 -2
- custom-diffusion-models/flower.bin +2 -2
- custom-diffusion-models/table.bin +2 -2
- custom-diffusion-models/teddybear.bin +2 -2
- custom-diffusion-models/tortoise_plushy.bin +2 -2
- custom-diffusion-models/wooden_pot.bin +2 -2
app.py
CHANGED
@@ -244,7 +244,7 @@ def create_training_demo(trainer: Trainer,
|
|
244 |
def find_weight_files() -> list[str]:
|
245 |
curr_dir = pathlib.Path(__file__).parent
|
246 |
paths = sorted(curr_dir.rglob('*.bin'))
|
247 |
-
paths = [path for path in paths if '.lfs' not in path
|
248 |
return [path.relative_to(curr_dir).as_posix() for path in paths]
|
249 |
|
250 |
|
@@ -298,14 +298,14 @@ def create_inference_demo(pipe: InferencePipeline) -> gr.Blocks:
|
|
298 |
minimum=0,
|
299 |
maximum=10.,
|
300 |
step=1,
|
301 |
-
value=
|
302 |
|
303 |
run_button = gr.Button('Generate')
|
304 |
|
305 |
gr.Markdown('''
|
306 |
- Models with names starting with "custom-diffusion-models/" are the pretrained models provided in the [original repo](https://github.com/adobe-research/custom-diffusion), and the ones with names starting with "results/delta.bin" are your trained models.
|
307 |
- After training, you can press "Reload Weight List" button to load your trained model names.
|
308 |
-
- Change
|
309 |
''')
|
310 |
with gr.Column():
|
311 |
result = gr.Image(label='Result')
|
|
|
244 |
def find_weight_files() -> list[str]:
|
245 |
curr_dir = pathlib.Path(__file__).parent
|
246 |
paths = sorted(curr_dir.rglob('*.bin'))
|
247 |
+
paths = [path for path in paths if '.lfs' not in str(path)]
|
248 |
return [path.relative_to(curr_dir).as_posix() for path in paths]
|
249 |
|
250 |
|
|
|
298 |
minimum=0,
|
299 |
maximum=10.,
|
300 |
step=1,
|
301 |
+
value=1)
|
302 |
|
303 |
run_button = gr.Button('Generate')
|
304 |
|
305 |
gr.Markdown('''
|
306 |
- Models with names starting with "custom-diffusion-models/" are the pretrained models provided in the [original repo](https://github.com/adobe-research/custom-diffusion), and the ones with names starting with "results/delta.bin" are your trained models.
|
307 |
- After training, you can press "Reload Weight List" button to load your trained model names.
|
308 |
+
- Change batch-size and number of steps for more and better samples.
|
309 |
''')
|
310 |
with gr.Column():
|
311 |
result = gr.Image(label='Result')
|
custom-diffusion-models/barn.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b200774e6929f9f51d0c0f3f1e13455853a703e5552d563b7a7aa98ab6ff942c
|
3 |
+
size 76690690
|
custom-diffusion-models/cat.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93899d5900e9af2a7cff824146981194859d5c62c637c47ae6c487e16668aa6e
|
3 |
+
size 76690690
|
custom-diffusion-models/chair.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a17c8e6b5b3d5f76c3b6792536113987a1de4958e107cfded31a6dd3f6d236b5
|
3 |
+
size 76690690
|
custom-diffusion-models/dog.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfacae58002ad0ac1a4e48bd98de9719a91038c4b55cd4caa721e3329460d6d4
|
3 |
+
size 76690690
|
custom-diffusion-models/flower.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c10d2361abfe98728f647cdbd3fa0506e872ad65e9591d70a3cf2b0eb94f5cac
|
3 |
+
size 76690690
|
custom-diffusion-models/table.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebea89e9d968f8bce8f06d9b881dacc5002edeca989a23ddf1473684219f87cb
|
3 |
+
size 76690690
|
custom-diffusion-models/teddybear.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c521048539a1b73a9d909f78f91fd776aa1441a12ae2358477660ad3eee1fcf0
|
3 |
+
size 76690690
|
custom-diffusion-models/tortoise_plushy.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f457414ca52d6ae71d96c432266c1ab4b53fe5c163055162a1f62318bc5f146
|
3 |
+
size 76690690
|
custom-diffusion-models/wooden_pot.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2affc64108eb7ba9c867fa3acbde15f8352b95bb24b0bb95dfeab913916d1db3
|
3 |
+
size 76690690
|