If I first run this code, there will have an error:
Traceback (most recent call last):
File "/root/CrossAug/main.py", line 159, in
args = init()
File "/root/CrossAug/main.py", line 50, in init
load_models(args, config[args.approach])
File "/root/CrossAug/main.py", line 76, in load_models
args.model = torch.compile(getattr(sys.modules[name], args.approach)(args).to(args.device))
File "/root/CrossAug/models/CrossAug.py", line 53, in init
self.adj = args.overall_mat
AttributeError: 'Namespace' object has no attribute 'overall_mat'
That's because when get_inter_mat(args), the code will not generate the overall_mat unless I have overall_mat.npy before. So I comment the code in CrossAug.py:
If I first run this code, there will have an error: Traceback (most recent call last): File "/root/CrossAug/main.py", line 159, in
args = init()
File "/root/CrossAug/main.py", line 50, in init
load_models(args, config[args.approach])
File "/root/CrossAug/main.py", line 76, in load_models
args.model = torch.compile(getattr(sys.modules[name], args.approach)(args).to(args.device))
File "/root/CrossAug/models/CrossAug.py", line 53, in init
self.adj = args.overall_mat
AttributeError: 'Namespace' object has no attribute 'overall_mat'
That's because when get_inter_mat(args), the code will not generate the overall_mat unless I have overall_mat.npy before. So I comment the code in CrossAug.py:
self.adj = args.overall_mat
and it works. If this event will affect the results? Thank you for any reply!