garrickbrazil / M3D-RPN

MIT License
261 stars 67 forks source link

train the model using a model_20000_pkl error #8

Open leonzgtee opened 5 years ago

leonzgtee commented 5 years ago

hello, i sorry to interrupt you, i meet a error when i try to run the script of train_rpn_3d.py with a pretrained weights model_20000_pk.the weights pkl file is from a warmup training. the error is :File "/home/PycharmProjects/models_git/M3D-RPN-master/scripts/../../M3D-RPN-master/output/kitti_3d_multi_main/densenet121_3d_dilate_depth_aware.py", line 302, in build src_weights[dst_weight_key] = src_weights[src_weight_key].repeat(conf.bins, 1, 1, 1) KeyError: 'module.prop_feats.0.weight'. seems that i can not use the pretrained model,

garrickbrazil commented 5 years ago

Can you provide details on your python version and packages, etc? It seems that for this type of error there is probably something inconsistent in that realm. You can refer to this installation guide and this packages lists as an additional resource for debugging.

aoi-lab commented 1 year ago

@garrickbrazil Sorry for the abruptness. I too faced the same problem. The versions of Python and other packages are as follows. (I am trying to reproduce as closely as possible the environment you presented.) Do you know the cause of this problem ?

[Environment] Ubuntu 16.04 cuda 9.1 cudnn 7.1.3 GPU: NVIDIA GeForce GTX 1080 Ti Python 3.6.10 :: Anaconda, Inc.

