Spaces:
Runtime error
Runtime error
upload
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- app.py +2 -1
- train/__pycache__/__init__.cpython-38.pyc +0 -0
- train/scripts/__pycache__/__init__.cpython-38.pyc +0 -0
- train/scripts/__pycache__/generate_lm_multiple.cpython-38.pyc +0 -0
- train/tencentpretrain/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/__pycache__/model_loader.cpython-38.pyc +0 -0
- train/tencentpretrain/__pycache__/opts.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/dual_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/masked_patch_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/patch_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/pos_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/seg_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/sinusoidalpos_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/speech_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/word_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/embeddings/__pycache__/word_patch_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/encoders/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/encoders/__pycache__/cnn_encoder.cpython-38.pyc +0 -0
- train/tencentpretrain/encoders/__pycache__/dual_encoder.cpython-38.pyc +0 -0
- train/tencentpretrain/encoders/__pycache__/rnn_encoder.cpython-38.pyc +0 -0
- train/tencentpretrain/encoders/__pycache__/transformer_encoder.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/layer_norm.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/multi_headed_attn.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/position_ffn.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/relative_position_embedding.cpython-38.pyc +0 -0
- train/tencentpretrain/layers/__pycache__/transformer.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/bilm_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/clr_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/cls_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/lm_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/mlm_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/sp_target.cpython-38.pyc +0 -0
- train/tencentpretrain/targets/__pycache__/target.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/__init__.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/act_fun.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/adversarial.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/augment.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/config.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/constants.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/dataloader.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/dataset.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/mask.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/misc.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/optimizers.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/rope.cpython-38.pyc +0 -0
- train/tencentpretrain/utils/__pycache__/seed.cpython-38.pyc +0 -0
app.py
CHANGED
@@ -394,7 +394,7 @@ with block:
|
|
394 |
|
395 |
gr.Markdown("### Params to synthesize images")
|
396 |
object_prompt = gr.Textbox(label="Context Prompt", placeholder="in suit", visible=True)
|
397 |
-
num_samples = gr.Slider(label="Batch Size", minimum=1, maximum=
|
398 |
ddim_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
399 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)
|
400 |
images_button = gr.Button(value="Synthesize images using ControlNet", visible=False)
|
@@ -420,5 +420,6 @@ with block:
|
|
420 |
ips = [gen_type, num_samples, ddim_steps, object_prompt, seed, text_container, sequence_container]
|
421 |
images_button.click(fn=generate_images, inputs=ips, outputs=[result_gallery, raw_sequence, text_container, sequence_container])
|
422 |
|
|
|
423 |
block.launch()
|
424 |
|
|
|
394 |
|
395 |
gr.Markdown("### Params to synthesize images")
|
396 |
object_prompt = gr.Textbox(label="Context Prompt", placeholder="in suit", visible=True)
|
397 |
+
num_samples = gr.Slider(label="Batch Size", minimum=1, maximum=2, value=1, step=1)
|
398 |
ddim_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
399 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)
|
400 |
images_button = gr.Button(value="Synthesize images using ControlNet", visible=False)
|
|
|
420 |
ips = [gen_type, num_samples, ddim_steps, object_prompt, seed, text_container, sequence_container]
|
421 |
images_button.click(fn=generate_images, inputs=ips, outputs=[result_gallery, raw_sequence, text_container, sequence_container])
|
422 |
|
423 |
+
block.queue(concurrency_count=1)
|
424 |
block.launch()
|
425 |
|
train/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/__pycache__/__init__.cpython-38.pyc and b/train/__pycache__/__init__.cpython-38.pyc differ
|
|
train/scripts/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/scripts/__pycache__/__init__.cpython-38.pyc and b/train/scripts/__pycache__/__init__.cpython-38.pyc differ
|
|
train/scripts/__pycache__/generate_lm_multiple.cpython-38.pyc
CHANGED
Binary files a/train/scripts/__pycache__/generate_lm_multiple.cpython-38.pyc and b/train/scripts/__pycache__/generate_lm_multiple.cpython-38.pyc differ
|
|
train/tencentpretrain/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/__pycache__/model_loader.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/__pycache__/model_loader.cpython-38.pyc and b/train/tencentpretrain/__pycache__/model_loader.cpython-38.pyc differ
|
|
train/tencentpretrain/__pycache__/opts.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/__pycache__/opts.cpython-38.pyc and b/train/tencentpretrain/__pycache__/opts.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/dual_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/dual_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/dual_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/masked_patch_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/masked_patch_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/masked_patch_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/patch_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/patch_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/patch_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/pos_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/pos_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/pos_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/seg_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/seg_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/seg_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/sinusoidalpos_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/sinusoidalpos_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/sinusoidalpos_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/speech_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/speech_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/speech_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/word_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/word_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/word_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/embeddings/__pycache__/word_patch_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/embeddings/__pycache__/word_patch_embedding.cpython-38.pyc and b/train/tencentpretrain/embeddings/__pycache__/word_patch_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/encoders/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/encoders/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/encoders/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/encoders/__pycache__/cnn_encoder.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/encoders/__pycache__/cnn_encoder.cpython-38.pyc and b/train/tencentpretrain/encoders/__pycache__/cnn_encoder.cpython-38.pyc differ
|
|
train/tencentpretrain/encoders/__pycache__/dual_encoder.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/encoders/__pycache__/dual_encoder.cpython-38.pyc and b/train/tencentpretrain/encoders/__pycache__/dual_encoder.cpython-38.pyc differ
|
|
train/tencentpretrain/encoders/__pycache__/rnn_encoder.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/encoders/__pycache__/rnn_encoder.cpython-38.pyc and b/train/tencentpretrain/encoders/__pycache__/rnn_encoder.cpython-38.pyc differ
|
|
train/tencentpretrain/encoders/__pycache__/transformer_encoder.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/encoders/__pycache__/transformer_encoder.cpython-38.pyc and b/train/tencentpretrain/encoders/__pycache__/transformer_encoder.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/layer_norm.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/layer_norm.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/layer_norm.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/multi_headed_attn.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/multi_headed_attn.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/multi_headed_attn.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/position_ffn.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/position_ffn.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/position_ffn.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/relative_position_embedding.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/relative_position_embedding.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/relative_position_embedding.cpython-38.pyc differ
|
|
train/tencentpretrain/layers/__pycache__/transformer.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/layers/__pycache__/transformer.cpython-38.pyc and b/train/tencentpretrain/layers/__pycache__/transformer.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/bilm_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/bilm_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/bilm_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/clr_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/clr_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/clr_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/cls_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/cls_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/cls_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/lm_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/lm_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/lm_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/mlm_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/mlm_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/mlm_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/sp_target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/sp_target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/sp_target.cpython-38.pyc differ
|
|
train/tencentpretrain/targets/__pycache__/target.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/targets/__pycache__/target.cpython-38.pyc and b/train/tencentpretrain/targets/__pycache__/target.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/__init__.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/__init__.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/act_fun.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/act_fun.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/act_fun.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/adversarial.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/adversarial.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/adversarial.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/augment.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/augment.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/augment.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/config.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/config.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/config.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/constants.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/constants.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/constants.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/dataloader.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/dataloader.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/dataloader.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/dataset.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/dataset.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/dataset.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/mask.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/mask.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/mask.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/misc.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/misc.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/misc.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/optimizers.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/optimizers.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/optimizers.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/rope.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/rope.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/rope.cpython-38.pyc differ
|
|
train/tencentpretrain/utils/__pycache__/seed.cpython-38.pyc
CHANGED
Binary files a/train/tencentpretrain/utils/__pycache__/seed.cpython-38.pyc and b/train/tencentpretrain/utils/__pycache__/seed.cpython-38.pyc differ
|
|