keras_ganomaly's People
Forkers
eton kevinpiger darcyqin akangman33 savs33 qi-xian tcyuan1017 mohamadbahmanpour cccjry parry1233 fantasy98keras_ganomaly's Issues
Need Help
hi, I have a question need your help.
In your demo code
why np.expand_dims(new_x, axis=-1) / 127 - 1 in function reshape_x
please help me
thanks
why are the y ones in get_data_generator for gan_trainer?
def get_data_generator(data, batch_size=32):
datalen = len(data)
cnt = 0
while True:
idxes = np.arange(datalen)
np.random.shuffle(idxes)
cnt += 1
for i in range(int(np.ceil(datalen/batch_size))):
train_x = np.take(data, idxes[i*batch_size: (i+1) * batch_size], axis=0)
y = np.ones(len(train_x))
yield train_x, [y, y, y]
Why are the y ones instead of zeros? The loss have to close to zero, right?
Do I misunderstand something?
some question on advloss
hi, i have some question on advloss
in your code, you use K.mean to calculating the average value of gan feature before it subtract from ori feature.
like this
"K.mean(K.square(ori_feature - K.mean(gan_feature, axis=0)))"
Is it necessary for calculating the average value of gan feature?
Can i subtract gan feature from ori feature without doing it?
like this
"K.mean(K.square(ori_feature - gan_feature))"
thanks
'int' object has no attribute 'mean'
Hello!
I am trying to implement ganomaly network on different kind of data but I get error: 'int' object has no attribute 'mean'. problem raises in loss functions when we want to use keras backend as K and take mean over differences. As I know it may happen because of backend either mean is taking an int as input. But I am using same shape for my data as MNIST data to train generator. I don't know what is going wrong.
Please help me.
Thanks
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.