PyTorch-Encoding icon indicating copy to clipboard operation
PyTorch-Encoding copied to clipboard

Need to old version

Open fip-lab opened this issue 7 years ago • 7 comments

Hi, is there an old version of encoding? because the project to run depends on your old version of encoding, the current version does not support.

fip-lab avatar Oct 20 '18 06:10 fip-lab

Traceback (most recent call last): File "train_mobile.py", line 16, in from models.rfmobilenetv2plus import RFMobileNetV2Plus File "/home/dl/LightNet-master/test/models/rfmobilenetv2plus.py", line 6, in from modules import SCSEBlock, InPlaceABN, InPlaceABNWrapper, RFBlock File "/home/dl/LightNet-master/test/modules/init.py", line 1, in from .misc import GlobalAvgPool2d, CatInPlaceABN, ModifiedSCSEBlock, SCSEBlock, SEBlock, LightHeadBlock, VortexPooling File "/home/dl/LightNet-master/test/modules/misc.py", line 3, in from .bn import ABN File "/home/dl/LightNet-master/test/modules/bn.py", line 15, in from .functions import inplace_abn, inplace_abn_sync File "/home/dl/LightNet-master/test/modules/functions.py", line 5, in from . import _ext File "/home/dl/LightNet-master/test/modules/_ext/init.py", line 3, in from torch.utils.cpp_extension import _wrap_function ImportError: cannot import name '_wrap_function'

pytorch 1.0.0

fip-lab avatar Oct 20 '18 06:10 fip-lab

Hi, is there an old version of encoding? because the project to run depends on your old version of encoding, the current version does not support.

need support pytorch version = 0.3.0

fip-lab avatar Oct 20 '18 07:10 fip-lab

try pip install torch-encoding==

my462 avatar Oct 29 '18 12:10 my462

Now support PyTorch stable 1.0 https://github.com/zhanghang1989/PyTorch-Encoding/pull/156

zhanghang1989 avatar Dec 17 '18 22:12 zhanghang1989

Hi, Does this SynBatchNorm support PyTorch0.3.1 version? Thanks

weizequan avatar Dec 18 '18 14:12 weizequan

Sorry that we don’t support older versions. I will try to keep the package compatible with the latest master branch.

zhanghang1989 avatar Dec 18 '18 16:12 zhanghang1989

Hi, I found a similar issue.

The tutorial on this page (https://hangzhang.org/PyTorch-Encoding/experiments/texture.html) includes a test of the pre-trained model on MINC-2500, but the line python main.py --dataset minc --model deepten_resnet50_minc --nclass 23 --pretrained --eval doesn't work anymore. Specifically, it might be because of a change made in

PyTorch-Encoding/encoding/datasets/minc.py,

where in class MINCDataset, the init() no longer has 'train' and 'download' parameters.

I understand it is difficult to maintain every script in a large package, nevertheless I would appreciate if those no longer supported functions could be highlighted in a README file under the same folder.

Thanks

wzh1895 avatar Aug 06 '19 06:08 wzh1895