Git Product home page Git Product logo

Comments (7)

sangwoomo avatar sangwoomo commented on June 6, 2024 2

Hi, thank you for your suggestion. I modified requirements.txt to use == instead of >=.

from instagan.

bboynton97 avatar bboynton97 commented on June 6, 2024 2

Thanks for the super quick response! Great job on the paper btw. I'm using it for a class project.

from instagan.

raitmoon avatar raitmoon commented on June 6, 2024 1

Thank you for your suggestion.

I searched on the internet and finally got solved by downgrading torchvision from 0.4.1 to 0.2.1.

pip3 uninstall torchvision
pip3 install torchvision=0.2.1

Many of them suggest transforms.Normalize((0.5,), (0.5,)) but didn't help.
https://stackoverflow.com/questions/55124407/output-and-broadcast-shape-mismatch-in-mnist-torchvision
I'm not sure what was the original problem though..

from instagan.

sangwoomo avatar sangwoomo commented on June 6, 2024 1

Thanks for your interest! :)

from instagan.

sangwoomo avatar sangwoomo commented on June 6, 2024

Hi, it seems that the image type (RGB vs black/white) does not match in some reason.
Please see ./data/unaligned_seg_dataset.py to check if the loaded image is 1-channel and 3-channel, and also check the required channel for models.

from instagan.

bboynton97 avatar bboynton97 commented on June 6, 2024

I ran into the same issue. The torchvision version should be specified in requirements.txt and the conda script.

from instagan.

VicZlq avatar VicZlq commented on June 6, 2024

Hi, thank you for your suggestion.

from instagan.

Related Issues (20)

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.