Git Product home page Git Product logo

Comments (4)

jmiller656 avatar jmiller656 commented on August 12, 2024 1

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.

jmiller656 avatar jmiller656 commented on August 12, 2024 1

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.

naseeresmael avatar naseeresmael commented on August 12, 2024

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.

naseeresmael avatar naseeresmael commented on August 12, 2024

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)

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.