Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions face-generation/helper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import math
import os
import hashlib
from urllib.request import urlretrieve
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
import zipfile
import gzip
import shutil
Expand Down Expand Up @@ -211,7 +214,7 @@ def get_batches(self, batch_size):
while current_index + batch_size <= self.shape[0]:
data_batch = get_batch(
self.data_files[current_index:current_index + batch_size],
*self.shape[1:3],
self.shape[1],self.shape[2],
self.image_mode)

current_index += batch_size
Expand Down
5 changes: 4 additions & 1 deletion face-generation/problem_unittests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from copy import deepcopy
from unittest import mock
try:
from unittest import mock
except ImportError:
from mock import mock
import tensorflow as tf


Expand Down