Update README.md
Browse files
README.md
CHANGED
|
@@ -58,16 +58,18 @@ library_name: transformers
|
|
| 58 |
|
| 59 |
## How to Use
|
| 60 |
|
|
|
|
| 61 |
### Installation
|
| 62 |
|
| 63 |
First, clone the Derm1M repository:
|
| 64 |
```bash
|
| 65 |
git clone git@github.com:SiyuanYan1/Derm1M.git
|
| 66 |
cd Derm1M
|
| 67 |
-
|
| 68 |
|
| 69 |
Then install the package following the instruction in the repository.
|
| 70 |
|
|
|
|
| 71 |
### Quick Start
|
| 72 |
```python
|
| 73 |
import open_clip
|
|
@@ -76,12 +78,12 @@ import torch
|
|
| 76 |
|
| 77 |
# Load model with huggingface checkpoint
|
| 78 |
model, _, preprocess = open_clip.create_model_and_transforms(
|
| 79 |
-
'hf-hub:redlessone/
|
| 80 |
)
|
| 81 |
model.eval()
|
| 82 |
|
| 83 |
# Initialize tokenizer
|
| 84 |
-
tokenizer = open_clip.get_tokenizer('hf-hub:redlessone/
|
| 85 |
|
| 86 |
# Read example image
|
| 87 |
image = preprocess(Image.open("your_skin_image.png")).unsqueeze(0)
|
|
@@ -119,6 +121,7 @@ print(f'This image is diagnosed as {final_prediction}.')
|
|
| 119 |
print("Label probabilities:", text_probs)
|
| 120 |
```
|
| 121 |
|
|
|
|
| 122 |
## Contact
|
| 123 |
|
| 124 |
For any additional questions or comments, contact Siyuan Yan (`siyuan.yan@monash.edu`),
|
|
|
|
| 58 |
|
| 59 |
## How to Use
|
| 60 |
|
| 61 |
+
|
| 62 |
### Installation
|
| 63 |
|
| 64 |
First, clone the Derm1M repository:
|
| 65 |
```bash
|
| 66 |
git clone git@github.com:SiyuanYan1/Derm1M.git
|
| 67 |
cd Derm1M
|
| 68 |
+
路路路
|
| 69 |
|
| 70 |
Then install the package following the instruction in the repository.
|
| 71 |
|
| 72 |
+
|
| 73 |
### Quick Start
|
| 74 |
```python
|
| 75 |
import open_clip
|
|
|
|
| 78 |
|
| 79 |
# Load model with huggingface checkpoint
|
| 80 |
model, _, preprocess = open_clip.create_model_and_transforms(
|
| 81 |
+
'hf-hub:redlessone/DermLIP_ViT-B-16'
|
| 82 |
)
|
| 83 |
model.eval()
|
| 84 |
|
| 85 |
# Initialize tokenizer
|
| 86 |
+
tokenizer = open_clip.get_tokenizer('hf-hub:redlessone/DermLIP_ViT-B-16')
|
| 87 |
|
| 88 |
# Read example image
|
| 89 |
image = preprocess(Image.open("your_skin_image.png")).unsqueeze(0)
|
|
|
|
| 121 |
print("Label probabilities:", text_probs)
|
| 122 |
```
|
| 123 |
|
| 124 |
+
|
| 125 |
## Contact
|
| 126 |
|
| 127 |
For any additional questions or comments, contact Siyuan Yan (`siyuan.yan@monash.edu`),
|