NetDissect-Lite icon indicating copy to clipboard operation
NetDissect-Lite copied to clipboard

max() arg is an empty sequence

Open hkd4321 opened this issue 5 years ago • 6 comments

File "NetDissect-Lite-master/NetDissect-Lite-master/visualize/bargraph.py", line 111, in make_svg_bargraph unitheight = float(barheight)/max(heights)

ValueError : max() arg is an empty sequence

I downloaded dataset and run the code but there is no heights value. Can you help me?

hkd4321 avatar Oct 24 '19 02:10 hkd4321

Same problem here. Does this mean that no explained unit was found?

emanuele-albini avatar Oct 29 '19 10:10 emanuele-albini

I have the same problem. Have you solved it ?

Vanellope0602 avatar Feb 28 '20 13:02 Vanellope0602

I am having the same error..was anybody able to solve it?

DhwaniMehta23 avatar Apr 09 '20 10:04 DhwaniMehta23

Same error, any resolutions? Please guide us.

drishyamlabs avatar Jul 17 '20 05:07 drishyamlabs

I have the same problem. Has anyone solved it?

DeathYmz avatar Oct 19 '20 08:10 DeathYmz

well I found the most of score in tally.csv under 0.04 , so I change the threshold in (def bar_graph_svg) , Then I solved the problem.

and I found in setting.py the CATAGORIES = ["object", "part","scene","texture","color"] lack 'material', add this the problem also could be solved.

DeathYmz avatar Oct 19 '20 09:10 DeathYmz