diff --git a/lama_cleaner/__init__.py b/lama_cleaner/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a1ce1a122db142dc55afcdd72ef356331be046d7 --- /dev/null +++ b/lama_cleaner/__init__.py @@ -0,0 +1,18 @@ +import os + +os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1" + +import warnings + +warnings.simplefilter("ignore", UserWarning) + +from lama_cleaner.parse_args import parse_args + + +def entry_point(): + args = parse_args() + # To make os.environ["XDG_CACHE_HOME"] = args.model_cache_dir works for diffusers + # https://github.com/huggingface/diffusers/blob/be99201a567c1ccd841dc16fb24e88f7f239c187/src/diffusers/utils/constants.py#L18 + from lama_cleaner.server import main + + main(args) diff --git a/lama_cleaner/__pycache__/__init__.cpython-38.pyc b/lama_cleaner/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f612e01285f36236f0c91d6a9163089927ba0539 Binary files /dev/null and b/lama_cleaner/__pycache__/__init__.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/benchmark.cpython-38.pyc b/lama_cleaner/__pycache__/benchmark.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3f5eb74d38c5d27c4522eed21efea0692d071eed Binary files /dev/null and b/lama_cleaner/__pycache__/benchmark.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/const.cpython-38.pyc b/lama_cleaner/__pycache__/const.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..94d38e6b09cbb3797a52efbd11628181ea4423bb Binary files /dev/null and b/lama_cleaner/__pycache__/const.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/helper.cpython-38.pyc b/lama_cleaner/__pycache__/helper.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..466c31554c429dbbb0ac36b3ce85685b4e974dde Binary files /dev/null and b/lama_cleaner/__pycache__/helper.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/installer.cpython-38.pyc b/lama_cleaner/__pycache__/installer.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c17f12a842bf71121e8d1d349cd6df1fcb37cb8 Binary files /dev/null and b/lama_cleaner/__pycache__/installer.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/model_manager.cpython-38.pyc b/lama_cleaner/__pycache__/model_manager.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..89df62d99ab60d8cf3f600892f07826341d7ea78 Binary files /dev/null and b/lama_cleaner/__pycache__/model_manager.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/parse_args.cpython-38.pyc b/lama_cleaner/__pycache__/parse_args.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cd19e78d3eef10e7cc5be6ca2c8a48c6fccfe2f7 Binary files /dev/null and b/lama_cleaner/__pycache__/parse_args.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/runtime.cpython-38.pyc b/lama_cleaner/__pycache__/runtime.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2db579352a39268c3d7beaa84a2e17702d979a88 Binary files /dev/null and b/lama_cleaner/__pycache__/runtime.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/schema.cpython-38.pyc b/lama_cleaner/__pycache__/schema.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a96310c7a4fc25c7be15cf477f4420a008bf1ed Binary files /dev/null and b/lama_cleaner/__pycache__/schema.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/server.cpython-38.pyc b/lama_cleaner/__pycache__/server.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e92d1e93916cc7272ad255b9b772fd1a7bbac321 Binary files /dev/null and b/lama_cleaner/__pycache__/server.cpython-38.pyc differ diff --git a/lama_cleaner/__pycache__/web_config.cpython-38.pyc b/lama_cleaner/__pycache__/web_config.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c34ded286ef1a11f5e11270918e9b85d0b32a7a3 Binary files /dev/null and b/lama_cleaner/__pycache__/web_config.cpython-38.pyc differ diff --git a/lama_cleaner/app/build/.DS_Store b/lama_cleaner/app/build/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/lama_cleaner/app/build/.DS_Store differ diff --git a/lama_cleaner/app/build/asset-manifest.json b/lama_cleaner/app/build/asset-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..0f8168c07a94839041014c04248b2818691a795a --- /dev/null +++ b/lama_cleaner/app/build/asset-manifest.json @@ -0,0 +1,51 @@ +{ + "files": { + "main.css": "/static/css/main.ce986cc8.css", + "main.js": "/static/js/main.1fda6320.js", + "static/media/coffee-machine-lineal.gif": "/static/media/coffee-machine-lineal.ee32631219cc3986f861.gif", + "static/media/Inter.var.woff2?v=3.19": "/static/media/Inter.var.c2fe3cb2b7c746f7966a.woff2", + "static/media/Inter-italic.var.woff2?v=3.19": "/static/media/Inter-italic.var.30807be7abc48ba8c73c.woff2", + "static/media/Inter-roman.var.woff2?v=3.19": "/static/media/Inter-roman.var.ba4caefcdf5b36b438db.woff2", + "static/media/Inter-SemiBoldItalic.woff?v=3.19": "/static/media/Inter-SemiBoldItalic.463bdbfb28abad0fa6df.woff", + "static/media/Inter-BoldItalic.woff?v=3.19": "/static/media/Inter-BoldItalic.b376885042f6c961a541.woff", + "static/media/Inter-MediumItalic.woff?v=3.19": "/static/media/Inter-MediumItalic.3d0107dd43d0101274d3.woff", + "static/media/Inter-ExtraBoldItalic.woff?v=3.19": "/static/media/Inter-ExtraBoldItalic.6ab17abedc4d3f140953.woff", + "static/media/Inter-LightItalic.woff?v=3.19": "/static/media/Inter-LightItalic.ef9f65d91d2b0ba9b2e4.woff", + "static/media/Inter-ExtraLightItalic.woff?v=3.19": "/static/media/Inter-ExtraLightItalic.170dddfca278d3c2ad4a.woff", + "static/media/Inter-BlackItalic.woff?v=3.19": "/static/media/Inter-BlackItalic.ca1e738e4f349f27514d.woff", + "static/media/Inter-ThinItalic.woff?v=3.19": "/static/media/Inter-ThinItalic.bae95eb2f889c797e435.woff", + "static/media/Inter-Italic.woff?v=3.19": "/static/media/Inter-Italic.890025e726861dba417f.woff", + "static/media/Inter-Bold.woff?v=3.19": "/static/media/Inter-Bold.93c1301bd9f486c573b3.woff", + "static/media/Inter-SemiBold.woff?v=3.19": "/static/media/Inter-SemiBold.cca62d21c8c555c392e5.woff", + "static/media/Inter-ExtraBold.woff?v=3.19": "/static/media/Inter-ExtraBold.d0fa3bb2b7c9063dc594.woff", + "static/media/Inter-Medium.woff?v=3.19": "/static/media/Inter-Medium.9053572c46aeb4b16caa.woff", + "static/media/Inter-ExtraLight.woff?v=3.19": "/static/media/Inter-ExtraLight.c4248615291a9e8f1fb7.woff", + "static/media/Inter-Light.woff?v=3.19": "/static/media/Inter-Light.994e34451cc19ede31d3.woff", + "static/media/Inter-Black.woff?v=3.19": "/static/media/Inter-Black.c6938660eec019fefd68.woff", + "static/media/Inter-Thin.woff?v=3.19": "/static/media/Inter-Thin.29b9c616a95a912abf73.woff", + "static/media/Inter-Regular.woff?v=3.19": "/static/media/Inter-Regular.8c206db99195777c6769.woff", + "static/media/Inter-MediumItalic.woff2?v=3.19": "/static/media/Inter-MediumItalic.085cb93e613ba3d40d2b.woff2", + "static/media/Inter-SemiBoldItalic.woff2?v=3.19": "/static/media/Inter-SemiBoldItalic.d9467ee321a8f38aefff.woff2", + "static/media/Inter-BoldItalic.woff2?v=3.19": "/static/media/Inter-BoldItalic.2d26c56a606662486796.woff2", + "static/media/Inter-ExtraBoldItalic.woff2?v=3.19": "/static/media/Inter-ExtraBoldItalic.535a6cf662596b3bd6a6.woff2", + "static/media/Inter-ExtraLightItalic.woff2?v=3.19": "/static/media/Inter-ExtraLightItalic.5c7d7d6deb1d2ec8d48c.woff2", + "static/media/Inter-LightItalic.woff2?v=3.19": "/static/media/Inter-LightItalic.f86952265d7b0f02c921.woff2", + "static/media/Inter-BlackItalic.woff2?v=3.19": "/static/media/Inter-BlackItalic.cb2a7335650c690077fe.woff2", + "static/media/Inter-Italic.woff2?v=3.19": "/static/media/Inter-Italic.cb10ffd7684cd9836a05.woff2", + "static/media/Inter-ThinItalic.woff2?v=3.19": "/static/media/Inter-ThinItalic.bf213704dce6b437ede4.woff2", + "static/media/Inter-Bold.woff2?v=3.19": "/static/media/Inter-Bold.ec64ea577b0349e055ad.woff2", + "static/media/Inter-ExtraBold.woff2?v=3.19": "/static/media/Inter-ExtraBold.cbe0ae49c52c920fd563.woff2", + "static/media/Inter-Medium.woff2?v=3.19": "/static/media/Inter-Medium.293fd13dbca5a3e450ef.woff2", + "static/media/Inter-SemiBold.woff2?v=3.19": "/static/media/Inter-SemiBold.b5f0f109bc88052d4000.woff2", + "static/media/Inter-Light.woff2?v=3.19": "/static/media/Inter-Light.2d5198822ab091ce4305.woff2", + "static/media/Inter-ExtraLight.woff2?v=3.19": "/static/media/Inter-ExtraLight.72505e6a122c6acd5471.woff2", + "static/media/Inter-Black.woff2?v=3.19": "/static/media/Inter-Black.15ca31c0a2a68f76d2d1.woff2", + "static/media/Inter-Thin.woff2?v=3.19": "/static/media/Inter-Thin.fff2a096db014f6239d4.woff2", + "static/media/Inter-Regular.woff2?v=3.19": "/static/media/Inter-Regular.c8ba52b05a9ef10f4758.woff2", + "index.html": "/index.html" + }, + "entrypoints": [ + "static/css/main.ce986cc8.css", + "static/js/main.1fda6320.js" + ] +} \ No newline at end of file diff --git a/lama_cleaner/app/build/favicon.ico b/lama_cleaner/app/build/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..f5607e2dd979b9685d5471fb0bd85fe6233ed605 Binary files /dev/null and b/lama_cleaner/app/build/favicon.ico differ diff --git a/lama_cleaner/app/build/index.html b/lama_cleaner/app/build/index.html new file mode 100644 index 0000000000000000000000000000000000000000..704b475c357f89558184e25d046b333c9cbce0b3 --- /dev/null +++ b/lama_cleaner/app/build/index.html @@ -0,0 +1 @@ +