alibaba / FederatedScope

An easy-to-use federated learning platform
https://www.federatedscope.io
Apache License 2.0
1.3k stars 209 forks source link

No such file or directory: 'data/southwest_images_new_test.pkl' #727

Closed tntstation closed 9 months ago

tntstation commented 11 months ago

Hello!I am trying to run the 'backdoor_fedavg_convnet2_on_cifar10_small.yaml' which under 'scripts/backdoor_scripts/attack_config' directory in the background bench.The current issue is that pycharm prompts "FileNotFoundError: [Errno 2] No such file or directory: 'data/southwest_images_new_test.pkl'",I checked the data folder and found that there is indeed no such file. Is this a problem with the code or my environment? image image

tntstation commented 11 months ago

I also didn't find the file under the "cifa-10-batches-py" folder. image

tntstation commented 11 months ago

Furthermore,I found a script which named "fedavg_convnet2_on_femnist.yaml" almost same as the sample offered by official documents on the "https://github.com/alibaba/FederatedScope/blob/master/scripts/attack_exp_scripts/backdoor_attack/backdoor_badnet_fedavg_convnet2_on_femnist.yaml" webpage, and I can run the "fedavg_convnet2_on_femnist.yaml" normally. image

tntstation commented 11 months ago

image

tntstation commented 11 months ago

I tried running a script that also uses gridTrigger, and it ran well too. image because my laptop only have one GPU,so I change the "device" from 1 to 0 image

rayrayraykk commented 11 months ago

@Osier-Yi Please hv a look into this issue, thx.

tntstation commented 11 months ago

12/7

Scripts using sig triggers also run well, but scripts using hello Kitty triggers display missing files just like scripts using edge triggers. image image image

tntstation commented 11 months ago

Should I add a Hello Kitty picture in ‘data/trigger’?