Comments (4)
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.
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.
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.
thanks for your kindly help
there's no any error during running period!
from dccm.
Related Issues (11)
- Unhandled last batch truncation HOT 1
- Could you provide the data download link HOT 2
- How to use other model(eg. vgg16) to run your code? HOT 2
- A mistake about dim_Model.py ? HOT 2
- other architectures and config files HOT 1
- inferior results on all datasets compared to that reported in the paper HOT 12
- What are the classes of Tiny-ImageNet? HOT 1
- how to download cifar10 with png format?
- mutual information loss HOT 1
- Targets(Labels) do need?? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dccm.