Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg2json with-gimp.svg image.jpg doesn't actually create a with-gimp.json file? #7

Open
wan-andrea opened this issue Jul 26, 2024 · 3 comments

Comments

@wan-andrea
Copy link

I followed the setup instructions and ran the command svg2json with-gimp.svg image.jpg but it doesn't actually create a with-gimp.json file anywhere I can see. Obviously, when trying to run labelme with-gimp.json, it results in an error that says "no such file: with-gimp.json". Any ideas why this might be happening? Thanks!

@Affonso-Gui
Copy link
Owner

Hello,

It seems like we had a missing dependency: a91d200
Hopefully re-running from the pip install -e svglabel/ (and maybe re-opening the terminal) should solve it!

@wan-andrea
Copy link
Author

Hi, thanks for checking. I re-installed and re-opened the terminal. Running "svg2json with-gimp.svg image.jpg" still doesn't do anything for me, but it does look like if I call the function in the Python script like this...
image

It does make a file:
image

The file, however, is not identifiable by Labelme:
image

I do wonder if it has something to do with different versions of Labelme. Do you have any idea what version you might have used when making this? Cheers

@wan-andrea wan-andrea closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
@wan-andrea wan-andrea reopened this Jul 30, 2024
@Affonso-Gui
Copy link
Owner

Hello,

Maybe the command was not added correctly to the path?
Could you give me more details on your environment (os, python version), and any error messages?

but it does look like if I call the function in the Python script like this...

The second argument should be the original image file.
So in this case:

svg2json("examples/with-gimp.svg", "examples/image.jpg")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants