jiangyiqiao / fundus_transfer_v3_classification Goto Github PK
View Code? Open in Web Editor NEW谷歌INCEPTION-RESNET-V3迁移学习实现图像二分类判断图像是否生病
谷歌INCEPTION-RESNET-V3迁移学习实现图像二分类判断图像是否生病
小姐姐你好!我遇到一个问题。
TypeError: Expected string passed to parameter 'tags' of op 'ScalarSummary', got 'loss' of type 'str' instead.
这个问题我在你参考的五种花分类中同样遇到了,但是没有找到解决办法。
详细错误如下:
Traceback (most recent call last):
File "", line 1, in
runfile('D:/Graduate/fundus_transfer_v3_classification-master/train.py', wdir='D:/Graduate/fundus_transfer_v3_classification-master')
File "C:\Users\acer\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)
File "C:\Users\acer\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Graduate/fundus_transfer_v3_classification-master/train.py", line 313, in
tf.app.run()
File "C:\Users\acer\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "D:/Graduate/fundus_transfer_v3_classification-master/train.py", line 238, in main
loss_summary = tf.summary.scalar('loss', cross_entropy_mean)
File "C:\Users\acer\Anaconda3\lib\site-packages\tensorflow\python\summary\summary.py", line 80, in scalar
val = _gen_logging_ops.scalar_summary(tags=tag, values=tensor, name=scope)
File "C:\Users\acer\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_logging_ops.py", line 794, in scalar_summary
"ScalarSummary", tags=tags, values=values, name=name)
File "C:\Users\acer\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 520, in _apply_op_helper
repr(values), type(values).name))
TypeError: Expected string passed to parameter 'tags' of op 'ScalarSummary', got 'loss' of type 'str' instead.
hello!Thank you for the code you shared.This is very helpful to me.
The blog you recommend is in the case of multi-category application,
and your code is in the case of two classifications.
The question is how to convert multiple classifications into two classifications?
Do you mind sharing your own data set?
You are excellent, I want to learn from you, thank you again.
Thank you very much for sharing!
Can you share the specific format of your dataset ?
I need to make a building datasets, but now I'm not sure the real formate of the datasets by read code, lead to i can't complish make datasets!there is no way to complete the training and test too!
I'm very anxiety!!
I sincerely need your help and guidance and look forward to your reply!
Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.