Commit 4e99d0ab authored by mohammadHossein's avatar mohammadHossein

variable initialized at beggining routine.

parent 710380bd
......@@ -8,6 +8,33 @@ let expName = 'Object_Segments_CNN'; // from the Builder filename that created
let expInfo = {'session': '001', 'participant': '001'};
// Start code blocks for 'Before Experiment'
training_list = [];
classes_labels = ["car", "elephant", "fish", "hammer", "hand_blower", "hat", "iron", "ladybug", "pineapple", "pot", "sewing_machine", "violin"];
masked_images_dir = "images_dir/masked_datasets/";
unmasked_images_dir = "images_dir/unmasked_datasets/";
range_dict = {};
for (var item, _pj_c = 0, _pj_a = classes_labels, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) {
item = _pj_a[_pj_c];
range_list_str = os.listdir((masked_images_dir + item));
range_list_int = function () {
var _pj_d = [], _pj_e = range_list_str;
for (var _pj_f = 0, _pj_g = _pj_e.length; (_pj_f < _pj_g); _pj_f += 1) {
var i = _pj_e[_pj_f];
_pj_d.push(Number.parseInt(i));
}
return _pj_d;
}
.call(this);
range_list_int.sort();
range_dict.update({[item]: range_list_int});
}
images_dict = {};
for (var element, _pj_c = 0, _pj_a = classes_labels, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) {
element = _pj_a[_pj_c];
images_dict.update({[element]: [[], 0]});
}
// init psychoJS:
const psychoJS = new PsychoJS({
debug: true
......@@ -67,8 +94,6 @@ psychoJS.start({
psychoJS.experimentLogger.setLevel(core.Logger.ServerLevel.EXP);
var frameDur;
async function updateInfo() {
expInfo['date'] = util.MonotonicClock.getDateStr(); // add a simple timestamp
expInfo['expName'] = expName;
......@@ -88,70 +113,6 @@ async function updateInfo() {
return Scheduler.Event.NEXT;
}
var AckClock;
var Acknowledgement;
var key_resp1;
var Training_IntroClock;
var text;
var key_resp;
var masked_trainingClock;
var image;
var text_2;
var key_resp_2;
var Answer_trainingClock;
var text_7;
var fish;
var hammer;
var elephant;
var Pineapple;
var pot;
var Hat;
var iron;
var hand_blower;
var Violin;
var sewing_machine;
var Car;
var Ladybug;
var idk;
var unmasked_trainingClock;
var image_4;
var key_resp_8;
var text_8;
var text_10;
var Testing_IntroClock;
var text_3;
var key_resp_4;
var catch_trialClock;
var Im_readyClock;
var text_11;
var key_resp_9;
var test_maskClock;
var image_2;
var key_resp_5;
var answer_sheetClock;
var text_9;
var fish_2;
var hammer_2;
var elephant_2;
var Pineapple_2;
var pot_2;
var Hat_2;
var iron_2;
var hand_blower_2;
var Violin_2;
var sewing_machine_2;
var Car_2;
var Ladybug_2;
var idk_2;
var Rest_after_blockClock;
var text_5;
var key_resp_7;
var Final_messageClock;
var text_6;
var key_resp_3;
var globalClock;
var routineTimer;
async function experimentInit() {
// Initialize components for Routine "Ack"
AckClock = new util.Clock();
......@@ -584,12 +545,6 @@ async function experimentInit() {
return Scheduler.Event.NEXT;
}
var t;
var frameN;
var continueRoutine;
var _key_resp1_allKeys;
var AckComponents;
function AckRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -616,7 +571,6 @@ function AckRoutineBegin(snapshot) {
}
}
function AckRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Ack'-------
......@@ -684,7 +638,6 @@ function AckRoutineEachFrame() {
};
}
function AckRoutineEnd() {
return async function () {
//------Ending Routine 'Ack'-------
......@@ -701,9 +654,6 @@ function AckRoutineEnd() {
};
}
var _key_resp_allKeys;
var Training_IntroComponents;
function Training_IntroRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -730,7 +680,6 @@ function Training_IntroRoutineBegin(snapshot) {
}
}
function Training_IntroRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Training_Intro'-------
......@@ -798,7 +747,6 @@ function Training_IntroRoutineEachFrame() {
};
}
function Training_IntroRoutineEnd() {
return async function () {
//------Ending Routine 'Training_Intro'-------
......@@ -815,9 +763,6 @@ function Training_IntroRoutineEnd() {
};
}
var training_loop;
var currentLoop;
function training_loopLoopBegin(training_loopLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -854,15 +799,12 @@ function training_loopLoopBegin(training_loopLoopScheduler, snapshot) {
}
}
async function training_loopLoopEnd() {
psychoJS.experiment.removeLoop(training_loop);
return Scheduler.Event.NEXT;
}
var loop_over_blocks;
function loop_over_blocksLoopBegin(loop_over_blocksLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -900,8 +842,6 @@ function loop_over_blocksLoopBegin(loop_over_blocksLoopScheduler, snapshot) {
}
}
var loop_over_trials;
function loop_over_trialsLoopBegin(loop_over_trialsLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -938,23 +878,18 @@ function loop_over_trialsLoopBegin(loop_over_trialsLoopScheduler, snapshot) {
}
}
async function loop_over_trialsLoopEnd() {
psychoJS.experiment.removeLoop(loop_over_trials);
return Scheduler.Event.NEXT;
}
async function loop_over_blocksLoopEnd() {
psychoJS.experiment.removeLoop(loop_over_blocks);
return Scheduler.Event.NEXT;
}
var _key_resp_2_allKeys;
var masked_trainingComponents;
function masked_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -965,6 +900,40 @@ function masked_trainingRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
import * as random from 'random';
import * as os from 'os';
var _pj;
var flag, middle_range, selected_class, the_range, training_image_mask, trial_number;
function _pj_snippets(container) {
function in_es6(left, right) {
if (((right instanceof Array) || ((typeof right) === "string"))) {
return (right.indexOf(left) > (- 1));
} else {
if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {
return right.has(left);
} else {
return (left in right);
}
}
}
container["in_es6"] = in_es6;
return container;
}
_pj = {};
_pj_snippets(_pj);
flag = false;
while ((flag === false)) {
selected_class = random.choice(classes_labels);
if ((! _pj.in_es6(selected_class, training_list))) {
training_list.push(selected_class);
flag = true;
}
}
the_range = range_dict[selected_class];
middle_range = the_range[Number.parseInt((the_range.length / 2))];
trial_number = random.randint(1, 100);
training_image_mask = ((((((masked_images_dir + selected_class) + "/") + middle_range.toString()) + "/") + trial_number.toString()) + ".jpg");
image.setImage(training_image_mask);
key_resp_2.keys = undefined;
key_resp_2.rt = undefined;
......@@ -983,7 +952,6 @@ function masked_trainingRoutineBegin(snapshot) {
}
}
function masked_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'masked_training'-------
......@@ -1061,7 +1029,6 @@ function masked_trainingRoutineEachFrame() {
};
}
function masked_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'masked_training'-------
......@@ -1078,8 +1045,6 @@ function masked_trainingRoutineEnd() {
};
}
var Answer_trainingComponents;
function Answer_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1115,8 +1080,6 @@ function Answer_trainingRoutineBegin(snapshot) {
}
}
var class_choose;
function Answer_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Answer_training'-------
......@@ -1667,7 +1630,6 @@ function Answer_trainingRoutineEachFrame() {
};
}
function Answer_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'Answer_training'-------
......@@ -1683,9 +1645,6 @@ function Answer_trainingRoutineEnd() {
};
}
var _key_resp_8_allKeys;
var unmasked_trainingComponents;
function unmasked_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1696,6 +1655,9 @@ function unmasked_trainingRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
unmask_image = ((unmasked_images_dir + selected_class) + ".JPEG");
the_text = (("You had to choose " + selected_class.toString()) + " .");
image_4.setImage(unmask_image);
key_resp_8.keys = undefined;
key_resp_8.rt = undefined;
......@@ -1716,7 +1678,6 @@ function unmasked_trainingRoutineBegin(snapshot) {
}
}
function unmasked_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'unmasked_training'-------
......@@ -1804,7 +1765,6 @@ function unmasked_trainingRoutineEachFrame() {
};
}
function unmasked_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'unmasked_training'-------
......@@ -1821,9 +1781,6 @@ function unmasked_trainingRoutineEnd() {
};
}
var _key_resp_4_allKeys;
var Testing_IntroComponents;
function Testing_IntroRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1850,7 +1807,6 @@ function Testing_IntroRoutineBegin(snapshot) {
}
}
function Testing_IntroRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Testing_Intro'-------
......@@ -1918,7 +1874,6 @@ function Testing_IntroRoutineEachFrame() {
};
}
function Testing_IntroRoutineEnd() {
return async function () {
//------Ending Routine 'Testing_Intro'-------
......@@ -1935,8 +1890,6 @@ function Testing_IntroRoutineEnd() {
};
}
var catch_trialComponents;
function catch_trialRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1947,6 +1900,11 @@ function catch_trialRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
catch_trial_list = [];
catch_trial_1 = random.randint(3, 7);
catch_trial_list.push(catch_trial_1);
trial_loop_counter = 0;
// keep track of which components have finished
catch_trialComponents = [];
......@@ -1958,7 +1916,6 @@ function catch_trialRoutineBegin(snapshot) {
}
}
function catch_trialRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'catch_trial'-------
......@@ -1992,7 +1949,6 @@ function catch_trialRoutineEachFrame() {
};
}
function catch_trialRoutineEnd() {
return async function () {
//------Ending Routine 'catch_trial'-------
......@@ -2008,9 +1964,6 @@ function catch_trialRoutineEnd() {
};
}
var _key_resp_9_allKeys;
var Im_readyComponents;
function Im_readyRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2037,7 +1990,6 @@ function Im_readyRoutineBegin(snapshot) {
}
}
function Im_readyRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Im_ready'-------
......@@ -2105,7 +2057,6 @@ function Im_readyRoutineEachFrame() {
};
}
function Im_readyRoutineEnd() {
return async function () {
//------Ending Routine 'Im_ready'-------
......@@ -2122,9 +2073,6 @@ function Im_readyRoutineEnd() {
};
}
var _key_resp_5_allKeys;
var test_maskComponents;
function test_maskRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2135,6 +2083,78 @@ function test_maskRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
import * as np from 'numpy';
var _pj;
var answer, flag, flag_catch_trial, middle_range, now_index, num_of_catch_trial, num_of_loops_for_block, precision, range_selected_class, selected_class, test_image_mask, the_range, threshold, trial_number;
function _pj_snippets(container) {
function in_es6(left, right) {
if (((right instanceof Array) || ((typeof right) === "string"))) {
return (right.indexOf(left) > (- 1));
} else {
if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {
return right.has(left);
} else {
return (left in right);
}
}
}
container["in_es6"] = in_es6;
return container;
}
_pj = {};
_pj_snippets(_pj);
answer = "";
threshold = 3;
num_of_catch_trial = 1;
num_of_loops_for_block = 10;
precision = null;
flag = false;
while ((flag === false)) {
selected_class = random.choice(classes_labels);
if ((! _pj.in_es6(selected_class, training_list))) {
flag = true;
}
}
trial_loop_counter += 1;
flag_catch_trial = false;
if (_pj.in_es6(trial_loop_counter, catch_trial_list)) {
flag_catch_trial = true;
}
the_range = range_dict[selected_class];
if ((flag_catch_trial === true)) {
range_selected_class = the_range.slice((- 1))[0];
} else {
if ((images_dict[selected_class][1] === 0)) {
middle_range = the_range[Number.parseInt((the_range.length / 2))];
images_dict[selected_class][1] = middle_range;
} else {
if ((images_dict[selected_class][0].length === threshold)) {
precision = np.mean(images_dict[selected_class][0]);
now_index = util.index(the_range, images_dict[selected_class][1]);
if ((precision > 0.65)) {
now_index += 1;
} else {
if ((precision < 0.35)) {
now_index -= 1;
} else {
now_index += 0;
}
}
if ((now_index < 0)) {
now_index = 0;
} else {
if ((now_index >= the_range.length)) {
now_index = (the_range.length - 1);
}
}
images_dict[selected_class][1] = the_range[now_index];
}
}
range_selected_class = images_dict[selected_class][1];
}
trial_number = random.randint(1, 100);
test_image_mask = ((((((masked_images_dir + selected_class) + "/") + range_selected_class.toString()) + "/") + trial_number.toString()) + ".jpg");
image_2.setImage(test_image_mask);
key_resp_5.keys = undefined;
key_resp_5.rt = undefined;
......@@ -2152,7 +2172,6 @@ function test_maskRoutineBegin(snapshot) {
}
}
function test_maskRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'test_mask'-------
......@@ -2220,7 +2239,6 @@ function test_maskRoutineEachFrame() {
};
}
function test_maskRoutineEnd() {
return async function () {
//------Ending Routine 'test_mask'-------
......@@ -2237,8 +2255,6 @@ function test_maskRoutineEnd() {
};
}
var answer_sheetComponents;
function answer_sheetRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2274,8 +2290,6 @@ function answer_sheetRoutineBegin(snapshot) {
}
}
var answer;
function answer_sheetRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'answer_sheet'-------
......@@ -2826,7 +2840,6 @@ function answer_sheetRoutineEachFrame() {
};
}
function answer_sheetRoutineEnd() {
return async function () {
//------Ending Routine 'answer_sheet'-------
......@@ -2835,6 +2848,21 @@ function answer_sheetRoutineEnd() {
thisComponent.setAutoDraw(false);
}
});
if ((answer === selected_class)) {
acc = 1;
} else {
acc = 0;
}
images_dict[selected_class][0].push(acc);
if ((images_dict[selected_class][0].length === (threshold + 1))) {
images_dict[selected_class][0].pop(0);
}
psychoJS.experiment.addData("answer", answer);
psychoJS.experiment.addData("class", selected_class);
psychoJS.experiment.addData("range", range_selected_class);
psychoJS.experiment.addData("trail_number", trial_number);
psychoJS.experiment.addData("catch_trial", flag_catch_trial);
// the Routine "answer_sheet" was not non-slip safe, so reset the non-slip timer
routineTimer.reset();
......@@ -2842,9 +2870,6 @@ function answer_sheetRoutineEnd() {
};
}
var _key_resp_7_allKeys;
var Rest_after_blockComponents;
function Rest_after_blockRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2871,7 +2896,6 @@ function Rest_after_blockRoutineBegin(snapshot) {
}
}
function Rest_after_blockRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Rest_after_block'-------
......@@ -2939,7 +2963,6 @@ function Rest_after_blockRoutineEachFrame() {
};
}
function Rest_after_blockRoutineEnd() {
return async function () {
//------Ending Routine 'Rest_after_block'-------
......@@ -2956,9 +2979,6 @@ function Rest_after_blockRoutineEnd() {
};
}
var _key_resp_3_allKeys;
var Final_messageComponents;
function Final_messageRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2985,7 +3005,6 @@ function Final_messageRoutineBegin(snapshot) {
}
}
function Final_messageRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Final_message'-------
......@@ -3053,7 +3072,6 @@ function Final_messageRoutineEachFrame() {
};
}
function Final_messageRoutineEnd() {
return async function () {
//------Ending Routine 'Final_message'-------
......@@ -3070,7 +3088,6 @@ function Final_messageRoutineEnd() {
};
}
function endLoopIteration(scheduler, snapshot) {
// ------Prepare for next entry------
return async function () {
......@@ -3093,7 +3110,6 @@ function endLoopIteration(scheduler, snapshot) {
};
}
function importConditions(currentLoop) {
return async function () {
psychoJS.importAttributes(currentLoop.getCurrentTrial());
......@@ -3101,7 +3117,6 @@ function importConditions(currentLoop) {
};
}
async function quitPsychoJS(message, isCompleted) {
// Check for and save orphaned data
if (psychoJS.experiment.isEntryEmpty()) {
......@@ -3121,6 +3136,8 @@ async function quitPsychoJS(message, isCompleted) {
psychoJS.window.close();
psychoJS.quit({message: message, isCompleted: isCompleted});
......
......@@ -16,6 +16,33 @@ let expName = 'Object_Segments_CNN'; // from the Builder filename that created
let expInfo = {'session': '001', 'participant': '001'};
// Start code blocks for 'Before Experiment'
training_list = [];
classes_labels = ["car", "elephant", "fish", "hammer", "hand_blower", "hat", "iron", "ladybug", "pineapple", "pot", "sewing_machine", "violin"];
masked_images_dir = "images_dir/masked_datasets/";
unmasked_images_dir = "images_dir/unmasked_datasets/";
range_dict = {};
for (var item, _pj_c = 0, _pj_a = classes_labels, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) {
item = _pj_a[_pj_c];
range_list_str = os.listdir((masked_images_dir + item));
range_list_int = function () {
var _pj_d = [], _pj_e = range_list_str;
for (var _pj_f = 0, _pj_g = _pj_e.length; (_pj_f < _pj_g); _pj_f += 1) {
var i = _pj_e[_pj_f];
_pj_d.push(Number.parseInt(i));
}
return _pj_d;
}
.call(this);
range_list_int.sort();
range_dict.update({[item]: range_list_int});
}
images_dict = {};
for (var element, _pj_c = 0, _pj_a = classes_labels, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) {
element = _pj_a[_pj_c];
images_dict.update({[element]: [[], 0]});
}
// init psychoJS:
const psychoJS = new PsychoJS({
debug: true
......@@ -75,8 +102,6 @@ psychoJS.start({
psychoJS.experimentLogger.setLevel(core.Logger.ServerLevel.EXP);
var frameDur;
async function updateInfo() {
expInfo['date'] = util.MonotonicClock.getDateStr(); // add a simple timestamp
expInfo['expName'] = expName;
......@@ -96,70 +121,6 @@ async function updateInfo() {
return Scheduler.Event.NEXT;
}
var AckClock;
var Acknowledgement;
var key_resp1;
var Training_IntroClock;
var text;
var key_resp;
var masked_trainingClock;
var image;
var text_2;
var key_resp_2;
var Answer_trainingClock;
var text_7;
var fish;
var hammer;
var elephant;
var Pineapple;
var pot;
var Hat;
var iron;
var hand_blower;
var Violin;
var sewing_machine;
var Car;
var Ladybug;
var idk;
var unmasked_trainingClock;
var image_4;
var key_resp_8;
var text_8;
var text_10;
var Testing_IntroClock;
var text_3;
var key_resp_4;
var catch_trialClock;
var Im_readyClock;
var text_11;
var key_resp_9;
var test_maskClock;
var image_2;
var key_resp_5;
var answer_sheetClock;
var text_9;
var fish_2;
var hammer_2;
var elephant_2;
var Pineapple_2;
var pot_2;
var Hat_2;
var iron_2;
var hand_blower_2;
var Violin_2;
var sewing_machine_2;
var Car_2;
var Ladybug_2;
var idk_2;
var Rest_after_blockClock;
var text_5;
var key_resp_7;
var Final_messageClock;
var text_6;
var key_resp_3;
var globalClock;
var routineTimer;
async function experimentInit() {
// Initialize components for Routine "Ack"
AckClock = new util.Clock();
......@@ -592,12 +553,6 @@ async function experimentInit() {
return Scheduler.Event.NEXT;
}
var t;
var frameN;
var continueRoutine;
var _key_resp1_allKeys;
var AckComponents;
function AckRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -623,7 +578,6 @@ function AckRoutineBegin(snapshot) {
}
}
function AckRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Ack'-------
......@@ -691,7 +645,6 @@ function AckRoutineEachFrame() {
};
}
function AckRoutineEnd() {
return async function () {
//------Ending Routine 'Ack'-------
......@@ -708,9 +661,6 @@ function AckRoutineEnd() {
};
}
var _key_resp_allKeys;
var Training_IntroComponents;
function Training_IntroRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -736,7 +686,6 @@ function Training_IntroRoutineBegin(snapshot) {
}
}
function Training_IntroRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Training_Intro'-------
......@@ -804,7 +753,6 @@ function Training_IntroRoutineEachFrame() {
};
}
function Training_IntroRoutineEnd() {
return async function () {
//------Ending Routine 'Training_Intro'-------
......@@ -821,9 +769,6 @@ function Training_IntroRoutineEnd() {
};
}
var training_loop;
var currentLoop;
function training_loopLoopBegin(training_loopLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -859,15 +804,12 @@ function training_loopLoopBegin(training_loopLoopScheduler, snapshot) {
}
}
async function training_loopLoopEnd() {
psychoJS.experiment.removeLoop(training_loop);
return Scheduler.Event.NEXT;
}
var loop_over_blocks;
function loop_over_blocksLoopBegin(loop_over_blocksLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -904,8 +846,6 @@ function loop_over_blocksLoopBegin(loop_over_blocksLoopScheduler, snapshot) {
}
}
var loop_over_trials;
function loop_over_trialsLoopBegin(loop_over_trialsLoopScheduler, snapshot) {
return async function() {
TrialHandler.fromSnapshot(snapshot); // update internal variables (.thisN etc) of the loop
......@@ -941,23 +881,18 @@ function loop_over_trialsLoopBegin(loop_over_trialsLoopScheduler, snapshot) {
}
}
async function loop_over_trialsLoopEnd() {
psychoJS.experiment.removeLoop(loop_over_trials);
return Scheduler.Event.NEXT;
}
async function loop_over_blocksLoopEnd() {
psychoJS.experiment.removeLoop(loop_over_blocks);
return Scheduler.Event.NEXT;
}
var _key_resp_2_allKeys;
var masked_trainingComponents;
function masked_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -968,6 +903,40 @@ function masked_trainingRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
import * as random from 'random';
import * as os from 'os';
var _pj;
var flag, middle_range, selected_class, the_range, training_image_mask, trial_number;
function _pj_snippets(container) {
function in_es6(left, right) {
if (((right instanceof Array) || ((typeof right) === "string"))) {
return (right.indexOf(left) > (- 1));
} else {
if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {
return right.has(left);
} else {
return (left in right);
}
}
}
container["in_es6"] = in_es6;
return container;
}
_pj = {};
_pj_snippets(_pj);
flag = false;
while ((flag === false)) {
selected_class = random.choice(classes_labels);
if ((! _pj.in_es6(selected_class, training_list))) {
training_list.push(selected_class);
flag = true;
}
}
the_range = range_dict[selected_class];
middle_range = the_range[Number.parseInt((the_range.length / 2))];
trial_number = random.randint(1, 100);
training_image_mask = ((((((masked_images_dir + selected_class) + "/") + middle_range.toString()) + "/") + trial_number.toString()) + ".jpg");
image.setImage(training_image_mask);
key_resp_2.keys = undefined;
key_resp_2.rt = undefined;
......@@ -985,7 +954,6 @@ function masked_trainingRoutineBegin(snapshot) {
}
}
function masked_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'masked_training'-------
......@@ -1063,7 +1031,6 @@ function masked_trainingRoutineEachFrame() {
};
}
function masked_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'masked_training'-------
......@@ -1080,8 +1047,6 @@ function masked_trainingRoutineEnd() {
};
}
var Answer_trainingComponents;
function Answer_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1116,8 +1081,6 @@ function Answer_trainingRoutineBegin(snapshot) {
}
}
var class_choose;
function Answer_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Answer_training'-------
......@@ -1668,7 +1631,6 @@ function Answer_trainingRoutineEachFrame() {
};
}
function Answer_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'Answer_training'-------
......@@ -1684,9 +1646,6 @@ function Answer_trainingRoutineEnd() {
};
}
var _key_resp_8_allKeys;
var unmasked_trainingComponents;
function unmasked_trainingRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1697,6 +1656,9 @@ function unmasked_trainingRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
unmask_image = ((unmasked_images_dir + selected_class) + ".JPEG");
the_text = (("You had to choose " + selected_class.toString()) + " .");
image_4.setImage(unmask_image);
key_resp_8.keys = undefined;
key_resp_8.rt = undefined;
......@@ -1716,7 +1678,6 @@ function unmasked_trainingRoutineBegin(snapshot) {
}
}
function unmasked_trainingRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'unmasked_training'-------
......@@ -1804,7 +1765,6 @@ function unmasked_trainingRoutineEachFrame() {
};
}
function unmasked_trainingRoutineEnd() {
return async function () {
//------Ending Routine 'unmasked_training'-------
......@@ -1821,9 +1781,6 @@ function unmasked_trainingRoutineEnd() {
};
}
var _key_resp_4_allKeys;
var Testing_IntroComponents;
function Testing_IntroRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1849,7 +1806,6 @@ function Testing_IntroRoutineBegin(snapshot) {
}
}
function Testing_IntroRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Testing_Intro'-------
......@@ -1917,7 +1873,6 @@ function Testing_IntroRoutineEachFrame() {
};
}
function Testing_IntroRoutineEnd() {
return async function () {
//------Ending Routine 'Testing_Intro'-------
......@@ -1934,8 +1889,6 @@ function Testing_IntroRoutineEnd() {
};
}
var catch_trialComponents;
function catch_trialRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -1946,6 +1899,11 @@ function catch_trialRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
catch_trial_list = [];
catch_trial_1 = random.randint(3, 7);
catch_trial_list.push(catch_trial_1);
trial_loop_counter = 0;
// keep track of which components have finished
catch_trialComponents = [];
......@@ -1956,7 +1914,6 @@ function catch_trialRoutineBegin(snapshot) {
}
}
function catch_trialRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'catch_trial'-------
......@@ -1990,7 +1947,6 @@ function catch_trialRoutineEachFrame() {
};
}
function catch_trialRoutineEnd() {
return async function () {
//------Ending Routine 'catch_trial'-------
......@@ -2006,9 +1962,6 @@ function catch_trialRoutineEnd() {
};
}
var _key_resp_9_allKeys;
var Im_readyComponents;
function Im_readyRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2034,7 +1987,6 @@ function Im_readyRoutineBegin(snapshot) {
}
}
function Im_readyRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Im_ready'-------
......@@ -2102,7 +2054,6 @@ function Im_readyRoutineEachFrame() {
};
}
function Im_readyRoutineEnd() {
return async function () {
//------Ending Routine 'Im_ready'-------
......@@ -2119,9 +2070,6 @@ function Im_readyRoutineEnd() {
};
}
var _key_resp_5_allKeys;
var test_maskComponents;
function test_maskRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2132,6 +2080,78 @@ function test_maskRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
import * as np from 'numpy';
var _pj;
var answer, flag, flag_catch_trial, middle_range, now_index, num_of_catch_trial, num_of_loops_for_block, precision, range_selected_class, selected_class, test_image_mask, the_range, threshold, trial_number;
function _pj_snippets(container) {
function in_es6(left, right) {
if (((right instanceof Array) || ((typeof right) === "string"))) {
return (right.indexOf(left) > (- 1));
} else {
if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {
return right.has(left);
} else {
return (left in right);
}
}
}
container["in_es6"] = in_es6;
return container;
}
_pj = {};
_pj_snippets(_pj);
answer = "";
threshold = 3;
num_of_catch_trial = 1;
num_of_loops_for_block = 10;
precision = null;
flag = false;
while ((flag === false)) {
selected_class = random.choice(classes_labels);
if ((! _pj.in_es6(selected_class, training_list))) {
flag = true;
}
}
trial_loop_counter += 1;
flag_catch_trial = false;
if (_pj.in_es6(trial_loop_counter, catch_trial_list)) {
flag_catch_trial = true;
}
the_range = range_dict[selected_class];
if ((flag_catch_trial === true)) {
range_selected_class = the_range.slice((- 1))[0];
} else {
if ((images_dict[selected_class][1] === 0)) {
middle_range = the_range[Number.parseInt((the_range.length / 2))];
images_dict[selected_class][1] = middle_range;
} else {
if ((images_dict[selected_class][0].length === threshold)) {
precision = np.mean(images_dict[selected_class][0]);
now_index = util.index(the_range, images_dict[selected_class][1]);
if ((precision > 0.65)) {
now_index += 1;
} else {
if ((precision < 0.35)) {
now_index -= 1;
} else {
now_index += 0;
}
}
if ((now_index < 0)) {
now_index = 0;
} else {
if ((now_index >= the_range.length)) {
now_index = (the_range.length - 1);
}
}
images_dict[selected_class][1] = the_range[now_index];
}
}
range_selected_class = images_dict[selected_class][1];
}
trial_number = random.randint(1, 100);
test_image_mask = ((((((masked_images_dir + selected_class) + "/") + range_selected_class.toString()) + "/") + trial_number.toString()) + ".jpg");
image_2.setImage(test_image_mask);
key_resp_5.keys = undefined;
key_resp_5.rt = undefined;
......@@ -2148,7 +2168,6 @@ function test_maskRoutineBegin(snapshot) {
}
}
function test_maskRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'test_mask'-------
......@@ -2216,7 +2235,6 @@ function test_maskRoutineEachFrame() {
};
}
function test_maskRoutineEnd() {
return async function () {
//------Ending Routine 'test_mask'-------
......@@ -2233,8 +2251,6 @@ function test_maskRoutineEnd() {
};
}
var answer_sheetComponents;
function answer_sheetRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2269,8 +2285,6 @@ function answer_sheetRoutineBegin(snapshot) {
}
}
var answer;
function answer_sheetRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'answer_sheet'-------
......@@ -2821,7 +2835,6 @@ function answer_sheetRoutineEachFrame() {
};
}
function answer_sheetRoutineEnd() {
return async function () {
//------Ending Routine 'answer_sheet'-------
......@@ -2830,6 +2843,21 @@ function answer_sheetRoutineEnd() {
thisComponent.setAutoDraw(false);
}
}
if ((answer === selected_class)) {
acc = 1;
} else {
acc = 0;
}
images_dict[selected_class][0].push(acc);
if ((images_dict[selected_class][0].length === (threshold + 1))) {
images_dict[selected_class][0].pop(0);
}
psychoJS.experiment.addData("answer", answer);
psychoJS.experiment.addData("class", selected_class);
psychoJS.experiment.addData("range", range_selected_class);
psychoJS.experiment.addData("trail_number", trial_number);
psychoJS.experiment.addData("catch_trial", flag_catch_trial);
// the Routine "answer_sheet" was not non-slip safe, so reset the non-slip timer
routineTimer.reset();
......@@ -2837,9 +2865,6 @@ function answer_sheetRoutineEnd() {
};
}
var _key_resp_7_allKeys;
var Rest_after_blockComponents;
function Rest_after_blockRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2865,7 +2890,6 @@ function Rest_after_blockRoutineBegin(snapshot) {
}
}
function Rest_after_blockRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Rest_after_block'-------
......@@ -2933,7 +2957,6 @@ function Rest_after_blockRoutineEachFrame() {
};
}
function Rest_after_blockRoutineEnd() {
return async function () {
//------Ending Routine 'Rest_after_block'-------
......@@ -2950,9 +2973,6 @@ function Rest_after_blockRoutineEnd() {
};
}
var _key_resp_3_allKeys;
var Final_messageComponents;
function Final_messageRoutineBegin(snapshot) {
return async function () {
TrialHandler.fromSnapshot(snapshot); // ensure that .thisN vals are up to date
......@@ -2978,7 +2998,6 @@ function Final_messageRoutineBegin(snapshot) {
}
}
function Final_messageRoutineEachFrame() {
return async function () {
//------Loop for each frame of Routine 'Final_message'-------
......@@ -3046,7 +3065,6 @@ function Final_messageRoutineEachFrame() {
};
}
function Final_messageRoutineEnd() {
return async function () {
//------Ending Routine 'Final_message'-------
......@@ -3063,7 +3081,6 @@ function Final_messageRoutineEnd() {
};
}
function endLoopIteration(scheduler, snapshot) {
// ------Prepare for next entry------
return async function () {
......@@ -3086,7 +3103,6 @@ function endLoopIteration(scheduler, snapshot) {
};
}
function importConditions(currentLoop) {
return async function () {
psychoJS.importAttributes(currentLoop.getCurrentTrial());
......@@ -3094,7 +3110,6 @@ function importConditions(currentLoop) {
};
}
async function quitPsychoJS(message, isCompleted) {
// Check for and save orphaned data
if (psychoJS.experiment.isEntryEmpty()) {
......@@ -3114,6 +3129,8 @@ async function quitPsychoJS(message, isCompleted) {
psychoJS.window.close();
psychoJS.quit({message: message, isCompleted: isCompleted});
......
......@@ -170,7 +170,7 @@
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flipHoriz" updates="constant" val="False" valType="bool"/>
<Param name="flipVert" updates="constant" val="False" valType="bool"/>
<Param name="image" updates="set every repeat" val="training_image_mask" valType="file"/>
<Param name="image" updates="set every repeat" val="$training_image_mask" valType="file"/>
<Param name="interpolate" updates="constant" val="linear" valType="str"/>
<Param name="mask" updates="constant" val="" valType="str"/>
<Param name="name" updates="None" val="image" valType="code"/>
......@@ -1667,8 +1667,28 @@
<Param name="name" updates="None" val="code_7" valType="code"/>
</CodeComponent>
</Routine>
<Routine name="code_JS">
<CodeComponent name="code_js">
<Param name="Before Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Before JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="win=psychoJS.window;&amp;#10;event=psychoJS.eventManager;&amp;#10;thisExp=psychoJS.experiment;&amp;#10;&amp;#10;shuffle = function (a) {&amp;#10; return util.shuffle(a);&amp;#10;}&amp;#10;random = function (a) {&amp;#10; return Math.random();&amp;#10;}&amp;#10;//defining functions for js&amp;#10;&amp;#10;training_list = []&amp;#10;classes_labels = []&amp;#10;masked_images_dir = ''&amp;#10;unmasked_images_dir = ''&amp;#10;range_dict = {}&amp;#10;range_list_str = []&amp;#10;range_list_int = []&amp;#10;flag = False&amp;#10;selected_class = ''&amp;#10;the_range = []&amp;#10;middle_range = ''&amp;#10;trial_number = 0&amp;#10;training_image_mask = ''&amp;#10;unmask_image = ''&amp;#10;the_text = ''&amp;#10;images_dict = {}&amp;#10;catch_trial_list = []&amp;#10;catch_trial_1 = 0&amp;#10;trial_loop_counter = 0&amp;#10;answer = ''&amp;#10;threshold = 0&amp;#10;num_of_catch_trial = 0&amp;#10;num_of_loops_for_block = 0&amp;#10;precision = None&amp;#10;flag_catch_trial = False&amp;#10;range_selected_class = ''&amp;#10;now_index = 0&amp;#10;range_selected_class = []&amp;#10;test_image_mask = ''&amp;#10;acc = 0&amp;#10;&amp;#10;//have to define these variables for js" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="Both" valType="str"/>
<Param name="Each Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="name" updates="None" val="code_js" valType="code"/>
</CodeComponent>
</Routine>
</Routines>
<Flow>
<Routine name="code_JS"/>
<Routine name="Ack"/>
<Routine name="Training_Intro"/>
<LoopInitiator loopType="TrialHandler" name="training_loop">
......
......@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2021.2.0),
on August 01, 2021, at 02:08
on September 10, 2021, at 01:08
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019)
......@@ -101,6 +101,9 @@ ioDevice = ioConfig = ioSession = ioServer = eyetracker = None
# create a default keyboard (e.g. to check for escape)
defaultKeyboard = keyboard.Keyboard()
# Initialize components for Routine "code_JS"
code_JSClock = core.Clock()
# Initialize components for Routine "Ack"
AckClock = core.Clock()
Acknowledgement = visual.TextStim(win=win, name='Acknowledgement',
......@@ -615,6 +618,57 @@ key_resp_3 = keyboard.Keyboard()
globalClock = core.Clock() # to track the time since experiment started
routineTimer = core.CountdownTimer() # to track time remaining of each (non-slip) routine
# ------Prepare to start Routine "code_JS"-------
continueRoutine = True
# update component parameters for each repeat
# keep track of which components have finished
code_JSComponents = []
for thisComponent in code_JSComponents:
thisComponent.tStart = None
thisComponent.tStop = None
thisComponent.tStartRefresh = None
thisComponent.tStopRefresh = None
if hasattr(thisComponent, 'status'):
thisComponent.status = NOT_STARTED
# reset timers
t = 0
_timeToFirstFrame = win.getFutureFlipTime(clock="now")
code_JSClock.reset(-_timeToFirstFrame) # t0 is time of first possible flip
frameN = -1
# -------Run Routine "code_JS"-------
while continueRoutine:
# get current time
t = code_JSClock.getTime()
tThisFlip = win.getFutureFlipTime(clock=code_JSClock)
tThisFlipGlobal = win.getFutureFlipTime(clock=None)
frameN = frameN + 1 # number of completed frames (so 0 is the first frame)
# update/draw components on each frame
# check for quit (typically the Esc key)
if endExpNow or defaultKeyboard.getKeys(keyList=["escape"]):
core.quit()
# check if all components have finished
if not continueRoutine: # a component has requested a forced-end of Routine
break
continueRoutine = False # will revert to True if at least one component still running
for thisComponent in code_JSComponents:
if hasattr(thisComponent, "status") and thisComponent.status != FINISHED:
continueRoutine = True
break # at least one component has not yet finished
# refresh the screen
if continueRoutine: # don't flip if this routine is over or we'll get a blank screen
win.flip()
# -------Ending Routine "code_JS"-------
for thisComponent in code_JSComponents:
if hasattr(thisComponent, "setAutoDraw"):
thisComponent.setAutoDraw(False)
# the Routine "code_JS" was not non-slip safe, so reset the non-slip timer
routineTimer.reset()
# ------Prepare to start Routine "Ack"-------
continueRoutine = True
# update component parameters for each repeat
......@@ -826,7 +880,7 @@ for thisTraining_loop in training_loop:
trial_number = random.randint(1,100)
training_image_mask = masked_images_dir + selected_class + '/' + str(middle_range) + '/' + str(trial_number) + '.jpg'
image.setImage('training_image_mask')
image.setImage(training_image_mask)
key_resp_2.keys = []
key_resp_2.rt = []
_key_resp_2_allKeys = []
......
training_loop.thisRepN,training_loop.thisTrialN,training_loop.thisN,training_loop.thisIndex,session,participant,date,expName,psychopyVersion,frameRate,
4.4847 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
45.7148 WARNING User requested fullscreen with size [1536 864], but screen is actually [1920, 1080]. Using actual size
50.3538 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000018C6AB78320>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000018C68CD8B70>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1920, 1080]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
50.4380 EXP window1: mouseVisible = True
50.4381 EXP window1: recordFrameIntervals = False
50.5861 EXP window1: recordFrameIntervals = True
50.7697 EXP window1: recordFrameIntervals = False
53.3909 EXP Created Acknowledgement = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([-1, -1, -1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='Acknowledgement', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text='Acknowledgements', units='height', win=Window(...), wrapWidth=1)
53.4119 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
53.4906 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([ 0. , -0.1]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
53.5079 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-2.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text_2', opacity=1, ori=0.0, pos=array([0. , 0.35]), rgb=UNKNOWN, text='First, U see a masked image: ', units='height', win=Window(...), wrapWidth=1)
53.6067 EXP Created text_7 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_7', opacity=1, ori=0.0, pos=array([0. , 0.32]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1.7)
53.7126 EXP window1: mouseVisible = True
53.7448 EXP window1: mouseVisible = True
53.7744 EXP window1: mouseVisible = True
53.7900 EXP window1: mouseVisible = True
53.8037 EXP window1: mouseVisible = True
53.8078 EXP window1: mouseVisible = True
53.8207 EXP window1: mouseVisible = True
53.8474 EXP window1: mouseVisible = True
53.8646 EXP window1: mouseVisible = True
53.8930 EXP window1: mouseVisible = True
53.9089 EXP window1: mouseVisible = True
53.9273 EXP window1: mouseVisible = True
53.9503 EXP window1: mouseVisible = True
53.9545 EXP Created image_4 = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image_4', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
53.9657 EXP Created text_8 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-3.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_8', opacity=1, ori=0.0, pos=array([0. , 0.35]), rgb=UNKNOWN, text='"The Unmasked Actual image was this: ', units='height', win=Window(...), wrapWidth=1)
53.9665 EXP Created text_10 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-4.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_10', opacity=1, ori=0.0, pos=array([-0. , -0.35]), rgb=UNKNOWN, text='', units='height', win=Window(...), wrapWidth=1.5)
53.9907 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_3', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
54.0010 EXP Created text_11 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_11', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text="I'm Ready.\n \n\npress 'space'", units='height', win=Window(...), wrapWidth=1)
54.0042 EXP Created image_2 = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image_2', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
54.0100 EXP Created text_9 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_9', opacity=1, ori=0.0, pos=array([0. , 0.32]), rgb=UNKNOWN, text='what was that ?', units='height', win=Window(...), wrapWidth=1.7)
54.0138 EXP window1: mouseVisible = True
54.0173 EXP window1: mouseVisible = True
54.0206 EXP window1: mouseVisible = True
54.0240 EXP window1: mouseVisible = True
54.0276 EXP window1: mouseVisible = True
54.0327 EXP window1: mouseVisible = True
54.0367 EXP window1: mouseVisible = True
54.0403 EXP window1: mouseVisible = True
54.0440 EXP window1: mouseVisible = True
54.0477 EXP window1: mouseVisible = True
54.0514 EXP window1: mouseVisible = True
54.0597 EXP window1: mouseVisible = True
54.0637 EXP window1: mouseVisible = True
54.0727 EXP Created text_5 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_5', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
54.0865 EXP Created text_6 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_6', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
54.1584 EXP Acknowledgement: autoDraw = True
54.5952 DATA Keypress: space
54.6047 EXP Acknowledgement: autoDraw = False
54.6047 EXP text: autoDraw = True
55.0525 EXP Created sequence: random, trialTypes=1, nReps=2, seed=None
55.0528 EXP New trial (rep=0, index=0): None
55.1975 DATA Keypress: space
55.2051 EXP text: autoDraw = False
55.2051 EXP image: image = 'images_dir/masked_datasets/pineapple/7000/79.jpg'
55.2051 EXP image: autoDraw = True
55.2051 EXP text_2: autoDraw = True
55.7593 DATA Keypress: space
55.8652 EXP image: autoDraw = False
55.8652 EXP text_2: autoDraw = False
55.8652 EXP text_7: autoDraw = True
56.6318 DATA Keypress: space
57.1403 DATA Keypress: escape
57.6336 EXP window1: mouseVisible = True
File added
training_loop.thisRepN,training_loop.thisTrialN,training_loop.thisN,training_loop.thisIndex,loop_over_blocks.thisRepN,loop_over_blocks.thisTrialN,loop_over_blocks.thisN,loop_over_blocks.thisIndex,loop_over_trials.thisRepN,loop_over_trials.thisTrialN,loop_over_trials.thisN,loop_over_trials.thisIndex,answer,class,range,trail_number,catch_trial,session,participant,date,expName,psychopyVersion,frameRate,
,,,,0,0,0,0,0,0,0,0,idk,iron,7000,48,False,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
,,,,0,0,0,0,1,0,1,0,iron,hat,76000,66,False,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
,,,,0,0,0,0,2,0,2,0,iron,pot,5000,3,False,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
,,,,0,0,0,0,3,0,3,0,iron,pineapple,20000,13,True,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
,,,,0,0,0,0,4,0,4,0,iron,car,10000,100,False,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
,,,,0,0,0,0,5,0,5,0,iron,sewing_machine,7000,84,False,001,001,2021_Sep_09_2114,Object_Segments_CNN,2021.2.0,60.091170290244754,
14.1614 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
53.7056 WARNING User requested fullscreen with size [1536 864], but screen is actually [1920, 1080]. Using actual size
60.9753 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000002875EC0A358>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000002875CABBB70>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1920, 1080]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
60.9871 EXP window1: mouseVisible = True
60.9872 EXP window1: recordFrameIntervals = False
61.1436 EXP window1: recordFrameIntervals = True
61.3269 EXP window1: recordFrameIntervals = False
65.9985 EXP Created Acknowledgement = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([-1, -1, -1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='Acknowledgement', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text='Acknowledgements', units='height', win=Window(...), wrapWidth=1)
66.0429 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
66.3338 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([ 0. , -0.1]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
66.3679 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-2.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text_2', opacity=1, ori=0.0, pos=array([0. , 0.35]), rgb=UNKNOWN, text='First, U see a masked image: ', units='height', win=Window(...), wrapWidth=1)
66.5499 EXP Created text_7 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_7', opacity=1, ori=0.0, pos=array([0. , 0.32]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1.7)
66.8289 EXP window1: mouseVisible = True
66.8689 EXP window1: mouseVisible = True
66.8946 EXP window1: mouseVisible = True
66.9090 EXP window1: mouseVisible = True
66.9223 EXP window1: mouseVisible = True
66.9263 EXP window1: mouseVisible = True
66.9390 EXP window1: mouseVisible = True
67.0086 EXP window1: mouseVisible = True
67.0226 EXP window1: mouseVisible = True
67.0492 EXP window1: mouseVisible = True
67.0763 EXP window1: mouseVisible = True
67.0943 EXP window1: mouseVisible = True
67.1198 EXP window1: mouseVisible = True
67.1237 EXP Created image_4 = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image_4', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
67.1493 EXP Created text_8 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-3.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_8', opacity=1, ori=0.0, pos=array([0. , 0.35]), rgb=UNKNOWN, text='"The Unmasked Actual image was this: ', units='height', win=Window(...), wrapWidth=1)
67.1502 EXP Created text_10 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-4.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_10', opacity=1, ori=0.0, pos=array([-0. , -0.35]), rgb=UNKNOWN, text='', units='height', win=Window(...), wrapWidth=1.5)
67.1821 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_3', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
67.2244 EXP Created text_11 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_11', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text="I'm Ready.\n \n\npress 'space'", units='height', win=Window(...), wrapWidth=1)
67.2280 EXP Created image_2 = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=-1.0, flipHoriz=False, flipVert=False, image='sin', interpolate=True, mask=None, maskParams=None, name='image_2', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
67.2680 EXP Created text_9 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.06, italic=False, languageStyle='LTR', name='text_9', opacity=1, ori=0.0, pos=array([0. , 0.32]), rgb=UNKNOWN, text='what was that ?', units='height', win=Window(...), wrapWidth=1.7)
67.2738 EXP window1: mouseVisible = True
67.2782 EXP window1: mouseVisible = True
67.2824 EXP window1: mouseVisible = True
67.2874 EXP window1: mouseVisible = True
67.2917 EXP window1: mouseVisible = True
67.2964 EXP window1: mouseVisible = True
67.3009 EXP window1: mouseVisible = True
67.3062 EXP window1: mouseVisible = True
67.3107 EXP window1: mouseVisible = True
67.3153 EXP window1: mouseVisible = True
67.3205 EXP window1: mouseVisible = True
67.3306 EXP window1: mouseVisible = True
67.3359 EXP window1: mouseVisible = True
67.3467 EXP Created text_5 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_5', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
67.3862 EXP Created text_6 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Open Sans', fontFiles=[], height=0.1, italic=False, languageStyle='LTR', name='text_6', opacity=1, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(...), units='height', win=Window(...), wrapWidth=1)
67.5055 EXP Acknowledgement: autoDraw = True
69.1589 DATA Keypress: space
69.2887 EXP Acknowledgement: autoDraw = False
69.2887 EXP text: autoDraw = True
71.1853 EXP Created sequence: random, trialTypes=1, nReps=2, seed=None
71.1857 EXP New trial (rep=0, index=0): None
71.3216 DATA Keypress: space
71.3299 EXP text: autoDraw = False
71.3299 EXP image: image = 'images_dir/masked_datasets/ladybug/38000/94.jpg'
71.3299 EXP image: autoDraw = True
71.3299 EXP text_2: autoDraw = True
72.6314 DATA Keypress: space
72.6889 EXP image: autoDraw = False
72.6889 EXP text_2: autoDraw = False
72.6889 EXP text_7: autoDraw = True
74.4676 DATA Mouse: Left button down, pos=(713,369)
74.5742 DATA Mouse: Left button up, pos=(713,369)
74.5823 EXP text_7: autoDraw = False
74.5823 EXP image_4: image = 'images_dir/unmasked_datasets/ladybug.JPEG'
74.5823 EXP text_10: text = 'You had to choose ladybug .'
74.5823 EXP image_4: autoDraw = True
74.5823 EXP text_8: autoDraw = True
74.5823 EXP text_10: autoDraw = True
82.0342 DATA Keypress: space
82.0493 EXP New trial (rep=1, index=0): None
82.2455 EXP image_4: autoDraw = False
82.2455 EXP text_8: autoDraw = False
82.2455 EXP text_10: autoDraw = False
82.2455 EXP image: image = 'images_dir/masked_datasets/hand_blower/17000/27.jpg'
82.2455 EXP image: autoDraw = True
82.2455 EXP text_2: autoDraw = True
84.0307 DATA Keypress: space
84.0732 EXP image: autoDraw = False
84.0732 EXP text_2: autoDraw = False
84.0732 EXP text_7: autoDraw = True
86.4771 DATA Mouse: Left button down, pos=(1484,363)
86.5564 DATA Mouse: Left button up, pos=(1484,363)
86.5642 EXP text_7: autoDraw = False
86.5642 EXP image_4: image = 'images_dir/unmasked_datasets/hand_blower.JPEG'
86.5642 EXP text_10: text = 'You had to choose hand_blower .'
86.5642 EXP image_4: autoDraw = True
86.5642 EXP text_8: autoDraw = True
86.5642 EXP text_10: autoDraw = True
88.2559 DATA Keypress: space
88.2639 EXP image_4: autoDraw = False
88.2639 EXP text_8: autoDraw = False
88.2639 EXP text_10: autoDraw = False
88.2639 EXP text_3: autoDraw = True
94.1484 EXP Created sequence: random, trialTypes=1, nReps=3, seed=None
94.1487 EXP New trial (rep=0, index=0): None
94.1513 EXP Created sequence: random, trialTypes=1, nReps=10, seed=None
94.1516 EXP New trial (rep=0, index=0): None
94.1569 DATA Keypress: space
94.1645 EXP text_3: autoDraw = False
94.1645 EXP text_11: autoDraw = True
95.2504 DATA Keypress: space
95.2586 EXP text_11: autoDraw = False
95.2586 EXP image_2: image = 'images_dir/masked_datasets/iron/7000/48.jpg'
95.2586 EXP image_2: autoDraw = True
96.0474 DATA Keypress: space
96.0911 EXP image_2: autoDraw = False
96.0911 EXP text_9: autoDraw = True
96.7660 DATA Keypress: space
97.2610 DATA Keypress: space
98.8531 DATA Mouse: Left button down, pos=(1039,109)
98.8661 EXP New trial (rep=1, index=0): None
98.8785 EXP text_9: autoDraw = False
98.8785 EXP text_11: autoDraw = True
98.9324 DATA Mouse: Left button up, pos=(1039,109)
100.9427 DATA Keypress: space
100.9501 EXP text_11: autoDraw = False
100.9501 EXP image_2: image = 'images_dir/masked_datasets/hat/76000/66.jpg'
100.9501 EXP image_2: autoDraw = True
101.5972 DATA Keypress: space
101.6468 EXP image_2: autoDraw = False
101.6468 EXP text_9: autoDraw = True
102.0328 DATA Keypress: space
102.6186 DATA Mouse: Left button down, pos=(1134,373)
102.6309 EXP New trial (rep=2, index=0): None
102.6436 EXP text_9: autoDraw = False
102.6436 EXP text_11: autoDraw = True
102.6826 DATA Mouse: Left button up, pos=(1134,373)
102.9262 DATA Keypress: space
102.9338 EXP text_11: autoDraw = False
102.9338 EXP image_2: image = 'images_dir/masked_datasets/pot/5000/3.jpg'
102.9338 EXP image_2: autoDraw = True
103.0808 DATA Keypress: space
103.1240 EXP image_2: autoDraw = False
103.1240 EXP text_9: autoDraw = True
103.4202 DATA Mouse: Left button down, pos=(1134,373)
103.4340 EXP New trial (rep=3, index=0): None
103.4458 EXP text_9: autoDraw = False
103.4458 EXP text_11: autoDraw = True
103.4994 DATA Mouse: Left button up, pos=(1134,373)
103.6853 DATA Keypress: space
103.6932 EXP text_11: autoDraw = False
103.6932 EXP image_2: image = 'images_dir/masked_datasets/pineapple/20000/13.jpg'
103.6932 EXP image_2: autoDraw = True
103.8476 DATA Keypress: space
103.8979 EXP image_2: autoDraw = False
103.8979 EXP text_9: autoDraw = True
104.1623 DATA Mouse: Left button down, pos=(1134,373)
104.1660 EXP New trial (rep=4, index=0): None
104.1789 EXP text_9: autoDraw = False
104.1789 EXP text_11: autoDraw = True
104.2656 DATA Mouse: Left button up, pos=(1134,373)
104.3807 DATA Keypress: space
104.3888 EXP text_11: autoDraw = False
104.3888 EXP image_2: image = 'images_dir/masked_datasets/car/10000/100.jpg'
104.3888 EXP image_2: autoDraw = True
104.5979 DATA Keypress: space
104.6388 EXP image_2: autoDraw = False
104.6388 EXP text_9: autoDraw = True
104.9191 DATA Mouse: Left button down, pos=(1134,373)
104.9326 EXP New trial (rep=5, index=0): None
104.9455 EXP text_9: autoDraw = False
104.9455 EXP text_11: autoDraw = True
104.9992 DATA Mouse: Left button up, pos=(1134,373)
105.2827 DATA Keypress: space
105.2917 EXP text_11: autoDraw = False
105.2917 EXP image_2: image = 'images_dir/masked_datasets/sewing_machine/7000/84.jpg'
105.2917 EXP image_2: autoDraw = True
105.3814 DATA Keypress: space
105.4267 EXP image_2: autoDraw = False
105.4267 EXP text_9: autoDraw = True
105.7283 DATA Mouse: Left button down, pos=(1134,373)
105.7415 EXP New trial (rep=6, index=0): None
105.7580 EXP text_9: autoDraw = False
105.7580 EXP text_11: autoDraw = True
105.8160 DATA Mouse: Left button up, pos=(1134,373)
105.9659 DATA Keypress: space
105.9737 EXP text_11: autoDraw = False
105.9737 EXP image_2: image = 'images_dir/masked_datasets/hat/76000/54.jpg'
105.9737 EXP image_2: autoDraw = True
106.1475 DATA Keypress: space
106.1916 EXP image_2: autoDraw = False
106.1916 EXP text_9: autoDraw = True
107.0678 DATA Keypress: escape
107.4384 EXP window1: mouseVisible = True
File added
training_loop.thisRepN,training_loop.thisTrialN,training_loop.thisN,training_loop.thisIndex,loop_over_blocks.thisRepN,loop_over_blocks.thisTrialN,loop_over_blocks.thisN,loop_over_blocks.thisIndex,loop_over_trials.thisRepN,loop_over_trials.thisTrialN,loop_over_trials.thisN,loop_over_trials.thisIndex,answer,class,range,trail_number,catch_trial,session,participant,date,expName,psychopyVersion,frameRate,
,,,,0,0,0,0,0,0,0,0,iron,fish,10000,15,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,1,0,1,0,hand_blower,fish,10000,16,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,2,0,2,0,hand_blower,pineapple,7000,93,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,3,0,3,0,hand_blower,pineapple,7000,48,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,4,0,4,0,hand_blower,ladybug,38000,73,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,5,0,5,0,hand_blower,sewing_machine,19000,26,True,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,6,0,6,0,elephant,elephant,19000,58,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,7,0,7,0,car,car,10000,52,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,8,0,8,0,sewing_machine,sewing_machine,7000,11,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,0,0,0,0,9,0,9,0,pineapple,pineapple,7000,54,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,1,0,1,0,0,0,0,0,fish,fish,10000,2,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,1,0,1,0,1,0,1,0,pineapple,pineapple,1000,77,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,1,0,1,0,2,0,2,0,pineapple,pineapple,7000,80,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
,,,,1,0,1,0,3,0,3,0,hand_blower,hand_blower,17000,47,False,001,001,2021_Sep_10_0111,Object_Segments_CNN,2021.2.0,60.01273470146233,
This diff is collapsed.
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment