{"id":13488679,"url":"https://github.com/shariqfarooq123/LooseControl","last_synced_at":"2025-03-28T01:36:52.781Z","repository":{"id":211194758,"uuid":"728403065","full_name":"shariqfarooq123/LooseControl","owner":"shariqfarooq123","description":"Lifting ControlNet for Generalized Depth Conditioning","archived":false,"fork":false,"pushed_at":"2023-12-07T19:01:33.000Z","size":3188,"stargazers_count":449,"open_issues_count":16,"forks_count":28,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-10-31T00:40:07.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shariqfarooq123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-06T21:41:12.000Z","updated_at":"2024-10-22T07:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e09d87e-479f-4725-af59-8ce7de6b0f26","html_url":"https://github.com/shariqfarooq123/LooseControl","commit_stats":null,"previous_names":["shariqfarooq123/loosecontrol"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shariqfarooq123%2FLooseControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shariqfarooq123%2FLooseControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shariqfarooq123%2FLooseControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shariqfarooq123%2FLooseControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shariqfarooq123","download_url":"https://codeload.github.com/shariqfarooq123/LooseControl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245952884,"owners_count":20699553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:01:19.951Z","updated_at":"2025-03-28T01:36:52.776Z","avatar_url":"https://github.com/shariqfarooq123.png","language":"Python","funding_links":[],"categories":["Additional conditions"],"sub_categories":[],"readme":"# LooseControl: Lifting ControlNet for Generalized Depth Conditioning\n[![Open in Spaces](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg)](https://huggingface.co/spaces/shariqfarooq/LooseControl)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) ![PyTorch](https://img.shields.io/badge/PyTorch_v1.10.1-EE4C2C?\u0026logo=pytorch\u0026logoColor=white) \n\nThis is the official repository for our paper:\n\u003e#### [LooseControl: Lifting ControlNet for Generalized Depth Conditioning](#)\n\u003e ##### [Shariq Farooq Bhat](https://shariqfarooq123.github.io), [Niloy J. Mitra](http://www0.cs.ucl.ac.uk/staff/n.mitra/), [Peter Wonka](http://peterwonka.net/) \n\n\n[[Project Page]](https://shariqfarooq123.github.io/loose-control/) [[Paper]](https://arxiv.org/abs/2312.03079) [[Demo 🤗]](https://huggingface.co/spaces/shariqfarooq/LooseControl) [[Weights (3D Box Control)]](https://huggingface.co/shariqfarooq/loose-control-3dbox)\n\n![teaser](assets/looseControl_teaser.png)\n\n# Usage\n```bash\ngit clone https://github.com/shariqfarooq123/LooseControl \u0026\u0026 cd LooseControl\n```\n\nStart the UI:\n```python\ngradio app.py\n```\n\nor use via python API:\n\n```python\nfrom loosecontrol import LooseControlNet\n\nlcn = LooseControlNet(\"shariqfarooq/loose-control-3dbox\")\n\nboxy_depth = ...\nprompt = \"A photo of a snowman in a desert\"\nnegative_prompt = \"blurry, text, caption, lowquality,lowresolution, low res, grainy, ugly\"\n\n\ngen_image_1 = lcn(prompt, negative_prompt=negative_prompt, control_image=boxy_depth)\n\n```\n\nStyle preserving edits:\n```python\n# Fix the 'style' and edit\n# Edit 'boxy_depth' -\u003e 'boxy_depth_edited'\n\nlcn.set_cf_attention()\n\ngen_image_edited = lcn.edit(boxy_depth, boxy_depth_edited, prompt, negative_prompt=negative_prompt)\n```\n\n# Credits\nThe Cross Frame attention is adapted from [Text2Video-Zero](https://github.com/Picsart-AI-Research/Text2Video-Zero)\n\n# Citation\n\n```bibtex\n@misc{bhat2023loosecontrol,\n      title={LooseControl: Lifting ControlNet for Generalized Depth Conditioning}, \n      author={Shariq Farooq Bhat and Niloy J. Mitra and Peter Wonka},\n      year={2023},\n      eprint={2312.03079},\n      archivePrefix={arXiv},\n      primaryClass={cs.CV}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshariqfarooq123%2FLooseControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshariqfarooq123%2FLooseControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshariqfarooq123%2FLooseControl/lists"}