GithubHelp home page GithubHelp logo

Comments (5)

fyu avatar fyu commented on July 4, 2024 1

Upgrading numpy to version 1.20.3 appears to have solved the problem. Perhaps pycocotools has been updated with a newer version of numpy?

Yes, pycocotools looks like the culprit.

from bdd100k.

fyu avatar fyu commented on July 4, 2024

This is because your install python libraries are depending on different numpy versions. You can resolve this issue by creating a clean virtual python environment and install all the required libraries with pip install -r requirements.txt from scratch.

from bdd100k.

pcicales avatar pcicales commented on July 4, 2024

Hello @fyu , thank you for the wonderful dataset and rapid reply!

That is what I did using an anaconda env, still using the same command you listed. Here is the version info:

Python 3.7.10 (default, Feb 26 2021, 18:47:35)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import numpy
print(numpy._ _ version _ _)
1.19.5

from bdd100k.

fyu avatar fyu commented on July 4, 2024

You have the right numpy version, but some of your libraries (maybe pycocotools) depend on a different version of numpy. A clean install usually solves the problem.

from bdd100k.

pcicales avatar pcicales commented on July 4, 2024

Upgrading numpy to version 1.20.3 appears to have solved the problem. Perhaps pycocotools has been updated with a newer version of numpy? Here is the output of the same corrected command:

(bdd100k) redact@redact:/redact/workspace/pycharm_projects/bdd100k$ python3 -m bdd100k.label.to_coco -i /redact/bdd100k/labels/det_20/det_train.json -o /redact/datasets/bdd100k/labels/det_20_coco/det_train.json [2021-05-31 14:33:39,024 to_coco.py:577 main] Loading annotations... [2021-05-31 14:34:37,101 to_coco.py:586 main] Start format converting... 100%|██████████████████████████████████████████████████████████████████████████| 69863/69863 [00:01<00:00, 53779.44it/s] 100%|███████████████████████████████████████████████████████████████████████████| 69863/69863 [00:10<00:00, 6383.82it/s] [2021-05-31 14:34:49,386 to_coco.py:590 main] Saving converted annotations to disk... [2021-05-31 14:35:12,709 to_coco.py:593 main] Finished!

from bdd100k.

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.