Giter Site home page Giter Site logo

Comments (8)

Fafa-DL avatar Fafa-DL commented on August 23, 2024

Which file does this error occur in executing? Please describe as complete as possible to quickly locate the problem.

“from utils.train_utils import get_info” is here utils/train_utils.py

from awesome-backbones.

1doshi avatar 1doshi commented on August 23, 2024

error arise in "get_annotation.py". I follow the tutorial for testing models (https://blog.csdn.net/zzh516451964zzh/article/details/124596425) and on 1.3 point cant go next.

from awesome-backbones.

Fafa-DL avatar Fafa-DL commented on August 23, 2024

As mentioned in the second step of 1.3, please open the terminal in the Awesome-Backbones/ directory to run

from awesome-backbones.

1doshi avatar 1doshi commented on August 23, 2024

currently i got that:
File "Awesome-Backbones\tools\get_annotation.py", line 31, in
main()
File "Awesome-Backbones\tools\get_annotation.py", line 10, in main
classes, indexs = get_info(classes_path)
File "Awesome-Backbones\utils\train_utils.py", line 128, in get_info
name,index = data.split(' ')
ValueError: too many values to unpack (expected 2)

from awesome-backbones.

Fafa-DL avatar Fafa-DL commented on August 23, 2024

please check Awesome-Backbones/datas/annotations.txt, Make sure the format is as follows

class_name_1 index_1
class_name_2 index_2
class_name_3 index_3

E.g

daisy 0
dandelion 1
roses 2
sunflowers 3
tulips 4

from awesome-backbones.

1doshi avatar 1doshi commented on August 23, 2024

my annotations.txt is correct

from awesome-backbones.

Fafa-DL avatar Fafa-DL commented on August 23, 2024

Maybe there are other spaces in your annotations.txt, my test here is normal

from awesome-backbones.

1doshi avatar 1doshi commented on August 23, 2024

Ok, thanks for all :)

p.s. now its working, i have extra space after index

from awesome-backbones.

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.