run
get_features(csv_path, weights_path=None, spatial_size=(50, 50, 50), precropped=False, **kwargs)
Extracts features from images specified in a CSV file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
csv_path
|
str
|
Path to the CSV file containing image paths. |
required |
weights_path
|
str
|
Path to the pre-trained weights file. Default is None. |
None
|
spatial_size
|
tuple
|
Spatial size of the input images. Default is (50, 50, 50). |
(50, 50, 50)
|
precropped
|
bool
|
Whether the images are already pre-cropped. Default is False. |
False
|
**kwargs
|
Additional arguments to be passed to the dataloader. |
{}
|
Returns: pandas.DataFrame: DataFrame containing the original data from the CSV file along with the extracted features.