Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

run example on CPU #2

Open
rokopi-byte opened this issue Jul 16, 2019 · 1 comment
Open

run example on CPU #2

rokopi-byte opened this issue Jul 16, 2019 · 1 comment

Comments

@rokopi-byte
Copy link

rokopi-byte commented Jul 16, 2019

First of all thanks for the code. I'm just starting to play around with these things and find very useful.
Just one thing.. to run on CPU I had to add this parameter map_location='cpu' to function load_state_dict of resnet.py, otherwise the notebook will give error on deserialization.(cell 5) and also removed ".cuda()" from here:

        segm = mnet.cuda()(img_inp)[0].data.cpu().numpy().transpose(1, 2, 0)

Is this correct or I miss something ?

@hitbuyi
Copy link

hitbuyi commented Nov 10, 2021

I want it runs on cpu using on Windows 10, and find the similar problems as @roccopietrini described above

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants