Giter Club home page Giter Club logo

Comments (5)

cpboost avatar cpboost commented on May 24, 2024

ModuleAttributeError Traceback (most recent call last)
in ()
4 CONFIG_FILE = './work_dirs/vf_r2_base/vfnet_r2_101_fpn_mdconv_c3-c5_mstrain_2x_coco.py'
5 CHECKPOINT_PATH = './work_dirs/vf_r2_base/epoch_20.pth'
----> 6 model = init_detector(CONFIG_FILE, CHECKPOINT_PATH)
7 img1='./data/coco/train2017/train_29635.jpg'
8 # img1='./normal/train_1.jpg'

8 frames
/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in getattr(self, name)
770 return modules[name]
771 raise ModuleAttributeError("'{}' object has no attribute '{}'".format(
--> 772 type(self).name, name))
773
774 def setattr(self, name: str, value: Union[Tensor, 'Module']) -> None:

ModuleAttributeError: 'Bottle2neck' object has no attribute 'conv2'

from varifocalnet.

hyz-xmaster avatar hyz-xmaster commented on May 24, 2024

Commenting delattr(self, 'conv2') in res2net.py can solve this issue.

from varifocalnet.

cpboost avatar cpboost commented on May 24, 2024

是这个位置的报的错。但是该如何解决

from varifocalnet.

hyz-xmaster avatar hyz-xmaster commented on May 24, 2024

Comment delattr(self, 'conv2') <=> # delattr(self, 'conv2')

from varifocalnet.

cpboost avatar cpboost commented on May 24, 2024

thank success

from varifocalnet.

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.