The repository pattern deals with creating a set of data access services, ie. CRUD methods.
The factory pattern on the other hand deals with how an object is created. A factory class will have a method that returns a new instance of a class.
The two are independent of each other; however, you will often see the factory pattern used alongside with the repository pattern in order to create a new instance of a entity.