Giter Club home page Giter Club logo

Comments (11)

robmarkcole avatar robmarkcole commented on May 18, 2024 1

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.

SkalskiP avatar SkalskiP commented on May 18, 2024 1

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 of PyTorch Lightning to be the latest version below 2.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.

mazatov avatar mazatov commented on May 18, 2024 1

I've tried Yolov7/8 and they do alright. I was just hoping to get better results with segformer or mask2former.

from notebooks.

github-actions avatar github-actions commented on May 18, 2024

👋 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.

SkalskiP avatar SkalskiP commented on May 18, 2024

@Jacobsolawetz could you take a look at this bug report?

from notebooks.

mazatov avatar mazatov commented on May 18, 2024

I had the same error just now. Were you able to figure it out, @jhayle21 ?

from notebooks.

mazatov avatar mazatov commented on May 18, 2024

@robmarkcole, Thank you 100% agree. It also applies to test_epoch_end ---> on_test_epoch_end

from notebooks.

mazatov avatar mazatov commented on May 18, 2024

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.

image

from notebooks.

SkalskiP avatar SkalskiP commented on May 18, 2024

Hi, @mazatov 👋🏻!

This looks like a very interesting project. How large is the dataset? How long did you train?

from notebooks.

mazatov avatar mazatov commented on May 18, 2024

from notebooks.

SkalskiP avatar SkalskiP commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.