CSAILVision / CSAILVision/NetDissect

problem when use the pytorch version,have no idea with it

Ouverte
#22 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
455
Forks
114
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Traceback (most recent call last):
File "src/netprobe_pytorch.py", line 291, in
split=args.split, cl_args=args, verbose=True)
File "src/netprobe_pytorch.py", line 52, in create_probe
data = loadseg.SegmentationData(args.dataset)
File "/home/czy/NetDissect/src/loadseg.py", line 63, in __init__
self.image = [decode_index_dict(r) for r in DictUnicodeReader(f)]
File "/home/czy/NetDissect/src/unicsv.py", line 48, in __init__
self.reader = csv.DictReader(f, dialect=dialect, **kwds)
File "/home/czy/.conda/envs/python36/lib/python3.6/csv.py", line 87, in __init__
self.reader = reader(f, dialect, *args, **kwds)
TypeError: argument 1 must be an iterator

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by reproducing the PyTorch entry point in src/netprobe_pytorch.py, then trace create_probe into src/loadseg.py and src/unicsv.py where the traceback reaches csv.DictReader. Check the dataset-loading path and Python compatibility, and consider the issue done when the PyTorch version starts without this TypeError.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python, pytorch
Domaine
machine-learning
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.