GithubHelp home page GithubHelp logo

Comments (5)

junyongyou avatar junyongyou commented on June 14, 2024

I think you probably need to check your data (images). You don't need to convert the format to object.

from triq.

ngun7 avatar ngun7 commented on June 14, 2024

During inference, image size is being reduced to (512,384) with maximum_positional_encoding size of 193. Here, I want to train a model with bigger images so that I don't have to downsample during prediction. During splitting, I resized koniq_normal & koniq_small images to (1024,768) and set maximum positional encoding to 769. Do you think this might be the issue?

image = Image.open(os.path.join(original_image_folder, image_file)).resize((512, 384))

from triq.

junyongyou avatar junyongyou commented on June 14, 2024

Hi, I don't think that matters. I meant that you need to check your data. Because the model has already been trained for 170 steps without any problems, and then the generator throws an error of data conversion. I would guess something wrong with an image data at the 171st step. So you can try to only run the generator on the images, and see if you can get the correct data at all steps.

from triq.

ngun7 avatar ngun7 commented on June 14, 2024

Hello @junyongyou, thanks for the reply. I checked the data(even tried with a single dataset koniq_normal) and everything seems fine. More than generator error, script stops with "val_loss" key error. This happens all the time after running for few steps in an epoch. Attaching screenshot:
image

from triq.

junyongyou avatar junyongyou commented on June 14, 2024

Hi, I have just downloaded the code and tried to train for a couple of epochs, and everything was fine. I really don't know what your problem is from. My current TF version 2.5.1. Maybe check your TF?

image

from triq.

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.