ChocoLord commited on
Commit
db81e17
·
verified ·
1 Parent(s): 601a8f0

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +19 -0
  2. checkpoint.pt +3 -0
  3. model_config.json +48 -0
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - cyclegan
5
+ - image-to-image
6
+ - gan
7
+ - pytorch
8
+ ---
9
+
10
+ # CycleGAN apple2orange
11
+
12
+ CycleGAN model for unpaired image-to-image translation between apples and oranges.
13
+
14
+ ## Files
15
+ - `checkpoint.pt` — trained weights
16
+ - `model_config.json` — architecture parameters
17
+
18
+ ## Usage
19
+ Custom PyTorch implementation. Inference code will be added later.
checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb247ae7a138b9aeb1fe7bc9656ba9a7b57ca356f743cef6faf597c48cf5ee06
3
+ size 379914573
model_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "CycleGAN",
3
+ "checkpoint_file": "checkpoint.pt",
4
+ "checkpoint_keys": {
5
+ "model_state_dict": "model_state_dict"
6
+ },
7
+ "domains": {
8
+ "A": "apple",
9
+ "B": "orange"
10
+ },
11
+ "directions": {
12
+ "A_to_B": "apple_to_orange",
13
+ "B_to_A": "orange_to_apple"
14
+ },
15
+ "image": {
16
+ "image_size": 256,
17
+ "channels": 3
18
+ },
19
+ "preprocessing": {
20
+ "resize": null,
21
+ "center_crop": null,
22
+ "to_tensor": true
23
+ },
24
+ "normalization": {
25
+ "mean_A": [0.5921, 0.4201, 0.3659],
26
+ "std_A": [0.2339, 0.2732, 0.2590],
27
+ "mean_B": [0.6526, 0.4834, 0.2991],
28
+ "std_B": [0.2155, 0.2118, 0.2252]
29
+ },
30
+ "postprocessing": {
31
+ "denormalize_A": {
32
+ "mean": [0.5921, 0.4201, 0.3659],
33
+ "std": [0.2339, 0.2732, 0.2590]
34
+ },
35
+ "denormalize_B": {
36
+ "mean": [0.6526, 0.4834, 0.2991],
37
+ "std": [0.2155, 0.2118, 0.2252]
38
+ }
39
+ },
40
+ "model_params": {
41
+ "gen_d_base": 64,
42
+ "gen_n_down": 2,
43
+ "gen_n_blocks": 9,
44
+ "dis_d_in": 3,
45
+ "dis_d_base": 64,
46
+ "dis_n_down": 3
47
+ }
48
+ }