imageclassification-pytorch's People
Forkers
orangeshushu zt1112 tgkplvfy 993917172 kingofprank link-zju zju-plp sosososo zerocurve xzf125244170 brf123 94mia zhangjunior sixitingting yowhatever tq1995 fishredleaf akolada douyh zhangming8 silence222 kristenxy mapcollector dragonwingsl vickybuoe di99 zhishengcode crazystoneonroad nanjingyige cndotahope shiruipeng1985 lfrcoder yuanmengzhixing ufo526ufo wanghaofrank igxl xwyangjshb qiu931110 gaiya2050 mjjszzj yema9832-1 wugavin sudemo fran0k tangxingwang davidko3 sg47 shiyi-mu chaoyuhong liutaiyang0501 chy-liu faizzal lihy96 abrams90 predictwise celinechen95 yangxj0306 wangbingok1118 sunchuanxi lazypzy sisi0225 wuzhan11 hcshen0111 rdx95 zrdail devneeharika 18381304961 lironghua318 zhitingxin 13227018679 stanfordone elfpattern johnjackal ragnariock caiya55 lei522 yoooo233 312benson zhongqiang92 strongdiamond 864246719 fernandonichey koruis cnspica sean0719 bianchang imyzh yangge8522424 lpl5502136 zhaowei0716 gaozheng-tech dengjiongshen lcy-s nono-zz kevinyang007 wangzaisheng01 cyao118 different-tom rabbit0tank whuttangimageclassification-pytorch's Issues
我运行了您的代码,总是出现KeyError: 0,
问题出现的位置是 for data in dataloders[phase]:,我追溯了问题,最后是在batch = self.collate_fn([self.dataset[i] for i in indices])中停止的,我使用的是python3.5版本
check this issues
/usr/local/lib/python3.6/dist-packages/torchvision/transforms/transforms.py:704: UserWarning: The use of the transforms.RandomSizedCrop transform is deprecated, please use transforms.RandomResizedCrop instead.
"please use transforms.RandomResizedCrop instead.")
/usr/local/lib/python3.6/dist-packages/torchvision/transforms/transforms.py:220: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
"please use transforms.Resize instead.")
怎么测试某一张图片属于哪类呀
怎么测试某一张图片属于哪类呀
python 3.6需要更改的写法
/home/xingxiangrui/env/lib/python3.6/site-packages/torchvision/transforms/transforms.py:563: UserWarning: The use of the transforms.RandomSizedCrop transform is deprecated, please use transforms.RandomResizedCrop instead.
"please use transforms.RandomResizedCrop instead.")
/home/xingxiangrui/env/lib/python3.6/site-packages/torchvision/transforms/transforms.py:188: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
"please use transforms.Resize instead.")
如果更改到python3.6,需要把上面这两个函数更改一下名字。
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.