File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def generate_images(
229229 age_estimator = None
230230 if weight_vector is not None :
231231 print ("Initializing age estimator..." )
232- age_estimator = AgeEstimator (ctx_id = - 1 , det_size = ( 640 , 640 ) )
232+ age_estimator = AgeEstimator ()
233233
234234 # Generate images.
235235 all_images = [] # Store images for composite: list of lists (one per seed)
@@ -365,15 +365,18 @@ def generate_images(
365365
366366if __name__ == "__main__" :
367367 import sys
368+ os .chdir ("/home/sagemaker-user/stylegan2-ada-pytorch" )
368369
369370 # Default arguments for debugging/development
370371 if len (sys .argv ) == 1 :
371372 sys .argv = [
372373 "generate.py" ,
373- "--outdir=stylegan2-ada-pytorch/ out" ,
374+ "--outdir=out" ,
374375 "--trunc=0.7" ,
375376 "--seeds=600-605" ,
376- "--weight-vector=stylegan2-ada-pytorch/weight.npy" ,
377+ "--style-range" , "0" , "4" ,
378+ "--alphas=0:0:1" ,
379+ "--weight-vector=weight.npy" ,
377380 "--network=https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/ffhq.pkl" ,
378381 ]
379382
You can’t perform that action at this time.
0 commit comments