smduan / HT-Fed-GAN

3 stars 2 forks source link

[Errno 2] No such file or directory: './adult/adult.json' #1

Open VivianYuan12138 opened 1 year ago

VivianYuan12138 commented 1 year ago

Hi!When I run your code,I met a problem in your baseline method in dp-fedavg-gan/dp_fedavg_gan.py

File "/home/op/xinhang/dp-fedavg-gan/utility_all.py", line 21, in _load_json with open(path) as json_file: File "/home/op/xinhang/dp-fedavg-gan/utility_all.py", line 40, in load_dataset meta = _load_json(local_path) File "/home/op/xinhang/dp-fedavg-gan/realtime_evaluator.py", line 30, in init self._test, self.meta, , _ = utility_test.load_dataset('{0}.json'.format(self._opt.dataset_name), benchmark=True) File "/home/op/xinhang/dp-fedavg-gan/dp_fedavg_gan.py", line 34, in main evaluator = RealtimeEvaluator(opt=opt, trans=transformer, gen=None) File "/home/op/xinhang/dp-fedavg-gan/dp_fedavg_gan.py", line 42, in main() FileNotFoundError: [Errno 2] No such file or directory: './adult/adult.json' Thank you for your time!

smduan commented 1 year ago

Hi, we had added the adult.json in ./data/adult/adult.json for reference.