You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(pvnet) mona@mona-ThinkStation-P7:~/pvnet$ python tools/demo.py
Downloading: "https://download.pytorch.org/models/resnet18-5c106cde.pth" to /home/mona/pvnet/data/model/resnet18-5c106cde.pth
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 44.7M/44.7M [00:00<00:00, 86.0MB/s]
/home/mona/anaconda3/envs/pvnet/lib/python3.10/site-packages/torch/nn/_reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='none' instead.
warnings.warn(warning.format(ret))
Traceback (most recent call last):
File "/home/mona/pvnet/tools/demo.py", line 189, in <module>
demo()
File "/home/mona/pvnet/tools/demo.py", line 164, in demo
load_model(net.module.net, optimizer, model_dir, -1)
File "/home/mona/pvnet/lib/utils/net_utils.py", line 96, in load_model
pths = [int(pth.split('.')[0]) for pth in os.listdir(model_dir)]
File "/home/mona/pvnet/lib/utils/net_utils.py", line 96, in <listcomp>
pths = [int(pth.split('.')[0]) for pth in os.listdir(model_dir)]
ValueError: invalid literal for int() with base 10: 'cat_199'
(pvnet) mona@mona-ThinkStation-P7:~/pvnet$ python
Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
I get this error for the cat demo:
Here's the list of packages:
and
The text was updated successfully, but these errors were encountered: