Code Monkey home page Code Monkey logo

Comments (4)

eridgd avatar eridgd commented on August 25, 2024 1

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.

CJHFUTURE avatar CJHFUTURE commented on August 25, 2024

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.

stalagmite7 avatar stalagmite7 commented on August 25, 2024

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.

eridgd avatar eridgd commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.