Giter Club home page Giter Club logo

Comments (2)

fredzzhang avatar fredzzhang commented on August 20, 2024

Hi @yaoyaosanqi,

The model returns a dict containing the losses during training, while during test it returns a list of detections. The error loss_dict['interaction_loss'].isnan(): TypeError: list indices must be integers or slices, not str suggests a list has been returned during training.

I need to know what changes you made to the code to find the problem. Run git status to find scripts that have been modified and look into the changes.

Fred.

from upt.

hutuo1213 avatar hutuo1213 commented on August 20, 2024

Following your suggestion, I checked the code and found that I commented out the training part when I was debugging before.

The issue was caused by my negligence. Already solved, thank you very much!

#if self.training:##$$targets:4list,只经过数据预处理,一个list一张图片 # interaction_loss = self.compute_interaction_loss(boxes, bh, bo, logits, prior, targets) # loss_dict = dict( # interaction_loss=interaction_loss # ) # return loss_dict

from upt.

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.