Giter Site home page Giter Site logo

imvision12 / segformer-tf Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 7.0 6.33 MB

A Tensorflow Implementation of "SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers"

Python 0.21% Jupyter Notebook 99.79%
image-segmentation segformer segmentation semantic-segmentation tensorflow transformer

segformer-tf's Introduction

Hi ๐Ÿ‘‹, I'm IMvision

๐Ÿ‘€ Iโ€™m interested in Machine Learning and Deep Learning

side_sticker

  • ๐ŸŽ“ I am a Computer Science student, just started my journey in Open-Source.
  • ๐Ÿ‘ฏ Iโ€™m looking forward to collaborate on open source projects.
  • ๐Ÿ’ฌ Ask me about computer vision, tensorflow, pytorch
  • ๐ŸŒฑ Iโ€™m currently learning: NLP, Generative AI(GPT, Stable Diffusion)
  • โœ” Fun fact : I Always try to learn something new and then sleep till it store in the brain ๐Ÿ˜Ž

side_sticker

๐Ÿ”จ๐Ÿ’ป Programming Languages, Frameworks, Libraries, Databases and Tools

C C++ Python SQL TensorFlow Pytorch keras Flask NumPy Matplotlib Pandas Pytest scikit learn Heroku MongoDB MySQL SQLite Google Colab Git GitHub Desktop Jupyter Stack Overflow Visual Studio Code

โšก Stats โšก


GitHub Stats GitHub Streak Stats

Top Languages

๐Ÿ† GitHub Trophies

segformer-tf's People

Contributors

imvision12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

segformer-tf's Issues

Which depencies are used?

Dear IMVision12,
I was wondering which dependencies you used to build this project with? I am getting an error while loading the model in the seformer notebook:

ValueError: Attempt to convert a value (None) with an unsupported type (<class 'NoneType'>) to a Tensor.

Exception encountered when calling MixVisionTransformer.call()

Hello, thanks for implementing this model. I'm having the following error when I try to instantiate a SegFormer, following the example in the repository. Any ideas how to fix it?

model = SegFormer_B3(input_shape = (224, 224, 3), num_classes = 19) 

  File D:\marcel\testes_diversos\notebook_atual\segformer_tf\models\segformer.py:93 in SegFormer_B3
    x = MixVisionTransformer(

  File D:\b3\envs\gdal_env\lib\site-packages\keras\src\utils\traceback_utils.py:123 in error_handler
    raise e.with_traceback(filtered_tb) from None

  File D:\marcel\testes_diversos\notebook_atual\segformer_tf\models\modules.py:266 in call
    x = self.call_features(x)

  File D:\marcel\testes_diversos\notebook_atual\segformer_tf\models\modules.py:234 in call_features
    x = blk(x, H, W)

  File D:\marcel\testes_diversos\notebook_atual\segformer_tf\models\modules.py:89 in call
    x = x + self.drop_path(self.attn(self.norm1(x), H, W))

RuntimeError: Exception encountered when calling MixVisionTransformer.call().

Could not automatically infer the output shape / dtype of 'mix_vision_transformer_2' (of type MixVisionTransformer). Either the `MixVisionTransformer.call()` method is incorrect, or you need to implement the `MixVisionTransformer.compute_output_spec() / compute_output_shape()` method. Error encountered:

Exception encountered when calling Layer.call().

Layer Layer does not have a `call()` method implemented.

Arguments received by Layer.call():
  โ€ข args=('tf.Tensor(shape=(None, None, 64), dtype=float32)',)
  โ€ข kwargs=<class 'inspect._empty'>

Arguments received by MixVisionTransformer.call():
  โ€ข args=('<KerasTensor shape=(None, 224, 224, 3), dtype=float32, sparse=None, name=keras_tensor_10>',)
  โ€ข kwargs=<class 'inspect._empty'>

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.