방재호
init
b5ba7a5
import launch
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
req_file = os.path.join(current_dir, "requirements.txt")
with open(req_file) as file:
for lib in file:
lib = lib.strip()
if not launch.is_installed(lib):
launch.run_pip(
f"install {lib}",
f"sd-webui-segment-anything requirement: {lib}")