Code Monkey home page Code Monkey logo

Comments (4)

haris-ali2 avatar haris-ali2 commented on June 16, 2024 1

Okay thanks. Will do. And yes, the issue was I was passing images of size (500,500) while it was expecting them to be of (500,500,1)

from im2height.

dettmar avatar dettmar commented on June 16, 2024

Hi! No unfortunately I don't have any pre-trained weights as this was used for a company project. Nor did I reach out to the original authors. Maybe contact them to see if they have any weights available to share.

from im2height.

haris-ali2 avatar haris-ali2 commented on June 16, 2024

@dettmar Thank you for the reply. Can you kindly tell me about the input data then? I am trying to train my own model. My inputs are RGB satellite images converted to ".npy". But when I try to train, it says 'operands could not be broadcasted together with remapped shapes [original ->remapped]: (3,2) and requested shape (2,2)'[error in line 64 in data.py]. I searched the internet and it says that the input should be RGB but I actually have RGB as inputs. My labels are grayscale 1 channel DSM images. It gave me an error before saying 'np.rollaxis should have a start value between -2 and 2 [error in line 53, 60 and 97 in data.py] but you had it hardcoded as 3. Can you tell me how did you manage to run that? I actually changed that value to 2 and it's okay now but can you kindly share with me the solution to the broadcasting problem if you have any insights? Thank you.

from im2height.

dettmar avatar dettmar commented on June 16, 2024

This was a while ago, but we only ever used it on 1 channel in -> 1 channel out. My guess would be that pytorch is expecting a separate dim of channels and I might have missed this using only one channel. I honestly never had a serious look at it before uploading it here, so there might hard coded misses that were specifically used for our project. Unfortunately I don't have time looking through the project at the moment, but if you find out what's causing the issue, please feel free to send a PR and I'll review.

from im2height.

Related Issues (2)

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.