RuntimeError: Not implemented on the CPU [How to Solve]

Run at terminal:

python trainval_net.py --cuda

In pycharm

parser.add_argument('--cuda', dest='cuda', help='whether use CUDA', action='store_true')

Amend to read:

parser.add_argument('--cuda', dest='cuda', default=True,
                      help='whether use CUDA')

Read More: