Comments (11)
This is because pytorch-lightning dependency is not stated, and running now will install '2.0.1.post0'
which has breaking changes from 1.X. In 2.X lightning will discover available devices, so this arg is not needed.
On commenting out the GPU arg, you can run but get error:
NotImplementedError: Support for `validation_epoch_end` has been removed in v2.0.0. `SegformerFinetuner` implements
this method. You can use the `on_validation_epoch_end` hook instead. To access outputs, save them in-memory as
instance attributes.
Note there is also an attribute error from feature_extractor.reduce_labels = False
Therefore this notebook needs updating for lightning 2.0
from notebooks.
Hi @jhayle21, @mazatov and @robmarkcole 👋🏻! I just pushed a fixed version of our SegFormer notebook. It is not ideal, but it works as expected. What I did was:
pytorch-lightning<2.0.0
- fix the version ofPyTorch Lightning
to be the latest version below2.0.0
. In the future, we need to update API used in the notebook. But for now, it should be fine.- allow for latest version of
roboflow
to enable new authentication API - update transformers API
reduce_labels
->do_reduce_labels
I'm closing the issue but feel free to reopen it in the future if needed.
from notebooks.
I've tried Yolov7/8 and they do alright. I was just hoping to get better results with segformer or mask2former.
from notebooks.
👋 Hello @jhayle21, thank you for leaving an issue on Roboflow Notebooks.
🐞 Bug reports
If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.
If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.
💬 Get in touch
Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.
To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.
from notebooks.
@Jacobsolawetz could you take a look at this bug report?
from notebooks.
I had the same error just now. Were you able to figure it out, @jhayle21 ?
from notebooks.
@robmarkcole, Thank you 100% agree. It also applies to test_epoch_end
---> on_test_epoch_end
from notebooks.
Thanks @SkalskiP , I was able to run it. I wonder if you can provide some input on the outputs I'm getting. I'm training a model on soccernet dataset with segmented soccer pitch lines. The output of the model is a bit strange.
While it's obvious that it is learning something it seems to struggle to learn background class. I wonder if I have to do something special for that as in the dataset, background is the largest class. Currently it's labeled as 0, and has a special name in the class list.
from notebooks.
Hi, @mazatov 👋🏻!
This looks like a very interesting project. How large is the dataset? How long did you train?
from notebooks.
from notebooks.
The main problem here is the fact that the objects you try to detect are thin. In the past, I trained two models like that. And I managed to do that with Mask R-CNN and YOLOv7.
from notebooks.
Related Issues (20)
- [Contribution] how-to-track-and-count-vehicles-with-yolov8.ipynb updated with latest Supervision 0.13.0 API HOT 4
- Request for OCR Notebook Tutorial in Computer Vision HOT 2
- DETR Notebook "Name Error Image_Processor is not defined" HOT 3
- Error deploying retrained YOLOv8 weights: ModuleNotFoundError for 'ultralytics.utils' HOT 3
- RuntimeError: CUDA error: an illegal memory access was encountered HOT 2
- Grounding Dino notebook using MMDetection HOT 2
- Custom Object Detection HOT 2
- attribute error boxannotator HOT 5
- attribute error boxannotator HOT 1
- Trainer.__init__() got an unexpected keyword argument 'gpus'
- Detectron2 Cannot find field 'gt_masks' in the given Instances!
- Unable to run evaluation with the provided trained model
- unable to train data on roboflow100 dataset
- Counting Bug
- Counting Bug
- Unable to Move to Next Image During Labeling
- Incompatibility with latest supervision version: no detections_to_voc_xml
- error in classification model which i had built a few days ago HOT 1
- Tuple Unpack Problem in Byte Tracker of Supervision: 0.18.0 HOT 3
- Related to the blog post of speed estimation using supervision HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notebooks.