Help Needed: Issue Running DeepForest Model for Tree Species Classification #587
Unanswered
Abhijitop25
asked this question in
Q&A
Replies: 2 comments
-
Hi @Abhijitop25 - thanks for the issue. Let's do 2 things to help figure out what the issue is.
pip install git+https://[email protected]/weecology/deepforest.git
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@Abhijitop25 - we have now released the fixed version so you can just update to the newest version using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[
I am trying to install and use DeepForest deep learning model for classifying Indian tree species.
I am reaching out to seek assistance with an issue I am currently facing during the installation and usage of the model. I have followed the provided instructions, but I encountered an error that I am unable to debug. I believe providing with more details, including the error message, the multi_csv.csv file, and a sample image (tr.jpg), will help in diagnosing the problem.
Here is a brief description of the issue:
Error Message:
INFO:pytorch_lightning.callbacks.model_summary:
| Name | Type | Params
0 | model | RetinaNet | 32.2 M
1 | iou_metric | IntersectionOverUnion | 0
2 | mAP_metric | MeanAveragePrecision | 0
31.9 M Trainable params
222 K Non-trainable params
32.2 M Total params
128.675 Total estimated model params size (MB)
/usr/local/lib/python3.10/dist-packages/pytorch_lightning/trainer/connectors/data_connector.py:441: The 'train_dataloader' does not have many workers which may be a bottleneck. Consider increasing the value of the
num_workers
argumentto
num_workers=1in the
DataLoaderto improve performance. /usr/local/lib/python3.10/dist-packages/pytorch_lightning/trainer/connectors/data_connector.py:441: The 'val_dataloader' does not have many workers which may be a bottleneck. Consider increasing the value of the
num_workersargument
tonum_workers=1
in theDataLoader
to improve performance.Epoch 0: 0%
0/1 [00:00<?, ?it/s]
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 m.trainer.fit(m)
2 assert m.num_classes == 2
16 frames
/usr/local/lib/python3.10/dist-packages/torch/_utils.py in reraise(self)
692 # instantiate since we don't know how to
693 raise RuntimeError(msg) from None
--> 694 raise exception
695
696
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.10/dist-packages/deepforest/dataset.py", line 106, in getitem
targets["labels"] = image_annotations.label.apply(
File "/usr/local/lib/python3.10/dist-packages/pandas/core/generic.py", line 5902, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'label'
Files Attached:
multi_csv.csv
tr.jpg
Screenshot of the Error:
multi_csv.csv](https://github.com/weecology/DeepForest/files/13688630/multi_csv.csv)
Beta Was this translation helpful? Give feedback.
All reactions