Comments (4)
This is an issue with the torchfile package on Windows. Someone provided a fix for my WCT repo that I should port over to this one -- you can access the fixed compatible version of torchfile.py here https://github.com/eridgd/WCT-TF/blob/master/torchfile.py to use instead of the pip version.
from adain-tf.
Thanks heaps. Also I had to copy the vgg_normalized.py from your WCT-TF as it had some edits as well?
Cheers
from adain-tf.
I'm trying to train using a template, I keep encountering this error:
ufunc 'true_divide' output (typecode 'd') could not be coerced to provided output parameter (typecode 'l') according to the casting rule ''same_kind''
I have narrowed it down to the torchfile.py
that I downloaded from your link above in this comment thread. But beyond that, I'm not able to tell if the error is in the read_double()
or the read_long()
functions or how I can explicitly say to not type-check when casting, as I don't see a place where explicit casting is happening.
from adain-tf.
From a quick pass of looking into this, my best guess that this is due to the version of numpy being used. Any luck when you try downgrading np?
Also, are you trying this on Windows? If not, the official version of torchfile (or at least the version from 11 months ago) should work on linux/macos.
from adain-tf.
Related Issues (8)
- CPU mode? HOT 1
- Does it reproduce the result of the torch code? HOT 1
- Model HOT 1
- Visualize transfer during traning? HOT 1
- Style loss: MSE or SSE HOT 2
- Why use normalised_vgg model as the encoder ? HOT 2
- Saptial Control HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adain-tf.