# Load your image img_path = "path_to_your_image.jpg" img = image.load_img(img_path, target_size=(224, 224))

# Load a pre-trained model for feature extraction model = VGG16(weights='imagenet', include_top=False, pooling='avg')

# Extract features features = model.predict(x)

up
Яндекс.Метрика Яндекс.Метрик