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

AttributeError: 'RandomSampler' object has no attribute 'num_samples' #167

Open
Derrick-Gilchrist opened this issue Feb 21, 2021 · 0 comments

Comments

@Derrick-Gilchrist
Copy link

data = ImageClassifierData.from_paths(PATH, tfms=tfms_from_model(arch, size), bs=batch_size)
try:
learn = ConvLearner.pretrained(arch, data, precompute=True)
except:
learn = ConvLearner.pretrained(arch, data, precompute=True)

This was the code. Could anyone help me to address this issue!

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

1 participant