ImageFolder cannot be used for a multi-label classification, since each subfolder will get a single class index. For this use case you would have to implement a custom Dataset and create or read the targets in it.