首页 \ 问答 \ 我是否有可能只用cpu训练inception-v3模型?(Is it possible that I can train inception-v3 model only with cpu?)

我是否有可能只用cpu训练inception-v3模型?(Is it possible that I can train inception-v3 model only with cpu?)

当我尝试使用我自己的基于Inception-v3的图像进行训练时如下:

https://github.com/tensorflow/models/blob/master/inception/inception/inception_train.py

我收到此错误:

File "/tensorflow/tensorflow/models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py", line 207, in train
    assert FLAGS.batch_size % FLAGS.num_gpus == 0, (
ZeroDivisionError: division by zero

我的问题是“我是否有可能只用cpu训练起始-v3模型?”

PS:我知道如果只使用cpu会比gpu花费更多时间,因此我减少了max_steps和图像数据。

非常感谢你 !


When I try to train with my own image base on Inception-v3 as follow:

https://github.com/tensorflow/models/blob/master/inception/inception/inception_train.py

I get this error:

File "/tensorflow/tensorflow/models/inception/bazel-bin/inception/flowers_train.runfiles/inception/inception_train.py", line 207, in train
    assert FLAGS.batch_size % FLAGS.num_gpus == 0, (
ZeroDivisionError: division by zero

My question is "Is it possible that I can train inception-v3 model only with cpu ?"

PS: I know if only use cpu which will spend much time than gpu therefore, I have decrease the max_steps and image data.

Thank you very much !


原文:https://stackoverflow.com/questions/37230843
更新时间:2022-05-15 10:05

最满意答案

不确定你的用例,但还有其他的东西。 在IIOP上使用Java RMI。 它是Java SDK的一部分,与Netbeans或您喜欢使用的任何其他IDE无关。

您可以在Oracle找到一些常规文档。


Not sure about your usecase, but there is something else. Use Java RMI over IIOP. It is part of the Java SDK and has nothing to do with Netbeans or any other IDE you prefer to use.

You can find some general documentation at Oracle.

相关问答

更多
  • 仍然有一些CORBA可能是一个很好的答案: 当您构建涉及多种编程语言和多个平台的分布式系统时, 当您的系统需要发送复杂的数据结构...和SOAP不会削减它时, 当你有高速率的消息传递...和HTTP不剪切,或 当您必须与现有的CORBA客户端和/或服务进行交互时。 但是说到这里,有一些替代品可以做CORBA做的,只有更好...他们声称。 例如ZeroC的ICE EDIT @fnieto chimes说(或暗示)ICE不是免费的,但TAO是。 这是不准确和误导的 。 ICE是GPL的软件,可免费下载。 如果您 ...
  • 你可以尝试使用C ++的MICO ,它是开源的,并且有一个很好的社区。 对于Java,我认为JacORB是最好的选择。 在我的项目中,我与JacORB ,MICO和IIOP.NET合作 。 You can try to use MICO for C++, it´s opensource and have a nice comunity. For Java, i think JacORB is the best choice. In my project, i work with JacORB, MICO a ...
  • 不,RMI与CORBA无关,它们两者完全不同。 但是,如果需要, 可以将RMI配置为使用CORBA IIOP有线协议,但这是传统的东西。 Sun JRE附带了一个CORBA实现,可通过org.omg包访问。 No, RMI has nothing to do with CORBA, they two are completely different. However, RMI can be configured to use the CORBA IIOP wire protocol, if required ...
  • 将其设置为在IOR中使用DNS名称 jacorb.dns.enable=on 另请参阅http://jacorb.org/bugzilla/show_bug.cgi?id=872 Set this to use DNS names in IORs jacorb.dns.enable=on Also , refer http://jacorb.org/bugzilla/show_bug.cgi?id=872
  • 这些是CORBA存储库ID,有时也称为类型ID。 它们只是相关类型的标识符。 此页面以精彩且有用的细节描述了它们。 Those are CORBA repository IDs, sometimes also called Type IDs. They are simply identifiers for the type in question. This page describes them in great and helpful detail.
  • 最好的方法是声明您的方法引发异常,如下所示: exception Unknown{}; interface Stock { // Returns the current stock quote. Quote get_quote() raises(Unknown); // Sets the current stock quote. void set_quote(in Quote stock_quote); // Provides the stock description, ...
  • 不确定你的用例,但还有其他的东西。 在IIOP上使用Java RMI。 它是Java SDK的一部分,与Netbeans或您喜欢使用的任何其他IDE无关。 您可以在Oracle找到一些常规文档。 Not sure about your usecase, but there is something else. Use Java RMI over IIOP. It is part of the Java SDK and has nothing to do with Netbeans or any other ...
  • 后者; 您可以使用C#或Java等编程语言创建CORBA实现。 The latter; you create CORBA implementations in a programming language such as C# or Java.
  • 来自Ciaran McHale的免费在线书籍, CORBA Explained Simply : 操作的参数具有指定的方向,可以是(意味着参数从客户端传递到服务器), out (参数从服务器传递回客户端)或inout (参数传递)在两个方向)。 因此, in参数与“传统”函数参数非常相似,因为调用者必须为它们传递一个值,并且服务器使用该值来完成其工作。 out参数就像返回值一样,因此调用者永远不会用值填充它。 它只是在函数返回时神奇地有一个值(假设没有抛出异常),因为服务器负责在其中放置一个值作为其执行规则 ...
  • 这看起来像雅各布问题。 我不相信这是一种可选方法,应该实施。 That looks like a Jacorb problem. I don't believe that is an optional method and it should be implemented.

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)