bryanzhou008 commited on
Commit
80dc021
·
verified ·
1 Parent(s): 79ac4b3

Update src/v2_for_hf.py

Browse files
Files changed (1) hide show
  1. src/v2_for_hf.py +1 -9
src/v2_for_hf.py CHANGED
@@ -75,12 +75,4 @@ def generate_images(oai_key, input_path, mistaken_class, ground_truth_class):
75
  # refined_image.save(output_path + "{}.png".format(i), 'PNG')
76
  out_images.append(refined_image)
77
 
78
- return tuple(out_images)
79
-
80
-
81
- if __name__ == "__main__":
82
- oai_key = "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"
83
- input_path = "out/0.png"
84
- mistaken_class = "dog"
85
- ground_truth_class = "cat"
86
- generate_images(oai_key, input_path, mistaken_class, ground_truth_class)
 
75
  # refined_image.save(output_path + "{}.png".format(i), 'PNG')
76
  out_images.append(refined_image)
77
 
78
+ return tuple(out_images)