File size: 2,262 Bytes
bcbf41e
 
 
6ae17ba
 
 
46e85f6
 
 
 
 
 
 
 
 
9d97efe
 
 
 
6ae17ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a0563e3
6ae17ba
89ef1bc
6ae17ba
 
e0bdb71
6ae17ba
 
e0bdb71
6ae17ba
e0bdb71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
license: mit
---
anywefadoor

## Installation
the servers run in nodejs using express and are started on vast via PM2 (npm install -g pm2) process manager 2.  other startup managers are available.
start stop and check status with:
  pm2 start x
  pm2 restart x
  pm2 status

pm2 logs normally end up in the user folder of the user running the code under .pm2/logs/nameofscript.js

 ssl_server.js in the ADOOR_ACE folder must be set to run on startup and ports need consideration for the anydoor process.
 for the cloth seg the seg_ssl_server.js  in the huggingface-cloth-segmentation folder should also be set to run on start.
 pip requirements should be installed for the seg from inside that folder or conda can be utilised here too.

the two express servers are all that run here.

various necesary libs to install via apt will reveal themselves depending on hardware. libxext and others after the conda install and run first time.

Install with `conda`: 
```bash
conda env create -f environment.yaml
conda activate anydoor
```
or `pip`:
```bash
pip install -r requirements.txt
```
Additionally, for training, you need to install panopticapi, pycocotools, and lvis-api.
```bash
pip install git+https://github.com/cocodataset/panopticapi.git

pip install pycocotools -i https://pypi.douban.com/simple

pip install lvis
```
## Download WefaDoor Checkpoint
Download WefaDoor checkpoint: 
* URL: (https://huggingface.co/thisisAce/ADOOR_ACE/blob/main/models/adbase-step%3D41250.ckpt)


## Download DINOv2 checkpoint and revise `/configs/anydoor.yaml` for the path (line 83)
* URL: https://github.com/facebookresearch/dinov2?tab=readme-ov-file

## Download Stable Diffusion V2.1 if you want to train from scratch.
* URL: https://huggingface.co/thisisAce/ADOOR_ACE/blob/main/models/dinov2_vitg14_pretrain.pth

## to run servers manualy use the following process:

first wefadoor..
# cd /work/ADOOR_ACE
# conda activate anydoor
# start ssl_server.js (node or pm2)
# python run_inference_api.py

then the following must be in a tmux shell as in a completely new shell not the shell session above:
second hf seg..
# cd /work/huggingface-cloth-segmentation
# conda activate seg
# start seg_ssl_server.js

leave both shells open in the instance and close the remote