This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example of using | |
# https://github.com/tensorflow/models/blob/master/research/object_detection/dataset_tools/create_pascal_tf_record.py | |
# The structure should be like PASCAL VOC format dataset | |
# +Dataset | |
# +Annotations | |
# +JPEGImages | |
# python create_tfrecords_from_xml.py --image_dir=dataset/JPEGImages | |
# --annotations_dir=dataset/Annotations | |
# --label_map_path=object-detection.pbtxt | |
# --output_path=data.record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void dispatchTakePictureIntent() { | |
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); | |
if (takePictureIntent.resolveActivity(getContext().getPackageManager()) != null) { | |
startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE); | |
} | |
} | |
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { | |
super.onActivityResult(requestCode, resultCode, data); | |
if (resultCode == Activity.RESULT_OK) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Отменить с ветки много пушей! | |
git reset --hard HEAD~1 | |
git push origin HEAD --force | |
------------------------------------------------------------------------------- | |
This will remove all local untracked files, so only git tracked files remain: | |
git clean -fdx | |
------------------------------------------------------------------------------- | |
git checkout master | |
git merge --squash bugfix | |
git commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// module level build.gradle dependencies | |
compile 'com.squareup.picasso:picasso:2.5.2' | |
compile 'com.squareup.okhttp3:okhttp:3.4.2' | |
compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.2' | |
// imports | |
import com.jakewharton.picasso.OkHttp3Downloader; | |
import com.squareup.picasso.Picasso; | |
import java.io.IOException; |