Comments (16)
Hmmm.... that's weird ... @alankritmishra Did you restart your runtime after installing pytorch-lightning ?
from pytorch_retinanet.
from pytorch_retinanet.
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.
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.
Okay let me try
from pytorch_retinanet.
@alankritmishra I have updated the demo notebook. Should work on colab now. Do check it out.
from pytorch_retinanet.
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.
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.
Did you try the new demo.ipynb notebook @alankritmishra ?
from pytorch_retinanet.
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.
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.
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.
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.
You need provide the absolute path to the annotations. And root_dir
is needed only for COCO datasets
from pytorch_retinanet.
Hi @benihime91 the original issue is resolved so closing this tracker. Can I dm you for this to work?
from pytorch_retinanet.
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)
- Should I add +1 to my custom num of classes on the RetinaNet head? HOT 1
- Running Colab code does not give output. HOT 40
- min object size HOT 2
- Error: ModuleNotFoundError: No module named 'torchvision.models.utils'
- Draw training and validating loss
- Dimension out of range (expected to be in range of [-1, 0], but got 1) HOT 1
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 pytorch_retinanet.