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

What is the x means in the dataloader ? #1

Closed
jacksonchen1998 opened this issue May 3, 2023 · 2 comments
Closed

What is the x means in the dataloader ? #1

jacksonchen1998 opened this issue May 3, 2023 · 2 comments

Comments

@jacksonchen1998
Copy link

Hello @afengen

In the file regression_trainer.py.

The datasets can be defined as below

self.datasets = {x: Crowd(os.path.join(args.data_dir, x),
                                  args.crop_size,
                                  args.downsample_ratio,
                                  args.is_gray, x) for x in ['train', 'val']}

What is the x means in front of for.

Where the x in x) for

I haven't seen that Crowd has any argument can use this as input.

Since that the Crowd has be defined as below

class Crowd(data.Dataset):
    def __init__(self, root_path, crop_size,
                 downsample_ratio, is_gray=False,
                 method='train'):

Thanks

@afengen
Copy link
Owner

afengen commented May 3, 2023

Sorry, I'm also a learner of this project, maybe you can ask a question via the link:https://github.com/ZhihengCV/Bayesian-Crowd-Counting

@jacksonchen1998
Copy link
Author

Sorry, I'm also a learner of this project, maybe you can ask a question via the link:https://github.com/ZhihengCV/Bayesian-Crowd-Counting

OK.

@jacksonchen1998 jacksonchen1998 closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2023
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