when I tried to delete anything about model_2 and model_2_ema,errors occurred:
Traceback (most recent call last):
File "examples/mmt_train_kmeans.py", line 287, in
main()
File "examples/mmt_train_kmeans.py", line 132, in main
main_worker(args)
File "examples/mmt_train_kmeans.py", line 201, in main_worker
trainer = MMTTrainer(model_1, model_1_ema, num_cluster=args.num_clusters, alpha=args.alpha)
TypeError: init() missing 2 required positional arguments: 'model_1_ema' and 'model_2_ema'
the following is MMTTrainer:
class MMTTrainer(object):
def init(self, model_1, model_1_ema, num_cluster=500, alpha=0.999):
super(MMTTrainer, self).init()
self.model_1 = model_1
when I tried to delete anything about model_2 and model_2_ema,errors occurred: Traceback (most recent call last): File "examples/mmt_train_kmeans.py", line 287, in
main()
File "examples/mmt_train_kmeans.py", line 132, in main
main_worker(args)
File "examples/mmt_train_kmeans.py", line 201, in main_worker
trainer = MMTTrainer(model_1, model_1_ema, num_cluster=args.num_clusters, alpha=args.alpha)
TypeError: init() missing 2 required positional arguments: 'model_1_ema' and 'model_2_ema'
the following is MMTTrainer: class MMTTrainer(object): def init(self, model_1, model_1_ema, num_cluster=500, alpha=0.999): super(MMTTrainer, self).init() self.model_1 = model_1
self.model_2 = model_2
BUT,it is very strange that "MMTTrainer" do not contain the parameters" model_2_ema and model_2".