Skip to content

ZeyaWang/Deep-Nonparametric-Bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Nonparametric Bayes

Overview

DNB is a unified Bayesian Nonparametric framework for jointly learning image clusters and deep representations in a doubly-unsupervised manner, where we estimate not only the unknown image labels but also the unknown number of labels as well.

Dependencies

All the dependecies are provided in the requirement.txt.

Train model

Run train/dnb.py with the corresponding arguments to implement the clustering algorithm, you need to specify the dataset directory by passing your path of dataset to --dataset_dir and the dataset names by passing to --dataset (e.g., usps). The hdf5 dataset can be downloaded from https://github.com/jwyang/JULE.torch.

python3 train/dnb.py --dataset_dir=$DATASETPATH --dataset=usps

If you choose to run with the pretrained weights, you can modify the command line like:

python3 train/dnb.py --dataset_dir=$DATASETPATH --dataset=usps --if_initialize_from_pretrain=True --checkpoint_path=train/pretrain/usps/initial

License

This code is released under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages