This commit is contained in:
2026-05-21 15:05:51 +02:00
parent 6a25385409
commit 3162934b99
2 changed files with 5 additions and 4 deletions

3
run.sh
View File

@@ -16,7 +16,8 @@ source "$VENV_DIR/bin/activate"
# 3. Install dependencies (lightweight, safe to re-run)
echo "Installing dependencies..."
pip install --upgrade pip
pip install pandas numpy matplotlib seaborn pillow scikit-learn tensorflow
pip install pandas numpy matplotlib seaborn pillow scikit-learn
pip install install "tensorflow[and-cuda]"
pip install --upgrade kagglehub[pandas-datasets,hf-datasets]
python3 skin_cancer_classification.py

View File

@@ -271,9 +271,9 @@ x = Dense(512, activation='relu')(x) # Added another Dense layer
x = Dense(256, activation='relu')(x) # Existing Dense layer
predictions = Dense(1, activation='sigmoid')(x) # Output layer for binary classification
# with strategy.scope(): # Use all gpus
model = Model(inputs=base_model.input, outputs=predictions)
model.compile(optimizer=Adam(learning_rate=0.0001), loss='binary_crossentropy', metrics=['accuracy'])
with strategy.scope(): # Use all gpus
model = Model(inputs=base_model.input, outputs=predictions)
model.compile(optimizer=Adam(learning_rate=0.0001), loss='binary_crossentropy', metrics=['accuracy'])
"""## 4. Data Generators