spurious_feature_learning icon indicating copy to clipboard operation
spurious_feature_learning copied to clipboard

segmentation fault with Group DRO

Open olccihyeon opened this issue 1 year ago • 1 comments

When executing the code related to group_DRO, I encountered a segmentation fault error at the following part:

IN group_DRO/gdro_data/dfr_datasets.py

sys.path.append("../")
import data as dfr_data

I'm wondering about the meaning of import data in this part. Does it refer to the outer data folder? Or does it refer to the data.py file inside gdro_data? Has anyone else who ran this code not encountered such a segmentation fault error? I'd appreciate any helpful recommendations or solutions to resolve this issue.

olccihyeon avatar Jul 06 '23 04:07 olccihyeon

Hey @olccihyeon! I believe, this line is trying to load this file. When you are running the script, are you running it from the group_dro folder? With python3 run_expt.py ...? I am also not sure why you are getting segmentation fault, and not just an import error?

izmailovpavel avatar Jul 06 '23 16:07 izmailovpavel