mirror of
https://github.com/Shawn-Shan/fawkes.git
synced 2024-11-13 08:11:30 +05:30
bug fixes
This commit is contained in:
parent
3775bba1b4
commit
1e8893cacb
@ -407,7 +407,6 @@ class FawkesMaskGeneration:
|
|||||||
|
|
||||||
if iteration != 0 and iteration % (self.MAX_ITERATIONS // 3) == 0:
|
if iteration != 0 and iteration % (self.MAX_ITERATIONS // 3) == 0:
|
||||||
LR = LR * 0.8
|
LR = LR * 0.8
|
||||||
print("LR: {}".format(LR))
|
|
||||||
|
|
||||||
if iteration % (self.MAX_ITERATIONS // 5) == 0:
|
if iteration % (self.MAX_ITERATIONS // 5) == 0:
|
||||||
if self.verbose == 1:
|
if self.verbose == 1:
|
||||||
|
@ -81,8 +81,8 @@ class Fawkes(object):
|
|||||||
print("Please enable GPU for ultra setting...")
|
print("Please enable GPU for ultra setting...")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
th = 0.01
|
th = 0.01
|
||||||
max_step = 200
|
max_step = 1000
|
||||||
lr = 20
|
lr = 10
|
||||||
else:
|
else:
|
||||||
raise Exception("mode must be one of 'low', 'mid', 'high', 'ultra', 'custom'")
|
raise Exception("mode must be one of 'low', 'mid', 'high', 'ultra', 'custom'")
|
||||||
return th, max_step, lr
|
return th, max_step, lr
|
||||||
@ -179,7 +179,7 @@ def main(*argv):
|
|||||||
default="high_extract")
|
default="high_extract")
|
||||||
|
|
||||||
parser.add_argument('--th', type=float, default=0.01)
|
parser.add_argument('--th', type=float, default=0.01)
|
||||||
parser.add_argument('--max-step', type=int, default=500)
|
parser.add_argument('--max-step', type=int, default=1000)
|
||||||
parser.add_argument('--sd', type=int, default=1e9)
|
parser.add_argument('--sd', type=int, default=1e9)
|
||||||
parser.add_argument('--lr', type=float, default=2)
|
parser.add_argument('--lr', type=float, default=2)
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -77,7 +77,7 @@ setup_requires = []
|
|||||||
install_requires = [
|
install_requires = [
|
||||||
'numpy==1.16.4',
|
'numpy==1.16.4',
|
||||||
# 'tensorflow-gpu>=1.13.1, <=1.14.0',
|
# 'tensorflow-gpu>=1.13.1, <=1.14.0',
|
||||||
'tensorflow>=1.12.0, <=1.15.0', # change this is tensorflow-gpu if using GPU machine.
|
'tensorflow>=1.12.0, <=1.15.0', # change this is tensorflow-gpu if using GPU machine.
|
||||||
'argparse',
|
'argparse',
|
||||||
'keras>=2.2.5, <=2.3.1',
|
'keras>=2.2.5, <=2.3.1',
|
||||||
'scikit-image',
|
'scikit-image',
|
||||||
|
Loading…
Reference in New Issue
Block a user