NotImplementedError when training FarSeg model from torchgeo.models
See original GitHub issueDescription 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
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:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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 thepl.Trainer
object.