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

Error while calculating J&F value #42

Closed
JawadTawhidi opened this issue Nov 24, 2023 · 2 comments
Closed

Error while calculating J&F value #42

JawadTawhidi opened this issue Nov 24, 2023 · 2 comments

Comments

@JawadTawhidi
Copy link

Hi, I downloaded your Pre-computed detections from image models(I downloaded the Unsup-DAVIS16-DEVA-DIS). I just want to give these results to DAVIS16 official code to regenerate the J and F values, I am using this official comman:

python tools/eval.py -i path-to-my-technique -o results.yaml --year 2016 --single-object --phase val

but this error comes:

[WARNING][24-11-2023 14:26:00] Temporal stability not available
[INFO][24-11-2023 14:26:00] Loading DAVIS year: 2016 phase: phase.VAL
[INFO][24-11-2023 14:26:00] Loading video segmentations from: Deva
Traceback (most recent call last):
File "python/tools/eval.py", line 80, in
osp.join(args.input,s),args.single_object) for s in db.iternames()]
File "/home/users/JawadT/davis-2017/python/lib/davis/dataset/base.py", line 127, in init
self.n_objects = _get_num_objects(self[0])
File "/home/ubuntu/anaconda3/envs/Second/lib/python2.7/site-packages/skimage/io/collection.py", line 264, in getitem
self.data[idx] = self.load_func(fname, **kwargs)
File "/home/users/JawadT/davis-2017/python/lib/davis/dataset/base.py", line 27, in load_annotation
annotation,
= imread_indexed(filename)
File "/home/users/JawadT/davis-2017/python/lib/davis/misc/io.py", line 13, in imread_indexed
return annotation,np.array(im.getpalette()).reshape((-1,3))
ValueError: cannot reshape array of size 1 into shape (3)

@JawadTawhidi
Copy link
Author

While it is working for results which are generated by other models.

@hkchengrex
Copy link
Owner

There are many ways to format the same output. The code that you are using is not maintained anymore iirc and expects a palette which we do not generate. You can use the eval code that we recommended in the documentation or implement it yourself w/ reference: davisvideochallenge/davis2017-evaluation#4

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