Spaces:
Build error
Build error
Update app.py
Browse files86 unmodified lines8788899091929311 unmodified lines10510610710810911086 unmodified linesexamples.append([prompt, negative_prompt, image])title = " # ControlLight: Light control through ControlNet and Depth Maps conditioning"with gr.Blocks() as demo:gr.Markdown(title)prompts = gr.Textbox(label='prompts')11 unmodified linesoutputs=out_image,fn=infer,cache_examples=True)btn.click(fn=infer, inputs=[prompts,negative_prompts, in_image] , outputs=out_image)demo.launch()86 unmodified lines8788899091929394959697989910010110210310410510610711 unmodified lines11912012112212312412586 unmodified linesexamples.append([prompt, negative_prompt, image])title = " # ControlLight: Light control through ControlNet and Depth Maps conditioning"info = '''# ControlLight: Light control through ControlNet and Depth Maps conditioningWe propose a ControlNet using depth maps conditioning that is capable of controlling the light direction in a scene while trying to maintain the scene integrity.The model was trained on [VIDIT dataset](https://huggingface.co/datasets/Nahrawy/VIDIT-Depth-ControlNet) and [A Dataset of Flash and Ambient Illumination Pairs from the Crowd](https://huggingface.co/datasets/Nahrawy/FAID-Depth-ControlNet) as a part of the [Jax Diffusers Event](https://huggingface.co/jax-diffusers-event).Due to the limited available data the model is clearly overfit, but it serves as a proof of concept to what can be further achieved using enough data.A large part of the training data is synthetic so we encourage further training using synthetically generated scenes, using Unreal engine for example.The WandB training logs can be found [here](https://wandb.ai/hassanelnahrawy/controlnet-VIDIT-FAID), it's worth noting that the model was left to overfit for experimentation and it's advised to use the 8K steps weights or prior weights.This project is a joint work between [ParityError](https://huggingface.co/ParityError) and [Nahrawy](https://huggingface.co/Nahrawy).'''with gr.Blocks() as demo:gr.Markdown(title)prompts = gr.Textbox(label='prompts')11 unmodified linesoutputs=out_image,fn=infer,cache_examples=True)gr.Makdown(info)btn.click(fn=infer, inputs=[prompts,negative_prompts, in_image] , outputs=out_image)demo.launch()
app.py+15