FeAT icon indicating copy to clipboard operation
FeAT copied to clipboard

lack of codes: ModuleNotFoundError: No module named 'backpack'

Open NKUShaw opened this issue 1 year ago • 1 comments

I tried to run this script which contains:

rounds=2
ifeat_resdir=coloredmnist025_ifeat_r${rounds}

CUDA_VISIBLE_DEVICES=0 python run_exp.py --verbose True --steps 0 --freeze_featurizer True --dataset coloredmnist025 --eval_steps 1  --methods ifeat --rounds ${rounds} --save_dir ${ifeat_resdir}

but got the error which said: Traceback (most recent call last): File "run_exp.py", line 9, in from backpack import backpack, extend ModuleNotFoundError: No module named 'backpack'

NKUShaw avatar Jan 30 '25 23:01 NKUShaw

Oh I got it. I thought wrongly the backpack is a code file before.

NKUShaw avatar Jan 30 '25 23:01 NKUShaw