Comments (6)
Yup, I think that is correct.
For the datasets, I think Au stands for Authentic meanwhile Tp stands for Tampered. Hope this will help.
If you already solved this issue, please close it :). Thank you very much.
from fakeimagedetector.
from fakeimagedetector.
What are the images with Sp
??
from fakeimagedetector.
What are the images with
Sp
??
Au is Authentic pics
Tp is Tampered pics
make CSV for train
import os
path_orig = 'casia/CASIA2/Au/' #Authentic
path_modif = 'casia/CASIA2/Tp/' #Tampered
folder_orig = os.listdir()
folder_modif = os.listdir()
strings = []
for file in os.listdir(path_orig):
if file.endswith('jpg'):
if int(os.stat(path_orig + file).st_size) > 10000:
line = path_orig + file + ',1\n'
strings.append(line)
for file in os.listdir(path_modif):
if file.endswith('jpg'):
if int(os.stat(path_modif + file).st_size) > 10000:
line = path_modif + file + ',0\n'
strings.append(line)
for line in strings:
with open('casia/dataset.csv', 'a') as f:
f.write(line)
from fakeimagedetector.
@DenisSouth What are the images with Sp
?? what kind of images are they?
from fakeimagedetector.
@DenisSouth What are the images with
Sp
?? what kind of images are they?
https://www.kaggle.com/sophatvathana/casia-dataset
it is modified jpg image
from fakeimagedetector.
Related Issues (15)
- How to get the datasets? HOT 22
- File not found error
- dataset HOT 4
- dataset HOT 1
- Can be in a directory structure, rather than Jupyter Notebook HOT 2
- DataSet Issue HOT 2
- Motivation of using CNN HOT 2
- regarding dataset HOT 13
- Execution HOT 4
- how to download the dataset?
- Where can i get dataset HOT 1
- Error while converting images into ELA images HOT 1
- pre-trained model HOT 1
- Could you share the dataset? HOT 1
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 fakeimagedetector.