Verg-Avesta / CounTR

CounTR: Transformer-based Generalised Visual Counting
https://verg-avesta.github.io/CounTR_Webpage/
MIT License
92 stars 9 forks source link

TypeError: 'type' object is not subscriptable #36

Open Haalum opened 10 months ago

Haalum commented 10 months ago

I'm getting the following error. Anyone else have seen this before? Thanks!

Traceback (most recent call last):
  File "FSC_test_cross_few-shot.py", line 24, in <module>
    import util.misc as misc
  File "/home/jibanul/research/counting/CounTR/util/misc.py", line 407, in <module>
    def plot_counts(res_csv: Union[str, list[str]], output_dir: str, suffix: str = "", smooth: bool = False):
TypeError: 'type' object is not subscriptable