Git Product home page Git Product logo

Comments (14)

FateScript avatar FateScript commented on June 29, 2024 1

Oh, I see. from cvpods.checkpoint import DetectionCheckpointer
Change this into from cvpods.checkpoint import DefaultCheckpointer as DetectionCheckpointer

Reference:
code here

from borderdet.

FateScript avatar FateScript commented on June 29, 2024

Please run cvpod_train under dir like this. otherwise cvpods will not find your config and network.

Read the README.md carefully, please.

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

i run cvpods_train under dir like what you said
however, cvpods cant find config and network, why?
image
image
image
image
image
Did I get the directory structure wrong?

from borderdet.

FateScript avatar FateScript commented on June 29, 2024

@shenhaibb Please provide text error log next time, thanks. Image is not convenient for users to search and for me to check.

For your issue, it seems that your cvpods doesn't contains checkpoint in utils directory.

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

sorry, i will provide text instead of image next time

我的目录结构如下:

  • BordeDet-master
    • playgound
    • tools
    • ...
    • cvpods
      • cvpods
        • checkpoints
        • configs
      • datasets
      • tools
      • ...

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

Shoud i put all codes in BorderDet-master into cvpods-master folder?
I hava tried many structure but no one work

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

sorry, i will provide text instead of image next time

我的目录结构如下:

  • BordeDet-master

    • playgound

    • tools

    • ...

    • cvpods

      • cvpods

        • checkpoints
        • configs
      • datasets

      • tools

      • ...

There seems to be a problem with this directory structure.
After compiling, from cvpods layers, modeling, structure... in borderdet.py cant be imported
I think the cvpods folder should contain the borderdet folder (trying)

  • cvpods
    • cvpods
      • checkpoints
      • configs
      • ...
    • datasets
    • BordeDet
      • playground
      • tools

And setup.py in the BorderDet
def get_version():
init_py_path = path.join(path.abspath(path.dirname(__file__)), "cvpods", "__init__.py")

Do we need to replace it with the following code:

init_py_path = path.join(path.abspath(path.dirname(__file__)), "cvpods", "cvpods", "__init__.py")

Otherwise it will show the fault

No such file or directory: 'BorderDet/cvpods/__init__.py'

Or what is the correct directory structure of the item?

from borderdet.

FateScript avatar FateScript commented on June 29, 2024

Did you cd your path to cvpods and run setup.py ? Plz don't use setup.py in BorderDet

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

Did you cd your path to cvpods and run setup.py ? Plz don't use setup.py in BorderDet

git clone https://github.com/Megvii-BaseDetection/cvpods.git

the name of this repo is cvpods, and there is a folder named cvpods in this repo

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

Did you cd your path to cvpods and run setup.py ? Plz don't use setup.py in BorderDet

I use Pycharm, download BorderDet and put it into Pycharm
then I git clone cvpods.git in BorderDet's path

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

my directory structure like this,

  • cvpods-master
    • cvpods
      • checkpoints
      • configs
      • ...
    • datasets
    • BordeDet
      • playground
      • tools

and then I enter this cmd cd BorderDet/playground/detection/coco/borderdet/borderdet.res50.fpn.coco.800size.1x
pods_train --num-gpus 8

No module named 'config' in 'cvpods-master/tools/train_net.py', line 151

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

hey I solved it
my directory structure like this,

  • cvpods-master
    • cvpods
      • checkpoints
      • configs
      • ...
    • datasets
    • BordeDet
      • playground
      • tools

then cd BorderDet && python3 setup.py build develop
there will be an error No such file or directory: 'BorderDet/cvpods/__init__.py' never mind
under BorderDet/tools, new 2 files 'pods_test' and pods_train can be seen

and then delete Line 192 in cvpods-master/setup.py, because there is no tools/pods_debug, and add BorderDet path like below
scripts=[ "BorderDet/tools/pods_train", "BorderDet/tools/pods_test" ],

and then enter cmd python3 setup.py build develop under cvpods-master
FInished processing dependencies for cvpods==0.1...

then turn to BorderDet/tools/train_net.py
there is an error in Line 26, change to below code.
from cvpods.checkpoint.checkpoint import DetectionCheckpointer

then cd BorderDet/playground/detection/coco/borderdet/borderdet.res50.fpn.coco.800size.1x
and pods_train --num-gpus 8

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

Permission denied: '/data'

turn to BorderDet/playground/detection/coco/borderdet/borderdet.res50.fpn.coco.800size.1x/config.py
Line 63 '/data/Outputs/model_logs/cvpods_playground',
change to 'data/Outputs/model_logs/cvpods_playground',

from borderdet.

shenhaibb avatar shenhaibb commented on June 29, 2024

Traceback (most recent call last):
File "/media/henu/新加卷1/rxh/cvpods-master/BorderDet/tools/train_net.py",
line 216, in
launch(
File "/media/henu/新加卷1/rxh/cvpods-master/cvpods/engine/launch.py", lin
e 64, in launch
main_func(*args)
File "/media/henu/新加卷1/rxh/cvpods-master/BorderDet/tools/train_net.py",
line 203, in main
stage_main(args, config, build_model)
File "/media/henu/新加卷1/rxh/cvpods-master/BorderDet/tools/train_net.py",
line 126, in stage_main
cfg, logger = default_setup(cfg, args)

Is it produced by my change ?

from borderdet.

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.