Comments (4)
Oh, it looks like you are using black and white images. I'll add something in to handle this. For now, if you use RGB images this should still work fine without error
from edsr-tensorflow.
Usually this error means that the batch size you are using is greater than the number of images that you have to train on. Can you check to see if there are any images in the directory that you passed in as the dataset parameter?
I noticed that last time you entered a directory starting with F:\ and this time it started with C:\
from edsr-tensorflow.
you are genius man, you tottly right, i now use only rgb images and the error has gon, but Unfortunately i found new error ...
python train.py --dataset C:\EDSR\data\set14
Building EDSR...
2017-09-25 21:19:26.452748: W C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-09-25 21:19:26.452991: W C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-09-25 21:19:26.944793: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:955] Found device 0 with properties:
name: GeForce GTX 650 Ti BOOST
major: 3 minor: 0 memoryClockRate (GHz) 1.0975
pciBusID 0000:01:00.0
Total memory: 2.00GiB
Free memory: 1.66GiB
2017-09-25 21:19:26.944981: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:976] DMA: 0
2017-09-25 21:19:26.945880: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:986] 0: Y
2017-09-25 21:19:26.946030: I C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 650 Ti BOOST, pci bus id: 0000:01:00.0)
Done building!
Begin training...
0%| | 0/1000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 18, in
network.train(args.iterations,args.savedir)
File "C:\EDSR\model.py", line 212, in train
x,y = self.data(*self.args)
File "C:\EDSR\data.py", line 62, in get_batch
img_indices = random.sample(range(len(train_set)),batch_size)
File "C:\Users\ABDO\AppData\Local\Programs\Python\Python35\lib\random.py", line 324, in sample
raise ValueError("Sample larger than population")
ValueError: Sample larger than population
from edsr-tensorflow.
again, you are right, now the trining begin without errors, much thank for your help @jmiller656.πππ
NB : yeah, i make acopy of EDSR progict to C:\ and left the original one in F:.π
from edsr-tensorflow.
Related Issues (20)
- error in train.py HOT 4
- about training HOT 1
- I've implemented a Keras version of EDSR HOT 1
- training problem for tensorflow HOT 1
- What are the changes compared to the original paper? HOT 3
- test error HOT 2
- test_size in load_dataset
- train error HOT 3
- train error HOT 7
- ResourceExhaustedError HOT 1
- after 1 epoch, you don't shuffle? HOT 6
- train_setOnly 200
- How to control the training epochs in the codes ? HOT 2
- test error HOT 2
- 14k times------loss suddenly increase HOT 3
- Did you use the GAN structureοΌ HOT 5
- how to training MDSR HOT 2
- test error
- out of range HOT 4
- Versions?
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 edsr-tensorflow.