File size: 6,142 Bytes
0e62b18
 
 
3c6c3ed
9eaf0ca
 
0e62b18
 
 
 
 
 
 
 
 
 
22f5483
0e62b18
9eaf0ca
0e62b18
9eaf0ca
0e62b18
 
 
 
 
 
 
 
 
 
 
 
9eaf0ca
0e62b18
9eaf0ca
84d1996
 
 
 
 
 
0e62b18
 
f5e1709
 
0e62b18
 
 
84d1996
9eaf0ca
84d1996
9eaf0ca
 
84d1996
 
9eaf0ca
 
84d1996
 
0e62b18
 
 
 
 
 
9eaf0ca
0e62b18
9eaf0ca
 
84d1996
 
 
 
 
 
0e62b18
 
 
 
 
 
9eaf0ca
0e62b18
9eaf0ca
84d1996
 
 
 
 
 
0e62b18
 
 
 
 
 
9eaf0ca
0e62b18
f5e1709
84d1996
 
 
 
 
 
 
 
 
0e62b18
f5e1709
 
 
0e62b18
4f03827
f5e1709
0e62b18
 
 
 
 
f5e1709
 
0e62b18
 
 
f5e1709
0e62b18
 
 
 
 
f5e1709
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
akiec = '''
Actinic keratoses (akiec), also known as solar keratoses, are rough, scaly patches on the skin caused by years of sun exposure. These lesions are considered precancerous, as they have the potential to develop into skin cancer if left untreated.

#### Signs and Symptoms
* Typically appear as small, red, rough spots on sun-exposed areas of the skin, such as the face, ears, neck, scalp, chest, backs of hands,and forearms 
* May be flat or raised
* Rough, scaly patches on the skin
* Red or pink spots that feel rough to the touch
* Itching or burning sensation
* Sometimes, a hard, wart-like surface
#### When to See a Dermatologist
It's important to see a dermatologist if you notice any new, changing, or persistent skin lesions, especially if they resemble actinic keratoses. Early detection and treatment can prevent the progression to skin cancer.
'''


bcc = '''
Basal cell carcinoma is the most common type of skin cancer. It usually develops on areas of the skin exposed to the sun, such as the head, neck, and hands.

#### Signs and Symptoms
Basal cell carcinomas often appear as:
* A flat, flesh-colored or brown scar-like lesion that may be itchy or painful
* A bleeding or scabbing sore that heals and returns
* Persistent, non-healing sore
* Shiny, pearly bump
* Pink growth with raised edges
* Scar-like lesion with irregular borders
#### When to See a Dermatologist
If you notice any new, changing, or persistent skin lesions, especially those that bleed, scab, or do not heal, it's essential to see a dermatologist for evaluation and possible biopsy.
'''

bkl = '''
Benign lesions of the keratosis type are non-cancerous growths on the skin that often result from sun exposure. While they are not cancerous, they may resemble precancerous or cancerous lesions and should be monitored by a dermatologist.

#### Signs and Symptoms
These lesions may present as:
* Rough or scaly texture
* Thickened, discolored areas of skin
* Raised bumps
* Irregular borders
* Variable colors, including pink, brown, or tan
* Slowly growing over time
#### When to See a Dermatologist
If you notice any new, changing, or unusual skin growths, it's important to have them evaluated by a dermatologist. While most benign lesions do not require treatment, they should be monitored for changes in size, shape, or color.

'''

df = '''
Dermatofibroma is a common benign skin lesion that usually appears as a small, firm bump on the skin. It is typically harmless but can sometimes resemble skin cancer or other serious conditions.

#### Signs and Symptoms
Dermatofibromas often present as:
* Firm, rubbery texture
* Raised bump
* Pink, brown, or reddish color
* Well-defined borders
* Often less than 1 centimeter in size
* Smooth or dimpled surface
* Often found on the legs but can occur anywhere on the body
* Usually painless but may be tender to touch
#### When to See a Dermatologist
While dermatofibromas are usually harmless, any new, changing, or unusual skin lesions should be evaluated by a dermatologist to rule out skin cancer or other conditions.
'''

mel = '''
Melanoma is a type of skin cancer that develops from melanocytes, the cells that produce pigment in the skin. It can occur anywhere on the body, including areas not exposed to the sun.

#### Signs and Symptoms
Melanomas often appear as:
* Irregular, asymmetric shape
* Irregular borders that may be scalloped or notched
* A change in an existing mole
* A new, unusual growth or spot on the skin
* Varied colors, including shades of brown, black, red, blue, or white
* Variable colors within the lesion
* Diameter larger than a pencil eraser (6 millimeters) or evolving size, shape, or color
#### When to See a Dermatologist
If you notice any new, changing, or suspicious skin lesions, especially those with irregular features or rapid growth, it's essential to see a dermatologist promptly for evaluation and possible biopsy.
'''

nv='''
Melanocytic nevi, commonly known as moles, are benign growths on the skin composed of melanocytes. While most moles are harmless, some may develop into melanoma, a type of skin cancer.

#### Signs and Symptoms
Melanocytic nevi often appear as:
* Regular small, round, or oval-shaped spots on the skin
* Uniform in color, usually tan, brown, or black
* Flat or raised with smooth or rough texture
* Often appear during childhood or adolescence
* Usually less than 6 millimeters in diameter
* Typically remain stable in size, shape, and color over time
#### When to See a Dermatologist
While most moles are harmless, any new, changing, or unusual skin lesions should be evaluated by a dermatologist to rule out skin cancer or other conditions.
'''

vasc = '''
Vascular lesions are abnormal growths of blood vessels in the skin. While most are benign, some may indicate an underlying medical condition or require treatment for cosmetic reasons.

#### Signs and Symptoms
Vascular lesions may present as:

* Red, purple, or blue discoloration of the skin
* Flat or raised lesions
* Pain, itching, or burning sensation
* Rapid growth or change in appearance
* Discoloration of the skin
* Varied shapes and sizes
* Smooth or irregular texture
* Bleeding or ulceration in severe cases
#### When to See a Dermatologist
If you notice any new, changing, or unusual skin lesions, especially those with rapid growth or bleeding, it's essential to see a dermatologist for evaluation and possible treatment.
'''

vit_base_patch_16 = '''
# vit-beta2-0.99
[This model](https://huggingface.co/sharren/vit-beta2-0.99) is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
It achieves the following results on the evaluation set:
- Loss: 0.5248
- Accuracy: 0.8623
- Precision: 0.8584
- Recall: 0.8623
- F1: 0.8596
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.99) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 1733
- num_epochs: 100
- mixed_precision_training: Native AMP
'''