Giter VIP home page Giter VIP logo

Comments (5)

junyanz avatar junyanz commented on July 19, 2024

It's possible. You can write your own dataloader to read multiple inputs from the disk (you can modify this line for example), concatenate them and feed it to the network. (also change --input_nc accordingly)

from bicyclegan.

Grenadee avatar Grenadee commented on July 19, 2024

Thanks for your suggestion.
My idea is to make the data loader load input_1, input_2 and groundtruth_output at the same time(side by side). Then concatenate two input images. The modified code is like this:
image

When I trying to run this code, I got an error at the transforms.Normalize() process said: TypeError: tensor is not a torch image.

Could you give me some suggestion about how to fix this issue and make this modified code works.

Thanks!

from bicyclegan.

Grenadee avatar Grenadee commented on July 19, 2024

I have worked out the last issue. By successfully applying two corresponding images as input, the generated output does not have better performance by comparing with original BicycleGAN.

I have another question:
The generator used in bicycleGAN is U-net.As far as I know, U-net is widely used in biomedical image segmentation. What is the advantage to use U-net as generator in BicycleGAN other than other generators?

from bicyclegan.

junyanz avatar junyanz commented on July 19, 2024

We adopt it from pix2pix [Isola et al. 2017]. Please refer to the pix2pix paper. See Sec 3.2.1 Generator with skips and Sec 4.3 Analysis of the generator architecture for more details.

from bicyclegan.

Grenadee avatar Grenadee commented on July 19, 2024

Thanks for your suggestion!

from bicyclegan.

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.