diff --git a/change_hair-hair.service b/change_hair-hair.service new file mode 100644 index 0000000..f739ae9 --- /dev/null +++ b/change_hair-hair.service @@ -0,0 +1,19 @@ +[Unit] +Description=change_hair hair_service_sd swapHair (8801) +After=network-online.target change_hair-webui.service change_hair-photo.service +Wants=change_hair-webui.service change_hair-photo.service + +[Service] +Type=simple +User=ubuntu +WorkingDirectory=/home/ubuntu/change_hair/project/hair_service_sd +Environment=CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 +Environment=CUDA_VISIBLE_DEVICES=0 +Environment=APP_WORKER_ID=1 +ExecStart=/home/ubuntu/miniconda3/envs/my_hair/bin/python run_copy_cost_colorb64.py +Restart=on-failure +RestartSec=10 +TimeoutStartSec=300 + +[Install] +WantedBy=multi-user.target diff --git a/change_hair-photo.service b/change_hair-photo.service new file mode 100644 index 0000000..84a918e --- /dev/null +++ b/change_hair-photo.service @@ -0,0 +1,17 @@ +[Unit] +Description=change_hair photo_service LoRA scheduler (32678) +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=ubuntu +WorkingDirectory=/home/ubuntu/change_hair/project/photo_service +Environment=CUDA_VISIBLE_DEVICES=0 +Environment=APP_WORKER_ID=1 +ExecStart=/home/ubuntu/miniconda3/envs/py310/bin/python -u lora_train_service_1.py +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/change_hair-webui.service b/change_hair-webui.service new file mode 100644 index 0000000..bbbdc53 --- /dev/null +++ b/change_hair-webui.service @@ -0,0 +1,20 @@ +[Unit] +Description=change_hair SD WebUI (57860) +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=ubuntu +WorkingDirectory=/home/ubuntu/change_hair/project/onediff/stable-diffusion-webui +Environment=CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 +Environment=CUDA_VISIBLE_DEVICES=0 +Environment=HF_HUB_OFFLINE=1 +Environment=TRANSFORMERS_OFFLINE=1 +ExecStart=/home/ubuntu/miniconda3/envs/sdwebui/bin/python webui.py --api --listen --xformers --port 57860 +Restart=on-failure +RestartSec=10 +TimeoutStartSec=600 + +[Install] +WantedBy=multi-user.target