[conda list] _anaconda_depends 2019.03 py36_0 _ipyw_jlab_nb_ext_conf 0.1.0 py36he11e457_0 _libgcc_mutex 0.1 main alabaster 0.7.10 py36h306e16b_0 anaconda custom py36_1 anaconda-client 1.6.14 py36_0 anaconda-navigator 1.8.7 py36_0 anaconda-project 0.8.2 py36h44fb852_0 asn1crypto 0.24.0 py36_0 astroid 1.6.3 py36_0 astropy 3.0.2 py36h3010b51_1 atlas 3.8.4 0 https://repo.anaconda.com/pkgs/free atomicwrites 1.4.0 py_0 attrs 18.1.0 py36_0 babel 2.5.3 py36_0 backcall 0.1.0 py36_0 backports 1.0 py36hfa02d7e_1 backports.os 0.1.1 py36h06a4308_1000 backports.shutil_get_terminal_size 1.0.0 py36hfea85ff_2 beautifulsoup4 4.6.0 py36h49b8c8c_1 bitarray 0.8.1 py36h14c3975_1 bkcharts 0.2 py36h735825a_0 blas 1.0 mkl blaze 0.11.3 py36_0 anaconda bleach 2.1.3 py36_0 blosc 1.14.3 hdbcaa40_0 bokeh 0.12.16 py36_0 boto 2.48.0 py36h6e4cd66_1 bottleneck 1.2.1 py36haac1ea0_0 bzip2 1.0.6 h14c3975_5 c-ares 1.18.1 h7f8727e_0 ca-certificates 2022.9.24 ha878542_0 conda-forge cairo 1.14.12 h8948797_3 certifi 2021.5.30 py36h5fab9bb_0 conda-forge cffi 1.11.5 py36h9745a5d_0 chardet 3.0.4 py36h0f667ec_1 click 6.7 py36h5253387_0 cloudpickle 0.5.3 py36_0 clyent 1.2.2 py36h7e57e65_1 colorama 0.3.9 py36h489cec4_0 conda 4.10.3 py36h5fab9bb_2 conda-forge conda-build 3.10.5 py36_0 conda-env 2.6.0 h36134e3_1 conda-package-handling 1.7.3 py36h27cfd23_1 conda-verify 2.0.0 py36h98955d8_0 contextlib2 0.5.5 py36h6c84a62_0 cryptography 3.3.2 py36h3c74f83_0 cuda91 1.0 h4c16780_0 pytorch cudatoolkit 9.0 h13b8566_0 cudnn 7.1.2 cuda9.0_0 anaconda curl 7.82.0 h7f8727e_0 cycler 0.10.0 py36h93f1223_0 cython 0.28.2 py36h14c3975_0 cytoolz 0.9.0.1 py36h14c3975_0 dask 0.17.5 py36_0 dask-core 0.17.5 py36_0 datashape 0.5.4 py36h3ad6b5c_0 dbus 1.13.2 h714fa37_1 decorator 4.3.0 py36_0 defusedxml 0.7.1 pyhd3eb1b0_0 distributed 1.21.8 py36_0 docutils 0.14 py36hb0f60f5_0 easydict 1.9 py_0 conda-forge entrypoints 0.2.3 py36h1aec115_2 et_xmlfile 1.0.1 py36hd6bccc3_0 expat 2.4.4 h295c915_0 fastcache 1.0.2 py36h14c3975_2 filelock 3.0.4 py36_0 flask 1.0.2 py36_1 flask-cors 3.0.4 py36_0 fontconfig 2.13.0 h9420a91_0 freetype 2.11.0 h70c0345_0 fribidi 1.0.10 h7b6447c_0 geos 3.7.1 hf484d3e_1000 conda-forge get_terminal_size 1.0.0 haa9412d_0 gevent 1.3.0 py36h14c3975_0 glib 2.56.2 hd408876_0 glob2 0.6 py36he249c77_0 gmp 6.1.2 h6c8ec71_1 gmpy2 2.0.8 py36hc8893dd_2 graphite2 1.3.11 h16798f4_2 greenlet 0.4.13 py36h14c3975_0 gst-plugins-base 1.14.0 hbbd80ab_1 gstreamer 1.14.0 hb453b48_1 h5py 2.7.1 py36ha1f6525_2 harfbuzz 1.8.8 hffaf4a1_0 hdf5 1.10.2 hba1933b_1 heapdict 1.0.0 py36_2 html5lib 1.0.1 py36h2f9c1c0_0 icu 58.2 h9c2bf20_1 idna 2.6 py36h82fb2a8_1 imageio 2.3.0 py36_0 imagesize 1.0.0 py36_0 importlib-metadata 4.8.1 py36h06a4308_0 importlib_metadata 4.8.1 hd3eb1b0_0 intel-openmp 2018.0.0 8 ipykernel 4.8.2 py36_0 ipython 6.4.0 py36_0 ipython_genutils 0.2.0 py36hb52b0d5_0 ipywidgets 7.2.1 py36_0 isort 4.3.4 py36_0 itsdangerous 0.24 py36h93cc618_1 jbig 2.1 hdba287a_0 jdcal 1.4 py36_0 jedi 0.12.0 py36_1 jeepney 0.7.1 pyhd3eb1b0_0 jinja2 2.10 py36ha16c418_0 joblib 1.0.1 pyhd3eb1b0_0 anaconda jpeg 9b h024ee3a_2 json5 0.9.6 pyhd3eb1b0_0 jsonschema 2.6.0 py36h006f8b5_0 jupyter 1.0.0 py36_4 jupyter_client 5.2.3 py36_0 jupyter_console 5.2.0 py36he59e554_1 jupyter_core 4.4.0 py36h7c827e3_0 jupyterlab 0.32.1 py36_0 jupyterlab_launcher 0.10.5 py36_0 jupyterlab_server 1.0.0 py_0 keyring 23.1.0 py36h06a4308_0 kiwisolver 1.0.1 py36h764f252_0 krb5 1.19.2 hac12032_0 lazy-object-proxy 1.3.1 py36h10fcdad_0 ld_impl_linux-64 2.38 h1181459_1 libblas 3.8.0 14_mkl conda-forge libcblas 3.8.0 14_mkl conda-forge libcurl 7.82.0 h0b77cf5_0 libedit 3.1.20210910 h7f8727e_0 libev 4.33 h7f8727e_1 libffi 3.2.1 hd88cf55_4 libgcc-ng 9.1.0 hdf63c60_0 libgfortran 3.0.0 1 https://repo.anaconda.com/pkgs/free libgfortran-ng 7.2.0 hdf63c60_3 liblapack 3.8.0 14_mkl conda-forge libnghttp2 1.46.0 hce63b2e_0 libpng 1.6.37 hbc83047_0 libprotobuf 3.6.0 hdbcaa40_0 libsodium 1.0.16 h1bed415_0 libssh2 1.10.0 h8f2d780_0 libstdcxx-ng 9.1.0 hdf63c60_0 libtiff 4.0.9 he85c1e1_1 libtool 2.4.6 h544aabb_3 libuuid 1.0.3 h7f8727e_2 libxcb 1.13 h1bed415_1 libxml2 2.9.8 h26e45fe_1 libxslt 1.1.32 h1312cb7_0 llvmlite 0.23.1 py36hdbcaa40_0 locket 0.2.0 py36h787c0ad_1 lxml 4.2.1 py36h23eabaa_0 lz4-c 1.9.3 h295c915_1 lzo 2.10 h49e0be7_2 markupsafe 1.0 py36hd9260cd_1 matplotlib 3.1.1 py36h5429711_0 mccabe 0.6.1 py36h5ad9710_1 mistune 0.8.3 py36h14c3975_1 mkl 2019.4 243 anaconda mkl-service 2.3.0 py36he8ac12f_0 anaconda mkl_fft 1.0.1 py36h3010b51_0 mkl_random 1.0.1 py36h629b387_0 more-itertools 4.1.0 py36_0 mpc 1.0.3 hec55b23_5 mpfr 3.1.5 h11a74b3_2 mpmath 1.0.0 py36hfeacd6b_2 msgpack-python 0.5.6 py36h6bb024c_0 multipledispatch 0.5.0 py36_0 navigator-updater 0.2.1 py36_0 nbconvert 5.3.1 py36hb41ffb7_0 nbformat 4.4.0 py36h31c9010_0 nccl 1.3.5 cuda9.0_0 ncurses 6.3 h7f8727e_2 networkx 2.1 py36_0 ninja 1.10.2 h06a4308_5 ninja-base 1.10.2 hd09550d_5 nltk 3.3.0 py36_0 nose 1.3.7 pyhd3eb1b0_1008 notebook 5.5.0 py36_0 numba 0.38.0 py36h637b7d7_0 numexpr 2.7.0 py36hd81dba3_0 anaconda numpy 1.16.4 py36h95a1406_0 conda-forge numpy-base 1.16.4 py36hde5b4d6_0 anaconda numpydoc 0.8.0 py36_0 odo 0.5.1 py36h90ed295_0 olefile 0.45.1 py36_0 openblas 0.2.19 0 https://repo.anaconda.com/pkgs/free opencv3 3.1.0 py36_0 menpo openpyxl 2.5.3 py36_0 openssl 1.1.1t h7f8727e_0 packaging 17.1 py36_0 pandas 0.23.0 py36h637b7d7_0 pandoc 1.19.2.1 hea2e7c5_1 pandocfilters 1.4.2 py36ha6701b7_1 pango 1.42.3 h8589676_0 parso 0.2.0 py36_0 partd 0.3.8 py36h36fd896_0 patchelf 0.9 hf79760b_2 path.py 11.0.1 py36_0 pathlib2 2.3.2 py36_0 patsy 0.5.0 py36_0 pcre 8.42 h439df22_0 pep8 1.7.1 py36_0 pexpect 4.5.0 py36_0 pickleshare 0.7.4 py36h63277f8_0 pillow 5.4.1 py36h34e0f95_0 pip 21.2.2 py36h06a4308_0 pixman 0.34.0 hceecf20_3 pkginfo 1.4.2 py36_1 pluggy 0.6.0 py36hb689045_0 ply 3.11 py36_0 prometheus_client 0.13.1 pyhd3eb1b0_0 prompt_toolkit 1.0.15 py36h17d85b1_0 protobuf 3.6.0 py36hf484d3e_0 psutil 5.4.5 py36h14c3975_0 ptyprocess 0.5.2 py36h69acd42_0 py 1.5.3 py36_0 pycodestyle 2.4.0 py36_0 pycosat 0.6.3 py36h0a5515d_0 pycparser 2.18 py36hf9f622e_1 pycrypto 2.6.1 py36h14c3975_8 pycurl 7.44.1 py36h8f2d780_1 pyflakes 1.6.0 py36h7bd6a15_0 pygments 2.2.0 py36h0d3125c_0 pylint 1.8.4 py36_0 pyodbc 4.0.23 py36hf484d3e_0 pyopenssl 18.0.0 py36_0 pyparsing 2.2.0 py36hee85983_1 pyqt 5.9.2 py36h751905a_0 pyrsistent 0.17.3 py36h7b6447c_0 pysocks 1.6.8 py36_0 pytables 3.4.3 py36h02b9ad4_2 pytest 3.5.1 py36_0 pytest-arraydiff 0.2 py36_0 pytest-astropy 0.3.0 py36_0 pytest-doctestplus 0.1.3 py36_0 pytest-openfiles 0.3.0 py36_0 pytest-remotedata 0.2.1 py36_0 python 3.6.10 h191fe78_1 python-dateutil 2.7.3 py36_0 python_abi 3.6 2_cp36m conda-forge pytorch 0.4.1 py36ha74772b_0 anaconda pytz 2018.4 py36_0 pywavelets 0.5.2 py36he602eb0_0 pyyaml 3.12 py36hafb9ca4_1 pyzmq 17.0.0 py36h14c3975_0 qt 5.9.7 h5867ecd_1 qtawesome 0.4.4 py36h609ed8c_0 qtconsole 4.3.1 py36h8f73b5b_0 qtpy 1.4.1 py36_0 readline 7.0 h7b6447c_5 requests 2.18.4 py36he2e5f8d_1 rope 0.10.7 py36h147e2ec_0 ruamel_yaml 0.15.35 py36h14c3975_1 scikit-image 0.13.1 py36h14c3975_1 scikit-learn 0.22.1 py36hd81dba3_0 anaconda scipy 1.3.2 py36h7c811a0_0 anaconda seaborn 0.8.1 py36hfad7ec4_0 secretstorage 3.3.1 py36h06a4308_0 send2trash 1.5.0 py36_0 setuptools 58.0.4 py36h06a4308_0 shapely 1.6.4 py36h06cd6f9_1005 conda-forge simplegeneric 0.8.1 py36_2 singledispatch 3.4.0.3 py36h7a266c3_0 sip 4.19.8 py36hf484d3e_0 six 1.11.0 py36h372c433_1 snappy 1.1.7 hbae5bb6_3 snowballstemmer 1.2.1 py36h6febd40_0 sortedcollections 0.6.1 py36_0 sortedcontainers 1.5.10 py36_0 soupsieve 2.3.1 pyhd3eb1b0_0 sphinx 1.7.4 py36_0 sphinxcontrib 1.0 py36h6d0f590_1 sphinxcontrib-websupport 1.0.1 py36hb5cb234_1 spyder 3.2.8 py36_0 spyder-kernels 1.4.0 py36_0 sqlalchemy 1.2.7 py36h6b74fdf_0 sqlite 3.33.0 h62c20be_0 statsmodels 0.9.0 py36h3010b51_0 sympy 1.1.1 py36hc6d1c1c_0 tbb 2018.0.4 h6bb024c_1 tbb4py 2018.0.4 py36h6bb024c_1 tblib 1.3.2 py36h34cf8b6_0 terminado 0.8.1 py36_1 testpath 0.3.1 py36h8cadb63_0 tk 8.6.12 h1ccaba5_0 toolz 0.9.0 py36_0 torchfile 0.1.0 py_0 conda-forge torchvision 0.2.1 py36_0 tornado 5.0.2 py36_0 tqdm 4.63.0 pyhd3eb1b0_0 traitlets 4.3.2 py36h674d592_0 typed-ast 1.4.3 py36h7f8727e_1 typing 3.6.4 py36_0 typing_extensions 4.1.1 pyh06a4308_0 unicodecsv 0.14.1 py36ha668878_0 unixodbc 2.3.6 h1bed415_0 urllib3 1.22 py36hbe7ace6_0 visdom 0.1.8.5 0 conda-forge wcwidth 0.1.7 py36hdf4376a_0 webencodings 0.5.1 py36h800622e_1 websocket-client 1.3.1 pyhd8ed1ab_0 conda-forge werkzeug 1.0.1 pyhd3eb1b0_0 wheel 0.37.1 pyhd3eb1b0_0 widgetsnbextension 3.2.1 py36_0 wrapt 1.10.11 py36h28b7045_0 wurlitzer 2.1.1 py36h06a4308_0 xlrd 1.1.0 py36h1db9f0c_1 xlsxwriter 1.0.4 py36_0 xlwt 1.3.0 py36h7b00a1f_0 xz 5.2.5 h7f8727e_1 yaml 0.1.7 had09818_2 zeromq 4.2.5 h439df22_0 zict 0.1.3 py36h3a3bf81_0 zipp 3.6.0 pyhd3eb1b0_0 zlib 1.2.12 h7f8727e_2 zstd 1.5.2 ha4553b6_0