Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output_G = net(image)
- gt = output_G
- 以上代码适用于半监督学习,生成伪标签
- 但上面的赋值,如果修改gt,会直接修改到output_G
- 所以需要如下代码:
- output_G = net(image)
- gt = output_G.clone()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement