lionzhnn
lionzhnn
Thank you for your code. The color dcnn model's act_mode should be "BR", however the test code and the pretrained '.pth' file seem to be "R". Am i misunderstanding.
`import sys,tkFileDialog,os from Tkinter import* class Note(): def __init__(self): self.fname=None; #GUI document addr self.tk=Tk() self.createUI() self.tk.mainloop() def createUI(self): menubar=Menu(self.tk) fmenu=Menu(menubar,tearoff=0) fmenu.add_command(label='Open',command=self.open) #bind menu and function fmenu.add_command(label='Save',command=self.save) fmenu.add_command(label='Exit',command=exit) menubar.add_cascade(label="File",menu=fmenu) self.tk.config(menu=menubar) self.text=Text()...
`#!/usr/bin/env python #encoding=utf-8 import re import string print 'kill game by input end' f=open("python_string_test.txt"); #count file result=0; identify=string.maketrans('','') delEstr = string.punctuation + string.digits; #remove pounction and digit for line in...
print 'kill game by input end' while 1: s=input("input string:") if s== 'end': break; s1=''; index=0; l=len(s); while index
`` print 'kill game by input end' refdoc=['a','e','i','o','u']; while 1: numbera=0; numbere=0; numberi=0; numbero=0; numberu=0; s=input("input string:"); if s=='end': print 'end game'; break; for i in s: if i in...
print 'kill game by input end' refdoc=['a','e','i','o','u']; while 1: s=input("input string:"); if s=='end': print 'end game'; break; if s[0] not in refdoc: s1=s[1:]+'-'+s[0]+"ay"; print s1;
`#!/usr/bin/env python #encoding=utf-8 print 'kill game by input end' while 1: s=input("input string:") if s== 'end': break; s1=''; index=0; l=len(s); print s[l-index-1]; while index