Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ask the two file data_splits.p corrupted_img_paths.pkl #53

Open
liujun0621 opened this issue Sep 18, 2024 · 6 comments
Open

ask the two file data_splits.p corrupted_img_paths.pkl #53

liujun0621 opened this issue Sep 18, 2024 · 6 comments

Comments

@liujun0621
Copy link

excuse me,when run train.py as follows:
rank_zero_deprecation(
Traceback (most recent call last):
File "/root/Sybil-main/scripts/train.py", line 415, in
train(args)
File "/root/Sybil-main/scripts/train.py", line 359, in train
args, get_dataset(args.dataset, "train", args)
File "/root/Sybil-main/sybil/utils/helpers.py", line 18, in get_dataset
return SUPPORTED_DATASETS[dataset_name](args, split)
File "/root/Sybil-main/sybil/datasets/nlst.py", line 102, in init
self.dataset = self.create_dataset(split_group)
Connection to connect.cqa1.seetacloud.com closed by remote host.reate_dataset
Connection to connect.cqa1.seetacloud.com closed.paths"]
File "/root/Sybil-main/sybil/datasets/nlst.py", line 495, in CORRUPTED_PATHS
C:\Users\liujun>e.load(open(CORRUPTED_PATHS, "rb"))
EOFError: Ran out of input

where are the file from?
/Mounts/rbg-storage1/datasets/NLST/Shetty_et_al(Google)/data_splits.p
/Mounts/rbg-storage1/datasets/NLST/corrupted_img_paths.pkl

thanks you

@pgmikhael
Copy link
Collaborator

Hi,

If you're training on a different set of splits, then you can ignore the use of data_splits.p. This just needs some simple alteration of the code. Otherwise, I have uploaded the file here.

You should ignore the use of the corrupted_img_paths.pkl file -- this is a result of our own download/conversion pipeline of the data, which is not likely to be relevant. Again, you can comment / remove from the nlst.py file the lines referencing that file.

@pgmikhael pgmikhael reopened this Sep 18, 2024
@liujun0621
Copy link
Author

when i annotation code CORRUPTED_PATHS = "/Mounts/rbg-storage1/datasets/NLST/corrupted_img_paths.pkl"
there are a lots of error,what can i do next?thanks you very much

@pgmikhael
Copy link
Collaborator

Hi,

I'm not sure what "annotation code" means -- but you simply need to comment out the line that reads the file and those using it in the if-statement. This is all in the nlst.py file.

@liujun0621
Copy link
Author

annotation code as # or '''

@liujun0621
Copy link
Author

there are a lots of depends
as follows
Traceback (most recent call last):
File "/root/Sybil-main/scripts/train.py", line 415, in
train(args)
File "/root/Sybil-main/scripts/train.py", line 358, in train
train_dataset = loaders.get_train_dataset_loader(
File "/root/Sybil-main/sybil/utils/loading.py", line 103, in get_train_dataset_loader
weights=train_data.weights, num_samples=len(train_data), replacement=True
AttributeError: 'NLST_Survival_Dataset' object has no attribute 'weights'

@pgmikhael
Copy link
Collaborator

Hi,

Yes – there are many dependencies within the code. For "weights" specifically, it is utilized with the --class_bal flag is set to True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants