You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, if you want to use the default BaseDataset class, the directory structure of the data you wish to be clustered must conform to the structure shown below.
If another structure makes more sense for your purposes, you will need to sublass the BaseDataset class and reference your class in save_dataset_features.py and cluster_dataset.py.
- <data_dir>
- samples
- <first file>
- ...
You can then extract deep features from your data by running the command below.
If you are using the BaseDataset class, your features will be saved at the path <data_dir>/features.npy
python sample_dataset_features.py --data_dir <path to data directory>
Finally, you can cluster your data by running the command below.
If you are using the BaseDataset class, your clustered data will be saved at the path <data_dir>/clusters.
Parameters within brackets () are optional.
python cluster_dataset.py --data_dir <path to data directory> (--thres <float>) (--min_clus <int>) (--max_dist <float>) (--dont_normalize)