Open rupeshs opened 7 years ago
Post the stack trace :)
When i tried to load using ascii format torch.load() returns without error but no layers in the output!
Model : https://s3.amazonaws.com/xunhuang-public/adain/vgg_normalised.t7 (not ascii) I converted this model to ascii local vgg = torch.load(params.vgg,"ascii") for i=1 ,#vgg do local layer=vgg:get(i) print(layer.name) end
06-23 07:43:42.349 2422-2422/com.torchandroid.neuralstyler W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 06-23 07:43:43.340 2422-2422/com.torchandroid.neuralstyler I/torchdemo: starting... 06-23 07:43:43.341 2422-2422/com.torchandroid.neuralstyler I/torchdemo: vgg :/storage/emulated/0/test/vgg-ascii.t7 06-23 07:45:24.237 2422-2422/com.torchandroid.neuralstyler I/torchdemo: vgg failed to load
I tried to load VGG19 model using torch.load but it is not working How to convert this model to android? i tried to convert it into ascii then saved binary but no success.