You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to add my project I created a fork of your repo .
I created a new directory for my project which is a backbone, inside the projects directory (not the one inside detectron2 folder)
this a screenshot of the files I created there is the parent directory BrainSeg-rcnn inside it there is brainSeg folder, inside this folder there is the files I created
in init.py
from .brainSeg import BrainSegBackbone
from .config import add_brainSeg_config
and after installing detectron, with !python -m pip -q install 'git+https://github.com/amida47/detectron2' and running from detectron2.projects.brainSeg import * I get
ModuleNotFoundError Traceback (most recent call last)
[<ipython-input-3-b2834b7f750a>](https://localhost:8080/#) in <module>()
----> 1 from detectron2.projects.brainSeg import *
ModuleNotFoundError: No module named 'detectron2.projects.brainSeg'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In order to add my project I created a fork of your repo .

I created a new directory for my project which is a backbone, inside the projects directory (not the one inside detectron2 folder)
this a screenshot of the files I created there is the parent directory BrainSeg-rcnn inside it there is brainSeg folder, inside this folder there is the files I created
in init.py
and in config.py
I went then to detectron2 -> projects -> init.py and added brainSeg to the projects dict
and after installing detectron, with
!python -m pip -q install 'git+https://github.com/amida47/detectron2'
and runningfrom detectron2.projects.brainSeg import *
I getBeta Was this translation helpful? Give feedback.
All reactions