Giter Site home page Giter Site logo

Comments (2)

llu025 avatar llu025 commented on July 30, 2024

Concerning the image reduction, I believe what is happening is that your dataset is reduced in the function fetch() in dataset.py (line 342) because you do not have a GPU running with CUDA:

if not tf.config.list_physical_devices("GPU"):
        dataset = [
            tf.image.central_crop(tensor, 0.1) for tensor in [x_im, y_im, target_cm]
        ]
    else:
        dataset = [x_im, y_im, target_cm]

If you want to avoid this, you can simply replace "0.1" with "1" and the function would behave exactly as if these lines were not there.
Please notice that the same "if" statement affects also the parameter setting in config.py, so you would have to change line 22 with if not debug:.

About the images with more channels, the method is supposed to handle any kind of number of channels (except 2, I have to fix it). In config.py there is a selection of channels to be printed out ("channel_x" and "channel_y") in case there are more than 3. In conclusion, I struggle to understand your question. Can you provide more details about the error, sharing for example what python prints out?

from heterogeneous_cd.

Yusin2Chen avatar Yusin2Chen commented on July 30, 2024

Hi Dr.Luppino,

Thank you very much for your help. It works~

Best regards,
yusin

from heterogeneous_cd.

Related Issues (18)

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.