Giter Club home page Giter Club logo

Comments (4)

Cory-M avatar Cory-M commented on July 29, 2024

Hi, sorry for the late reply. You could change the "image_data_format" from channels_last to channels_first in you Keras configuration file. (usually, it's at $HOME/.keras/keras.json) I think that would help to solve the issue.
Let me know if bugs still exist.

from dccm.

HellFireC02 avatar HellFireC02 commented on July 29, 2024

Hi, sorry for the late reply. You could change the "image_data_format" from channels_last to channels_first in you Keras configuration file. (usually, it's at $HOME/.keras/keras.json) I think that would help to solve the issue.
Let me know if bugs still exist.

thanks for your reply, but this leads to another error...
it shows:

Traceback (most recent call last):
File "main_2.py", line 309, in
main()
File "main_2.py", line 140, in main
train(dataloader, model, dim_loss, crit_label, crit_graph, crit_c, optimizer, epoch, datagen, tb_logger)
File "main_2.py", line 188, in train
input_bs = input_tensor[address]
RuntimeError: index 921 is out of bounds for dim with size 855

I think the reason for this error is the setting of 'address', or the 'large_bs' and the 'small_bs'.
specifically,i set:

large_bs: 1000
small_bs: 16
repeated: 10
input_size: 32
workers: 4
num_classes: 4

so i wonder that something wrong in my above setting.
should i change large_bs or num_classes?
looking forward to your reply!

from dccm.

Cory-M avatar Cory-M commented on July 29, 2024

you could simply add "drop_last=True" in torch.utils.data.DataLoader at line 92 in the original main.py : ) also refer to the other closed issue at #2 is necessary.

from dccm.

HellFireC02 avatar HellFireC02 commented on July 29, 2024

thanks for your kindly help
there's no any error during running period!

from dccm.

Related Issues (11)

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.