icoz69 / CaNet

The code for paper "CANet: Class-Agnostic Segmentation Networks with Iterative Refinement and Attentive Few-Shot Learning"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some questions about the code

zhukaii opened this issue · comments

Error when the code runs to ‘turn off’ function, should model.module be modified to the model? The pytorch model does not seem to have the '.module' attribute, only the '.modules'.

CaNet/train.py

Line 103 in fdce946

model=nn.DataParallel(model,[0,1])

Did you comment this line? When single GPU is available, using model=nn.DataParallel(model,[0]) may fix this problem.

0 and 1 are their GPU devices. If you have just one device, [0] will work as you described.