lmbxmu / CLR-RNF

Pytorch implementation of our paper (TNNLS) -- Pruning Networks with Cross-Layer Ranking & k-Reciprocal Nearest Filters
https://arxiv.org/abs/2202.07190
12 stars 1 forks source link

imagenet.py #4

Open xyf996 opened 2 years ago

xyf996 commented 2 years ago

你好,请问为什么imagenet.py中graph_mobilenet_v1和graph_mobilenet_v2没有定义,报错了?

zyxxmu commented 2 years ago

论文里没有mobilenets的实验,这个repo暂时还不支持mobilenets

xyf996 commented 2 years ago

论文里没有mobilenets的实验,这个repo暂时还不支持mobilenets

好的,谢谢,那你们的实验实在Linux系统里面跑的嘛

zyxxmu commented 2 years ago

是的哈

xyf996 commented 2 years ago

是的哈

再请教一下,这个错误会是什么原因呢,发现解决不了 File "D: code \Anaconda3\envs\pytonch\Lib\site-packages\tonchvision/datasets\utils.py", line 34, in _urlretrieve with tqdm(total=response.length) as pbar: File "D:\code\Anaconda3\envs\pytorch\lib\tempfile.py",line 469,in getattr a = getattr(file,name) AttributeError: '_io.BufferedReader' object has no attribute 'length'

zyxxmu commented 2 years ago

再请教一下,这个错误会是什么原因呢,发现解决不了 File "D: code \Anaconda3\envs\pytonch\Lib\site-packages\tonchvision/datasets\utils.py", line 34, in _urlretrieve with tqdm(total=response.length) as pbar: File "D:\code\Anaconda3\envs\pytorch\lib\tempfile.py",line 469,in getattr a = getattr(file,name) AttributeError: '_io.BufferedReader' object has no attribute 'length'

只支持linux,不建议用windows跑