Comments (4)
label = (filename.split("\")[2]) -->int(filename.split('\\')[1])
from jpg-png-to-mnist-nn-format.
@ijbo thank you very much. Can you explain your solution, please. I am new in pyton.
from jpg-png-to-mnist-nn-format.
label = (filename.split("\")[2]) -->int(filename.split('\\')[1])
When I using this, it is giving me a syntax error:
File "<ipython-input-11-87b010b918dc>", line 25 label = (filename.split("\")[2])-->int(filename.split('\\')[1]) ^ SyntaxError: EOL while scanning string literal
I am not able to understand what's the problem. Please, help me.
from jpg-png-to-mnist-nn-format.
There's a misunderstanding @ShalluSharma. What @ijbo meant was to replace the "\"
with '\\'
as the \
is a so called escape character and will be interpreted differently by the interpreter.
Actually, it should not be necessary to use \
in paths at all as using /
will usually work as expected on Windows too.
from jpg-png-to-mnist-nn-format.
Related Issues (20)
- limited to 28x28 HOT 2
- question about array typecode of data_image HOT 1
- Please help my data is text i want do cnn and lstm
- resize-script.sh error: invalid parameter HOT 1
- Not taking in images from folder 22 HOT 1
- How to use created dataset in others neural networks??? HOT 1
- 'gzip' is not recognized as an internal or external command HOT 1
- Bug/Problem Code lines 15, 46 HOT 1
- NameError: name 'width' is not defined HOT 2
- Size of the output for larger number of images HOT 1
- please help in solving this error HOT 2
- Why labels printed are always 1? HOT 2
- two or three classifications
- Need help with this issue HOT 1
- TypeError: an integer is required (got type tuple) data_image.append(pixel[y,x]) HOT 3
- data_image.append(pixel[y,x]) IndexError: image index out of range HOT 3
- resize-script.sh
- placeholder.txt 这个文件是写什么的?
- some questions please look this:
- ValueError: Image exceeds maximum size: 256x256 pixels
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 jpg-png-to-mnist-nn-format.