Giter Site home page Giter Site logo

Comments (16)

benihime91 avatar benihime91 commented on June 4, 2024

Hmmm.... that's weird ... @alankritmishra Did you restart your runtime after installing pytorch-lightning ?

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

You could probably try looking here for some solutions https://stackoverflow.com/questions/66538407/unable-to-import-pytorch-lightning-on-google-colab. It's seems its due to a version mismatch between torchtext and pytorch-lightning

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

Colab has probably upgraded the default torch and torchvision version.

torch>=1.6.0 torchvision>=0.7.0

You could try reinstalling the versions mentioned above. Or another way would be to uninstall torchtext.

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Okay let me try

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

@alankritmishra I have updated the demo notebook. Should work on colab now. Do check it out.

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Thank you @benihime91 pytorch_lightning imported successfully after uninstalling torchtext . However, it shows there on module called 'model'

when I am trying from model import RetinaNetModel

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Thank you @benihime91 pytorch_lightning imported successfully after uninstalling torchtext . However, it shows there on module called 'model'

when I am trying from model import RetinaNetModel

Should we have to track it as another issue?

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

Did you try the new demo.ipynb notebook @alankritmishra ?

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Yes, and it worked, but I already have csv files for annonation and was trying your original documentation in github.

Here is my Colab notebook for your reference. Thanks again for such quick response.

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

Hmmm.... You need to do

import sys
sys.path.append("/content/pytorch_retinanet/")

After cloning the repo and before importing modules from the RetinaNet repo itself.

Also you probably do not need to do

pip install -r /content/pytorch_retinanet/requirements.txt

in colab because these lines are already doing that

!pip install -Uqq pytorch-lightning==1.0.0 omegaconf
!pip install -Uqq git+https://github.com/albumentations-team/albumentations
!pip uninstall torchtext
!git clone https://github.com/benihime91/pytorch_retinanet.git

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

I came through that, Now I just have to mention the right path of my data in hparams.yaml.

It shows the below error:
FileNotFoundError: [Errno 2] No such file or directory: '/train/_annotations.csv'

Although, I already provide the root path in the root_dir placeholder

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Is there a way for the model to retrieve the data and annotation directly from my drive, or do I have to upload it on the runtime environment?

from pytorch_retinanet.

benihime91 avatar benihime91 commented on June 4, 2024

You need provide the absolute path to the annotations. And root_dir is needed only for COCO datasets

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Hi @benihime91 the original issue is resolved so closing this tracker. Can I dm you for this to work?

from pytorch_retinanet.

alankritmishra avatar alankritmishra commented on June 4, 2024

Hi @benihime91 the original issue is resolved so closing this tracker. Can I dm you for this to work?

I have emailed you.

from pytorch_retinanet.

Related Issues (7)

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.