CSAILVision / CSAILVision/NetDissect

ValueError: max() arg is an empty sequence

Offen
#17 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
455
Forks
114
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,

I tried your toolbox using my trained model and your broden dataset. I ran rundissect.sh, and I finally got this:

Traceback (most recent call last):
File "src/report.py", line 425, in
verbose=True)
File "src/report.py", line 45, in generate_html_summary
save=ed.filename('html/' + barfn))
File "/home/cc/NetDissect-release1/src/bargraph.py", line 106, in bar_graph_svg
barheight, barwidth, show_labels, filename)
File "/home/cc/NetDissect-release1/src/bargraph.py", line 110, in make_svg_bargraph
unitheight = float(barheight) / max(heights)
ValueError: max() arg is an empty sequence

Do you know how to fix this problem? Thank you.
b.t.w. there is no html folder under NetDissect.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with src/bargraph.py at make_svg_bargraph and the call from src/report.py in generate_html_summary. Reproduce the rundissect.sh run with the trained model and Broden dataset, then trace why heights is empty and how the missing html directory is handled. Done means the run no longer raises this ValueError and produces the expected HTML output.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
machine-learning
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.