runtime error
Exit code: 1. Reason: 2025-01-01 19:24:59,199 - INFO - Found file: ./model.safetensors 2025-01-01 19:24:59,199 - INFO - Found file: ./config.json 2025-01-01 19:24:59,199 - INFO - Found file: ./preprocessor_config.json 2025-01-01 19:24:59,200 - INFO - Labels: ['Short', 'Knee', 'Midi', 'Cropped', 'Regular', 'Stirrup'] /usr/local/lib/python3.10/site-packages/transformers/models/vit/feature_extraction_vit.py:28: FutureWarning: The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use ViTImageProcessor instead. warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 40, in <module> model = ViTForImageClassification.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4264, in from_pretrained ) = cls._load_pretrained_model( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4834, in _load_pretrained_model raise RuntimeError(f"Error(s) in loading state_dict for {model.__class__.__name__}:\n\t{error_msg}") RuntimeError: Error(s) in loading state_dict for ViTForImageClassification: size mismatch for classifier.weight: copying a param with shape torch.Size([8, 768]) from checkpoint, the shape in current model is torch.Size([6, 768]). size mismatch for classifier.bias: copying a param with shape torch.Size([8]) from checkpoint, the shape in current model is torch.Size([6]). You may consider adding `ignore_mismatched_sizes=True` in the model `from_pretrained` method.
Container logs:
Fetching error logs...