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

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

Open
miss1997yuan opened this issue Sep 7, 2019 · 2 comments
Open

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

miss1997yuan opened this issue Sep 7, 2019 · 2 comments

Comments

@miss1997yuan
Copy link

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

@cyizhuo
Copy link

cyizhuo commented Apr 26, 2020

Don't know if it helps or not, but I created conda env with:

conda install scipy==1.0.0 (must be installed first)
conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch

and Net-Dissection-Lite worked perfect (on linux, never successed on windows).

@maduc7
Copy link

maduc7 commented Nov 17, 2020

@miss1997yuan did you find any solution? I am facing the same error...
Thanks

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

3 participants