question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotImplementedError when training FarSeg model from torchgeo.models

See original GitHub issue

Description of Issue When attempting to use one of the models built into torchgeo, from torchgeo.models import FarSeg I receive a NotImplementedError when running the cell in Jupyter Notebook that performs the fitting of the model using a PyTorch Lightning Trainer. I have uploaded the source code for the CloudFarSegModel class and the CloudDataset class to this repository here. The competition dataset is nearly 30 gb so it would have to be downloaded from the AzureBlobStorage source.

FarSeg_NotImplementedError.txt NotImplementedError

Credit to Katie Wetstone for source code from the blog/notebook to train a benchmark Unet model on the dataset: https://www.drivendata.co/blog/cloud-cover-benchmark/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
isaaccorleycommented, Dec 18, 2021

@KennSmithDS feel free to make a separate issue if you run into any problems with training on your custom datamodule using one of ours as template so we can document this for other users.

Also feel free to make a PR for the the Cloud Cover challenge dataset and datamodule. It would be a good first contribution and it would be great to have it included in torchgeo.

1reaction
calebrob6commented, Dec 17, 2021

do I need to create a custom data module for this cloud cover dataset then to pass into the datamodule= parameter for the Trainer?

Yes, exactly! We have a list of (pytorch lightning modules (i.e. trainers), datamodules) here that train.py uses to run experiments with. These pairs are exactly what get fed into the pl.Trainer object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyTorch NotImplementedError in forward - Stack Overflow
Just unindent your forward method in Model class. like this: class Model(nn.Module): def __init__(self): super(Model, self).
Read more >
NotImplementedError when use forward function. #38 - GitHub
I try define a model based on pretrained EfficientNet as below. But I get a NotImplementedError: when use 'forward' function.
Read more >
[SOLVED]Resolving NotImplementedError? - PyTorch Forums
The following class causes an error of “NotImplementedError” in module.py when z = model(x) is evaluated. I am working on Python 3.6 and...
Read more >
PyTorch Tutorial 17 - Saving and Loading Models - YouTube
New Tutorial series about Deep Learning with PyTorch!⭐ Check out Tabnine, the FREE AI-powered code completion tool I use to help me code ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found