Update README.md
Browse files
README.md
CHANGED
@@ -26,3 +26,14 @@ Use the `Color-Invariant-Skin-Segmentation` module to generate masks, following
|
|
26 |
### In-paint the images
|
27 |
|
28 |
Use the `BrushNet` module to in-paint the images from FACET and/or CC3M (see the respective scripts in `BrushNet/examples/brushnet/inapaint_*.py`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
### In-paint the images
|
27 |
|
28 |
Use the `BrushNet` module to in-paint the images from FACET and/or CC3M (see the respective scripts in `BrushNet/examples/brushnet/inapaint_*.py`.
|
29 |
+
|
30 |
+
|
31 |
+
## Zero-shot classification
|
32 |
+
|
33 |
+
Use the `zero_shot_classification.py` script to test the occupation classification accuracy of different CLIP models (for different in-painting setups, i.e. PP, PP*, WB, etc.). To run it, first install PyTorch and the following dependencies:
|
34 |
+
`pip install open_clip`
|
35 |
+
`pip install git+https://github.com/openai/CLIP.git`
|
36 |
+
`pip install tqdm`
|
37 |
+
`pip install numpy`
|
38 |
+
`pip install pandas`
|
39 |
+
`pip install pillow`
|