do for clean data only for training: but dont change dataloder parts of testing as it…
- User
do for clean data only for training: but dont change dataloder parts of testing as it also has for testing which needs adv+clean:
Assistant
- User
!python src/run.py --mode train --train_clean_only --kaggle_mode --model_type classifier --dataset_name bloodmnistTraining classifier model... Dataset: bloodmnist Attack type: carlini Epochs: 50 Batch size: 32 Learning rate: 0.001 Train clean only: True Starting training with pipeline: classifier Dataset: bloodmnist Attack type: carlini Train clean only: True === TRAINING ON CLEAN DATA ONLY === Using Kaggle clean-only dataloader... Available Kaggle datasets: No Kaggle dataset found for bloodmnist
Assistant
The issue is that there are no Kaggle datasets available for bloodmnist. When you run list_available_kaggle_datasets(), it shows no datasets, which means you need to either:
Prepare the dataset first, or Switch to local mode to use MedMNIST datasets directly
Let me help you fix this by updating the code to handle this situation better and provide clear options:Updated train.py - Clean Data Only TrainingCode ∙ Version 2 if train_clean_only: print("=== TRAINING ON CLEAN DATA ONLY ===")
- User
why am i getting this again and again: 99.2s75=== TRAINING ON CLEAN DATA ONLY === 99.2s76Using Kaggle clean-only dataloader... 99.2s77Available Kaggle datasets: 99.2s78No Kaggle dataset found for bloodmnist 99.2s79 99.2s80Options to fix this: 99.2s811. Prepare the dataset first: 99.2s82 python src/dataloader.py --mode prepare --dataset bloodmnist 99.2s832. Switch to local mode (remove --kaggle_mode flag): 99.2s84 python src/run.py --mode train --train_clean_only --model_type classifier --dataset_name bloodmnist 99.2s853. Use a different dataset that might be available
Assistant
The issue is that the code is not actually falling back to local mode as intended. The problem is in the logic flow - when dataset_info is None, it prints the options but then tries to call create_clean_only_dataloaders_local(config), but this function call is not working properly. Let me fix this by updating the code to properly handle the fallback:Updated train.py - Clean Data Only TrainingCode ∙ Version 4 def create_clean_only_dataloaders_local(config): """Create dataloaders with clean data only from local MedMNIST datasets.""" print("Creating clean-only dataloaders from local datasets...") try: # Use the existing get_clean_only_da