Learning to detect objects with unsupervised learning