yiranran / Unpaired-Portrait-Drawing

Code for Unpaired Portrait Drawing Generation via Asymmetric Cycle Mapping (CVPR 2020)
194 stars 35 forks source link

TypeError: only integer tensors of a single element can be converted to an index #9

Closed luoww1992 closed 2 years ago

luoww1992 commented 4 years ago

when i use the default model and images to run the code , i get this error attrntion ? how to do we need ?

ChauvinisticJonatha commented 3 years ago

Have you solved it? The same problem with APDrawinggan in his warehouse.

yiranran commented 2 years ago

Sorry, this error is because the original version is run using python2 Please check can this commit of APDrawingGAN to solve your problem? https://github.com/yiranran/APDrawingGAN/commit/bc10583a244620325c6e4874566112ebbf5d2c7d