mirror of
https://github.com/Deepshift/DeepCreamPy.git
synced 2025-03-29 10:20:15 +00:00
update README
This commit is contained in:
parent
0baa81b7c5
commit
349845a818
@ -104,6 +104,8 @@ Contributions are welcome! Special thanks to StartleStars for contributing code
|
||||
|
||||
# License
|
||||
|
||||
This code is for personal use and research use only.
|
||||
|
||||
Example image by dannychoo under [CC BY-NC-SA 2.0 License](https://creativecommons.org/licenses/by-nc-sa/2.0/). The example image is modified from the original, which can be found [here](https://www.flickr.com/photos/dannychoo/16081096643/in/photostream/).
|
||||
|
||||
Model is licensed under CC BY-NC-SA 4.0 License.
|
||||
@ -139,4 +141,4 @@ Code is licensed under CC BY-NC-SA 4.0 License and is modified from tadax's proj
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
```
|
||||
```
|
||||
|
0
models_backup/.gitkeep
Normal file
0
models_backup/.gitkeep
Normal file
3
train.py
3
train.py
@ -87,6 +87,9 @@ def train(args):
|
||||
d_loss_value = 0
|
||||
for i in tqdm.tqdm(range(step_num)):
|
||||
x_batch = x_train[i * args.batch_size:(i + 1) * args.batch_size]
|
||||
#janky way of doing horizonal flips
|
||||
if (np.random.random() < 0.5):
|
||||
x_batch = np.fliplr(x_batch)
|
||||
points_batch, mask_batch = get_points()
|
||||
|
||||
_, g_loss, completion = sess.run([g_train_op, model.g_loss, model.completion], feed_dict={x: x_batch, mask: mask_batch, is_training: True})
|
||||
|
Loading…
x
Reference in New Issue
Block a user