Code Monkey home page Code Monkey logo

Comments (3)

guchengxi1994 avatar guchengxi1994 commented on September 7, 2024

it seems that your file path is different from mine. in this script, these files should be located at this filepath:
`
imgPath = 'D:\testALg\mask2json\mask2json\static\multi_objs_test.jpg'

maskPath = 'D:\\testALg\\mask2json\\mask2json\\static\\multi_objs_json\\label.png'

savePath = 'D:\\testALg\\mask2json\\mask2json\\static\\multi_objs_json\\1109\\'

yamlPath = 'D:\\testALg\\mask2json\\mask2json\\static\\multi_objs_json\\info.yaml'`

you should check whether you have this files

from mask2json.

siwalex avatar siwalex commented on September 7, 2024

hello,

i have all the files (i dowloaded your github zip)

i changed in E:\Mega\Alexandre\car_dataset\mask2json\test_scripts\mask2json.py lines 92 to 95 by :

imgPath = 'E:\\Mega\\Alexandre\\car_datase\\mask2json\\static\\multi_objs_test.jpg'
maskPath = 'E:\\Mega\\Alexandre\\car_datase\\mask2json\\static\\multi_objs_json\\label.png'
savePath = 'E:\\Mega\\Alexandre\\car_datase\\mask2json\\static\\multi_objs_json\\1109\\'
yamlPath = 'E:\\Mega\\Alexandre\\car_datase\\mask2json\\static\\multi_objs_json\\info.yaml'

and have this error :

λ python mask2json.py
Traceback (most recent call last):
File "mask2json.py", line 98, in
getMultiShapes.getMultiShapes(imgPath, maskPath, savePath) # without yaml
File "..\convertmask\utils\methods\getMultiShapes.py", line 233, in getMultiShapes
raise FileNotFoundError('mask/labeled image not found')
FileNotFoundError: mask/labeled image not found

from mask2json.

guchengxi1994 avatar guchengxi1994 commented on September 7, 2024

mask2json

I tested on my pc it worked well...

I noticed that you install this repo by pip, but the version on pypi has not been updated for a long time. That may be the reason you cannot run this script. It is my fault ,sorry about that. To deal with this problem, you can git clone this repo, switch to the test branch and try again.

from mask2json.

Related Issues (17)

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.